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()
Returns the
FXConnection which is manipulated by this operation. |
java.util.List<IFXAnchor> |
getNewAnchors()
Returns the list of
IFXAnchor s which will replace the
connection's anchors upon execution. |
java.util.List<IFXAnchor> |
getOldAnchors()
Returns the list of
IFXAnchor s which will replace the
connection's anchors upon undoing. |
boolean |
hasEffect()
Returns
true if this operation will result in any
manipulations. |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
void |
setNewAnchors(java.util.List<IFXAnchor> newAnchors)
Sets the list of
IFXAnchor s which will replace the connection's
anchors upon execution. |
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()
FXConnection
which is manipulated by this operation.FXConnection
which is manipulated by this operation.public java.util.List<IFXAnchor> getNewAnchors()
IFXAnchor
s which will replace the
connection's anchors upon execution.IFXAnchor
s which will replace the
connection's anchors upon execution.public java.util.List<IFXAnchor> getOldAnchors()
IFXAnchor
s which will replace the
connection's anchors upon undoing.IFXAnchor
s which will replace the
connection's anchors upon undoing.public boolean hasEffect()
true
if this operation will result in any
manipulations. Otherwise returns false
.true
if this operation will result in any
manipulations, otherwise false
.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)
IFXAnchor
s which will replace the connection's
anchors upon execution.newAnchors
- The list of IFXAnchor
s which will replace the
connection's anchors upon execution.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.