Class HideOperation
- java.lang.Object
-
- org.eclipse.core.commands.operations.AbstractOperation
-
- org.eclipse.gef.zest.fx.operations.HideOperation
-
- All Implemented Interfaces:
IUndoableOperation,ITransactionalOperation
public class HideOperation extends AbstractOperation implements ITransactionalOperation
-
-
Constructor Summary
Constructors Constructor Description HideOperation(IViewer viewer, NodePart nodePart)Constructs a newHideOperationthat will hide the givenNodePartupon execution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IStatusexecute(IProgressMonitor monitor, IAdaptable info)booleanisContentRelevant()booleanisNoOp()IStatusredo(IProgressMonitor monitor, IAdaptable info)IStatusundo(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 Detail
-
HideOperation
public HideOperation(IViewer viewer, NodePart nodePart)
Constructs a newHideOperationthat will hide the givenNodePartupon execution.- Parameters:
viewer- The viewer from which to retrieve theHidingModel.nodePart- TheNodePartto show/hide.
-
-
Method Detail
-
execute
public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
- 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
public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
- Specified by:
redoin interfaceIUndoableOperation- Specified by:
redoin classAbstractOperation- Throws:
ExecutionException
-
undo
public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
- Specified by:
undoin interfaceIUndoableOperation- Specified by:
undoin classAbstractOperation- Throws:
ExecutionException
-
-