VR - The visual root node of the UI toolkit, e.g. javafx.scene.Node in
case of JavaFX.public class ChangeHoverOperation<VR> extends AbstractOperation
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_LABEL
"change-hover"
The default label for this operation (i.e. used if no label is
specified).
|
| Constructor and Description |
|---|
ChangeHoverOperation(IViewer<VR> viewer,
IVisualPart<VR,? extends VR> newHovered)
Creates a new
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer. |
ChangeHoverOperation(IViewer<VR> viewer,
IVisualPart<VR,? extends VR> oldHovered,
IVisualPart<VR,? extends VR> newHovered)
Creates a new
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer. |
ChangeHoverOperation(java.lang.String label,
IViewer<VR> viewer,
IVisualPart<VR,? extends VR> oldHovered,
IVisualPart<VR,? extends VR> newHovered)
Creates a new
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer. |
| Modifier and Type | Method and Description |
|---|---|
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toStringpublic static final java.lang.String DEFAULT_LABEL
"change-hover"The default label for this operation (i.e. used if no label is specified).
public ChangeHoverOperation(IViewer<VR> viewer, IVisualPart<VR,? extends VR> newHovered)
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer.viewer - The IViewer for which the HoverModel is to be
changed.newHovered - The IVisualPart which will be marked as hovered.public ChangeHoverOperation(IViewer<VR> viewer, IVisualPart<VR,? extends VR> oldHovered, IVisualPart<VR,? extends VR> newHovered)
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer. When undoing this operation, the given
oldHovered IVisualPart will be set as the hovered part.viewer - The IViewer for which the HoverModel is to be
changed.oldHovered - The IVisualPart which will be marked as hovered when
undoing this operation.newHovered - The IVisualPart which will be marked as hovered.public ChangeHoverOperation(java.lang.String label,
IViewer<VR> viewer,
IVisualPart<VR,? extends VR> oldHovered,
IVisualPart<VR,? extends VR> newHovered)
ChangeHoverOperation to set the given
newHovered IVisualPart as the hovered part within the
given IViewer. When undoing this operation, the given
oldHovered IVisualPart will be set as the hovered part.
The given label is used as the label of the operation.label - The operation's label.viewer - The IViewer for which the HoverModel is to be
changed.oldHovered - The IVisualPart which will be marked as hovered when
undoing this operation.newHovered - The IVisualPart which will be marked as hovered.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute in interface IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo in interface IUndoableOperationredo in class AbstractOperationExecutionExceptionpublic IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo in interface IUndoableOperationundo in class AbstractOperationExecutionExceptionCopyright (c) 2014 itemis AG and others. All rights reserved.