|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.eclipse.common.action.OperationUtil
public class OperationUtil
Utility class to aid working with an Operation.
| Method Summary | |
|---|---|
static void |
execute(Operation operation,
int x,
int y,
org.eclipse.gef.EditPart firstSelectedEditPart,
org.eclipse.gef.EditPart... remainingSelectedEditParts)
Performs the Operation. |
static org.eclipse.gef.commands.Command |
getCommand(Operation operation,
int x,
int y,
org.eclipse.gef.EditPart editPart)
Obtains the Command from the Operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void execute(Operation operation,
int x,
int y,
org.eclipse.gef.EditPart firstSelectedEditPart,
org.eclipse.gef.EditPart... remainingSelectedEditParts)
Operation.
operation - Operation.x - X of location.y - Y of location.firstSelectedEditPart - First selected EditPart instance to ensure at least
one.remainingSelectedEditParts - Remaining EditPart instances.
public static org.eclipse.gef.commands.Command getCommand(Operation operation,
int x,
int y,
org.eclipse.gef.EditPart editPart)
Obtains the Command from the Operation.
Note should the Operation provide more than one Command,
only the last Command is returned.
operation - Operation.x - X of location.y - Y of location.editPart - EditPart to perform the Operation on.
Command or null if Operation does
not provide one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||