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, toString
public 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.IUndoableOperation
execute
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
public boolean isContentRelevant()
isContentRelevant
in interface ITransactionalOperation
public boolean isNoOp()
isNoOp
in interface ITransactionalOperation
public 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.IUndoableOperation
redo
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
public 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.IUndoableOperation
undo
in class org.eclipse.core.commands.operations.AbstractOperation
org.eclipse.core.commands.ExecutionException
Copyright (c) 2014 itemis AG and others. All rights reserved.