Class HideOperation
java.lang.Object
org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.gef.zest.fx.operations.HideOperation
- All Implemented Interfaces:
IUndoableOperation
,ITransactionalOperation
-
Constructor Summary
ConstructorDescriptionHideOperation
(IViewer viewer, NodePart nodePart) Constructs a newHideOperation
that will hide the givenNodePart
upon execution. -
Method Summary
Modifier and TypeMethodDescriptionexecute
(IProgressMonitor monitor, IAdaptable info) boolean
boolean
isNoOp()
redo
(IProgressMonitor monitor, IAdaptable info) undo
(IProgressMonitor monitor, IAdaptable info) Methods inherited from class org.eclipse.core.commands.operations.AbstractOperation
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext
-
Constructor Details
-
HideOperation
Constructs a newHideOperation
that will hide the givenNodePart
upon execution.- Parameters:
viewer
- The viewer from which to retrieve theHidingModel
.nodePart
- TheNodePart
to show/hide.
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceIUndoableOperation
- Specified by:
execute
in classAbstractOperation
- Throws:
ExecutionException
-
isContentRelevant
public boolean isContentRelevant()- Specified by:
isContentRelevant
in interfaceITransactionalOperation
-
isNoOp
public boolean isNoOp()- Specified by:
isNoOp
in interfaceITransactionalOperation
-
redo
- Specified by:
redo
in interfaceIUndoableOperation
- Specified by:
redo
in classAbstractOperation
- Throws:
ExecutionException
-
undo
- Specified by:
undo
in interfaceIUndoableOperation
- Specified by:
undo
in classAbstractOperation
- Throws:
ExecutionException
-