protected class JdevProviderContext.NodeObserver extends NodeListener
| Modifier | Constructor and Description | 
|---|---|
protected | 
JdevProviderContext.NodeObserver(Node node, java.net.URL sourceURL)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
nodeClosed(NodeEvent event)
Called after a Node has been closed. 
 | 
void | 
nodeRenamed(NodeEvent event, java.net.URL oldURL, java.net.URL newURL)
Called after a Node has been renamed and recached under the new URL in the NodeFactory. 
 | 
invokeLaterIfNeeded, nodeDeleted, nodeDirtyStateChanged, nodeOpened, nodeReverted, nodeSaved, nodeWillBeSaved, nodeWillClose, nodeWillOpenprotected JdevProviderContext.NodeObserver(Node node, java.net.URL sourceURL)
public void nodeClosed(NodeEvent event)
NodeListenernodeClosed in class NodeListenerevent - the object containing information about this eventpublic void nodeRenamed(NodeEvent event, java.net.URL oldURL, java.net.URL newURL)
NodeListenernodeRenamed in class NodeListenerevent - the object containing information about this event. Calling e.getNode() will return the old Node. To get the new Node, call NodeFactory.find(newURL). Both old and new Nodes remain available while NodeListeners are being called with the nodeRenamed event. In the case where renaming did not cause the Node type to change, both old Node and new Node will be the exact same object, so using the oldURL parameter is the only reliable way to know the URL of the Node before it was renamed. If the Node type did change, the old Node is removed from the NodeFactory cache immediately after all NodeListeners have been called with the nodeRenamed event.oldURL - the old URL of the Node before the renamenewURL - the new URL of the Node after the rename