public class ShowHiddenNeighborsOperation extends 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<javafx.scene.Node> 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 |
---|---|
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
boolean |
isContentRelevant() |
boolean |
isNoOp() |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext
public ShowHiddenNeighborsOperation(IViewer<javafx.scene.Node> 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 IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute
in interface IUndoableOperation
execute
in class AbstractOperation
ExecutionException
public boolean isContentRelevant()
isContentRelevant
in interface ITransactionalOperation
public boolean isNoOp()
isNoOp
in interface ITransactionalOperation
public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo
in interface IUndoableOperation
redo
in class AbstractOperation
ExecutionException
public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo
in interface IUndoableOperation
undo
in class AbstractOperation
ExecutionException
Copyright (c) 2014 itemis AG and others. All rights reserved.