|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.model.NodeListener oracle.jdeveloper.java.provider.JdevProviderContext.NodeObserver
protected class JdevProviderContext.NodeObserver
The NodeObserver attaches to nodes for which we have created SourceFile instances for, and tracks the given node until the node is closed, or renamed. This observer will take care of expiring the SourceFile for the given URL when these events * occur, or when the node is modified or reloaded.
Constructor Summary | |
---|---|
protected |
JdevProviderContext.NodeObserver(Node node,
java.net.URL sourceURL)
|
Method Summary | |
---|---|
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. |
Methods inherited from class oracle.ide.model.NodeListener |
---|
invokeLaterIfNeeded, nodeDeleted, nodeDirtyStateChanged, nodeOpened, nodeReverted, nodeSaved, nodeWillBeSaved, nodeWillClose, nodeWillOpen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected JdevProviderContext.NodeObserver(Node node, java.net.URL sourceURL)
Method Detail |
---|
public void nodeClosed(NodeEvent event)
NodeListener
nodeClosed
in class NodeListener
event
- the object containing information about this eventpublic void nodeRenamed(NodeEvent event, java.net.URL oldURL, java.net.URL newURL)
NodeListener
nodeRenamed
in class NodeListener
event
- 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
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |