|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.addin.AbstractCommand oracle.ide.cmd.CloseNodeCommand
The CloseNodeCommand
class implements the command to unload
the the selected node(s) and revert to an unopen state.
Command
,
AbstractCommand
Field Summary |
Fields inherited from class oracle.ide.addin.AbstractCommand |
cmdId, context, name, type |
Fields inherited from interface oracle.ide.addin.Command |
CANCEL, EXECUTING, NO_CHANGE, NO_UNDO, NORMAL, OK |
Constructor Summary | |
CloseNodeCommand()
Constructor. |
|
CloseNodeCommand(java.util.Map msgMap)
Constructor. |
Method Summary | |
int |
checkSave(java.util.Iterator targets)
Check if the user wants to save dirty documents about to be closed. |
int |
checkSave(java.util.Iterator targets,
boolean canCancel)
Check if the user wants to save dirty documents about to be closed. |
void |
clearAffectedDocuments()
Reset the list of affected documents. |
int |
close(Document node)
Close the specified document. |
int |
close(Document node,
boolean uncache,
boolean removeUnsavedNode)
Close the specified node . |
int |
close(java.util.Iterator nodes,
Context context,
boolean uncache,
boolean removeUnsavedNodes)
Closes the nodes specified by the Iterator. |
int |
close(java.util.List nodes,
boolean uncache,
boolean removeUnsavedNodes)
Close the documents listed in nodes . |
protected int |
close(java.util.List nodes,
Context context,
boolean uncache,
boolean removeUnsavedNodes)
|
protected void |
collectDirtyNodes(java.util.Iterator targets,
java.util.List dirtyNodes)
|
protected java.util.List |
confirmClose(Element element)
|
protected java.util.List |
confirmClose(TNode[] tnodes)
|
int |
doit()
Executes the actions associated with a specific command. |
Document[] |
getAffectedDocuments()
Returns an array of the documents closed. |
boolean |
isNeedConfirm()
|
void |
setNeedConfirm(boolean confirm)
|
Methods inherited from class oracle.ide.addin.AbstractCommand |
getContext, getData, getId, getName, getType, setContext, setData, undo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CloseNodeCommand()
public CloseNodeCommand(java.util.Map msgMap)
Method Detail |
public int doit() throws java.lang.Exception
Command
java.lang.Exception
public boolean isNeedConfirm()
public void setNeedConfirm(boolean confirm)
public int close(java.util.List nodes, boolean uncache, boolean removeUnsavedNodes)
nodes
.
If the uncache
parameter is true
nodes are
uncached from the node factory. When the removeUnsavedNodes
parameter is true, nodes that have not yet been persited are removed
from their container.
public int close(Document node, boolean uncache, boolean removeUnsavedNode)
node
.
If the uncache
parameter is true
nodes are
uncached from the node factory. When the removeUnsavedNodes
parameter is true, nodes that have not yet been persited are removed
from their container.
public int close(Document node)
public Document[] getAffectedDocuments()
getAffectedDocuments
in interface Command
getAffectedDocuments
in class AbstractCommand
public void clearAffectedDocuments()
public int checkSave(java.util.Iterator targets)
public int checkSave(java.util.Iterator targets, boolean canCancel)
canCancel
parameter is true
the
user is given the choice to cancel.
public int close(java.util.Iterator nodes, Context context, boolean uncache, boolean removeUnsavedNodes)
nodes
specified by the Iterator.
If the uncache
parameter is true
nodes are
uncached from the node factory. When the removeUnsavedNodes
parameter is true, nodes that have not yet been persited are removed
from their container.
protected int close(java.util.List nodes, Context context, boolean uncache, boolean removeUnsavedNodes)
protected void collectDirtyNodes(java.util.Iterator targets, java.util.List dirtyNodes)
protected java.util.List confirmClose(TNode[] tnodes)
protected java.util.List confirmClose(Element element)
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.