public class HideOperation extends org.eclipse.core.commands.operations.AbstractOperation implements ITransactionalOperation
| Constructor and Description |
|---|
HideOperation(IViewer viewer,
NodePart nodePart)
Constructs a new
HideOperation that will hide the given
NodePart upon execution. |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.core.runtime.IStatus |
execute(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
boolean |
isContentRelevant() |
boolean |
isNoOp() |
org.eclipse.core.runtime.IStatus |
redo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
org.eclipse.core.runtime.IStatus |
undo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toStringpublic HideOperation(IViewer viewer, NodePart nodePart)
HideOperation that will hide the given
NodePart upon execution.viewer - The viewer from which to retrieve the HidingModel.nodePart - The NodePart to show/hide.public org.eclipse.core.runtime.IStatus execute(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info)
throws org.eclipse.core.commands.ExecutionException
execute in interface org.eclipse.core.commands.operations.IUndoableOperationexecute in class org.eclipse.core.commands.operations.AbstractOperationorg.eclipse.core.commands.ExecutionExceptionpublic boolean isContentRelevant()
isContentRelevant in interface ITransactionalOperationpublic boolean isNoOp()
isNoOp in interface ITransactionalOperationpublic org.eclipse.core.runtime.IStatus redo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info)
throws org.eclipse.core.commands.ExecutionException
redo in interface org.eclipse.core.commands.operations.IUndoableOperationredo in class org.eclipse.core.commands.operations.AbstractOperationorg.eclipse.core.commands.ExecutionExceptionpublic org.eclipse.core.runtime.IStatus undo(org.eclipse.core.runtime.IProgressMonitor monitor,
org.eclipse.core.runtime.IAdaptable info)
throws org.eclipse.core.commands.ExecutionException
undo in interface org.eclipse.core.commands.operations.IUndoableOperationundo in class org.eclipse.core.commands.operations.AbstractOperationorg.eclipse.core.commands.ExecutionExceptionCopyright (c) 2014 itemis AG and others. All rights reserved.