public class ShowHiddenNeighborsOperation extends org.eclipse.core.commands.operations.AbstractOperation implements ITransactionalOperation
ShowHiddenNeighborsOperation can be used to remove the neighbors
of a given NodePart from the HidingModel of a given
IViewer.| Constructor and Description |
|---|
ShowHiddenNeighborsOperation(IViewer viewer,
NodePart nodePart)
Constructs a new
ShowHiddenNeighborsOperation that will show all
hidden neighbors of the given NodePart by removing them from the
HidingModel of the given IViewer 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 ShowHiddenNeighborsOperation(IViewer viewer, NodePart nodePart)
ShowHiddenNeighborsOperation that will show all
hidden neighbors of the given NodePart by removing them from the
HidingModel of the given IViewer upon execution.viewer - The viewer from which to retrieve the HidingModel.nodePart - The NodePart of which the hidden neighbors are to be
shown.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.