public class ChangeAttributeOperation extends AbstractOperation implements ITransactionalOperation
ChangeAttributeOperation can be used to manipulate the value of
an attribute of an IAttributeStore.| Constructor and Description |
|---|
ChangeAttributeOperation(org.eclipse.gef.common.attributes.IAttributeStore attributeStore,
java.lang.String attributeKey,
java.lang.Object attributeValue)
Constructs a new
ChangeAttributeOperation to manipulate the value
of an attribute for the given IAttributeStore. |
| Modifier and Type | Method and Description |
|---|---|
IStatus |
execute(IProgressMonitor monitor,
IAdaptable info) |
boolean |
isContentRelevant() |
boolean |
isNoOp() |
IStatus |
redo(IProgressMonitor monitor,
IAdaptable info) |
IStatus |
undo(IProgressMonitor monitor,
IAdaptable info) |
addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContextpublic ChangeAttributeOperation(org.eclipse.gef.common.attributes.IAttributeStore attributeStore,
java.lang.String attributeKey,
java.lang.Object attributeValue)
ChangeAttributeOperation to manipulate the value
of an attribute for the given IAttributeStore.attributeStore - The IAttributeStore that is manipulated by this
operation.attributeKey - The key that identifies the attribute to change.attributeValue - The new value of the attribute.public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException
execute in interface IUndoableOperationexecute in class AbstractOperationExecutionExceptionpublic boolean isContentRelevant()
isContentRelevant in interface ITransactionalOperationpublic boolean isNoOp()
isNoOp in interface ITransactionalOperationpublic 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.