Class ShowHiddenNeighborsOperation
java.lang.Object
org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.gef.zest.fx.operations.ShowHiddenNeighborsOperation
- All Implemented Interfaces:
IUndoableOperation,ITransactionalOperation
public class ShowHiddenNeighborsOperation
extends AbstractOperation
implements ITransactionalOperation
The
ShowHiddenNeighborsOperation can be used to remove the neighbors
of a given NodePart from the HidingModel of a given
IViewer.-
Constructor Summary
ConstructorsConstructorDescriptionShowHiddenNeighborsOperation(IViewer viewer, NodePart nodePart) Constructs a newShowHiddenNeighborsOperationthat will show all hidden neighbors of the givenNodePartby removing them from theHidingModelof the givenIViewerupon execution. -
Method Summary
Modifier and TypeMethodDescriptionexecute(IProgressMonitor monitor, IAdaptable info) booleanbooleanisNoOp()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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.core.commands.operations.IUndoableOperation
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext
-
Constructor Details
-
ShowHiddenNeighborsOperation
Constructs a newShowHiddenNeighborsOperationthat will show all hidden neighbors of the givenNodePartby removing them from theHidingModelof the givenIViewerupon execution.- Parameters:
viewer- The viewer from which to retrieve theHidingModel.nodePart- TheNodePartof which the hidden neighbors are to be shown.
-
-
Method Details
-
execute
- Specified by:
executein interfaceIUndoableOperation- Specified by:
executein classAbstractOperation- Throws:
ExecutionException
-
isContentRelevant
public boolean isContentRelevant()- Specified by:
isContentRelevantin interfaceITransactionalOperation
-
isNoOp
public boolean isNoOp()- Specified by:
isNoOpin interfaceITransactionalOperation
-
redo
- Specified by:
redoin interfaceIUndoableOperation- Specified by:
redoin classAbstractOperation- Throws:
ExecutionException
-
undo
- Specified by:
undoin interfaceIUndoableOperation- Specified by:
undoin classAbstractOperation- Throws:
ExecutionException
-