public class FXBendOperation extends AbstractOperation implements ITransactionalOperation
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
IFXAnchors which will replace the
connection's anchors upon execution. |
java.util.List<IFXAnchor> |
getOldAnchors()
Returns the list of
IFXAnchors which will replace the
connection's anchors upon undoing. |
boolean |
isNoOp()
Returns
true if this ITransactionalOperation has no
effect. |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
void |
setNewAnchors(java.util.List<IFXAnchor> newAnchors)
Sets the list of
IFXAnchors 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, setLabelclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContextpublic FXBendOperation(FXConnection connection)
IFXAnchors 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 IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic FXConnection getConnection()
FXConnection which is manipulated by this operation.FXConnection which is manipulated by this operation.public java.util.List<IFXAnchor> getNewAnchors()
IFXAnchors which will replace the
connection's anchors upon execution.IFXAnchors which will replace the
connection's anchors upon execution.public java.util.List<IFXAnchor> getOldAnchors()
IFXAnchors which will replace the
connection's anchors upon undoing.IFXAnchors which will replace the
connection's anchors upon undoing.public boolean isNoOp()
ITransactionalOperationisNoOp in interface ITransactionalOperationtrue if this ITransactionalOperation has no
effect, otherwise false.public IStatus redo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
redo in interface IUndoableOperationredo in class AbstractOperationExecutionExceptionpublic void setNewAnchors(java.util.List<IFXAnchor> newAnchors)
IFXAnchors which will replace the connection's
anchors upon execution.newAnchors - The list of IFXAnchors which will replace the
connection's anchors upon execution.public java.lang.String toString()
toString in class AbstractOperationpublic IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
undo in interface IUndoableOperationundo in class AbstractOperationExecutionExceptionCopyright (c) 2014 itemis AG and others. All rights reserved.