public abstract class AbstractResourceUndoAction extends java.lang.Object implements UndoManager.UndoAction
Modifier | Constructor and Description |
---|---|
protected |
AbstractResourceUndoAction() |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
actionKey() |
protected abstract int |
actionSize() |
static java.util.List<ProjectResource> |
extractProjectResources(java.util.List<AbstractResourceNavTreeNode> nodes)
Extracts the project resources (deep) contained in and beneanth the nodes represented in the list.
|
java.lang.String |
getDescription()
The description of the action will be used to determine grouping equality as well as for display purposes.
|
protected abstract java.lang.String |
objectKey() |
protected static boolean |
requestLocks(DesignerProjectContext context,
java.util.List<ProjectResource> resources)
Returns true if all of the locks for the list of nodes was obtained.
|
protected static void |
updateAndReleaseLocks(DesignerProjectContext context,
java.util.List<ProjectResource> resources) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, isGroupSequenceIndependent, undo
protected static boolean requestLocks(DesignerProjectContext context, java.util.List<ProjectResource> resources)
protected static void updateAndReleaseLocks(DesignerProjectContext context, java.util.List<ProjectResource> resources)
public java.lang.String getDescription()
UndoManager.UndoAction
getDescription
in interface UndoManager.UndoAction
protected abstract int actionSize()
protected abstract java.lang.String objectKey()
protected abstract java.lang.String actionKey()
public static java.util.List<ProjectResource> extractProjectResources(java.util.List<AbstractResourceNavTreeNode> nodes)