public class FXBendOperation extends AbstractOperation
FXBendOperation
can be used to manipulate an FXConnection
in an undo-context.Constructor and Description |
---|
FXBendOperation(FXConnection connection)
Constructs a new operation from the given connection.
|
Modifier and Type | Method and Description |
---|---|
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
FXConnection |
getConnection() |
java.util.List<IFXAnchor> |
getNewAnchors() |
java.util.List<IFXAnchor> |
getOldAnchors() |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
void |
setNewAnchors(java.util.List<IFXAnchor> newAnchors) |
java.lang.String |
toString() |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel
public FXBendOperation(FXConnection connection)
IFXAnchor
s are initialized based on the connection.connection
- The FXConnection
which will be modified by this
operation.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute
in interface IUndoableOperation
execute
in class AbstractOperation
ExecutionException
public FXConnection getConnection()
public java.util.List<IFXAnchor> getNewAnchors()
public java.util.List<IFXAnchor> getOldAnchors()
public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo
in interface IUndoableOperation
redo
in class AbstractOperation
ExecutionException
public void setNewAnchors(java.util.List<IFXAnchor> newAnchors)
public java.lang.String toString()
toString
in class AbstractOperation
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.