// ResourceEditorListener.java
// $Id: ResourceEditorListener.java,v 1.2 1998/01/22 13:30:09 bmahe Exp $
// (c) COPYRIGHT MIT and INRIA, 1997.
// Please first read the full copyright statement in file COPYRIGHT.html

package org.w3c.jigadm.gui ;

import java.awt.*;
import java.util.*;
import org.w3c.jigadm.*;
import org.w3c.jigadm.events.*;
import org.w3c.jigadm.editors.*;
import org.w3c.jigsaw.admin.*;

public class ResourceEditorListener implements ResourceListener {
    
    ServerBrowser sb = null;

    public void resourceChanged(ResourceChangeEvent e) {
	if(e.getNewValue() == null) { // deleted ?
	    if(e.getOldValue() != null) {
		sb.removeNode((RemoteResourceWrapper)e.getOldValue());
	    }
	}
    }

    public ResourceEditorListener(ServerBrowser sb) {
	this.sb = sb;
    }
}
