Constructor and Description |
---|
CloseNodeCommand()
Constructor.
|
CloseNodeCommand(UpdateMessage messageTemplate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
checkSave(java.util.Iterator targets)
Check if the user wants to save dirty Nodes about to be closed.
|
int |
checkSave(java.util.Iterator targets,
boolean canCancel)
Check if the user wants to save dirty Nodes about to be closed.
|
int |
checkSave(java.util.List dirtyNodes,
boolean canCancel) |
void |
clearAffectedNodes()
Reset the list of affected Nodes.
|
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 Nodes listed in
nodes . |
protected int |
close(java.util.List nodes,
Context context,
boolean uncache,
boolean removeUnsavedNodes) |
int |
close(Node node)
Close the specified Node.
|
int |
close(Node node,
boolean uncache,
boolean removeUnsavedNode)
Close the specified
node . |
static Command |
closeAndremoveApplication(Context context) |
protected void |
collectDirtyNodes(java.util.Iterator targets,
java.util.List dirtyNodes) |
int |
doit()
Executes the actions associated with a specific command.
|
Node[] |
getAffectedNodes()
Returns an array of the Nodes closed.
|
boolean |
isNeedConfirm() |
static Command |
removeOrCloseApplicationPrompt(Context context)
Deprecated.
No longer an option to close without removing application; use
closeAndremoveApplication(oracle.ide.Context) |
void |
setNeedConfirm(boolean confirm) |
enableConfirmation, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo, undo
public CloseNodeCommand()
public CloseNodeCommand(UpdateMessage messageTemplate)
@Deprecated public static Command removeOrCloseApplicationPrompt(Context context)
closeAndremoveApplication(oracle.ide.Context)
public int doit() throws java.lang.Exception
Command
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(Node 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(Node node)
public Node[] getAffectedNodes()
getAffectedNodes
in class Command
public void clearAffectedNodes()
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 checkSave(java.util.List dirtyNodes, boolean canCancel)
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)