|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.officefloor.eclipse.common.action.AbstractOperation<E>
public abstract class AbstractOperation<E extends org.eclipse.gef.EditPart>
Abstract Operation.
| Nested Class Summary | |
|---|---|
protected class |
AbstractOperation.Context
Context. |
| Constructor Summary | |
|---|---|
AbstractOperation(String actionText,
Class<E> editPartType)
Initiate. |
|
| Method Summary | ||
|---|---|---|
String |
getActionText()
Obtains the text to use for the IAction. |
|
boolean |
isApplicable(org.eclipse.gef.EditPart[] editParts)
Indicates if this Operation is applicable for the input
EditPart instances. |
|
protected static
|
isAssignable(Class<T> editPartType,
org.eclipse.gef.EditPart[] editParts)
Returns whether all the EditPart instances are assignable to the
EditPart type. |
|
protected abstract void |
perform(AbstractOperation.Context context)
Performs the Operation on the particular
AbstractOfficeFloorEditPart. |
|
void |
perform(OperationContext context)
Performs this Operation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractOperation(String actionText,
Class<E> editPartType)
actionText - Action text.editPartType - AbstractOfficeFloorEditPart type being handled.| Method Detail |
|---|
protected static <T extends org.eclipse.gef.EditPart> boolean isAssignable(Class<T> editPartType,
org.eclipse.gef.EditPart[] editParts)
EditPart instances are assignable to the
EditPart type.
editPartType - EditPart type.editParts - EditPart instances.
true if all assignable.public String getActionText()
OperationIAction.
getActionText in interface OperationIAction.public boolean isApplicable(org.eclipse.gef.EditPart[] editParts)
OperationOperation is applicable for the input
EditPart instances.
isApplicable in interface OperationeditParts - EditPart instances.
true if this Operation is applicable for the
input EditPart instances.public void perform(OperationContext context)
OperationOperation.
perform in interface Operationcontext - OperationContext.protected abstract void perform(AbstractOperation.Context context)
Operation on the particular
AbstractOfficeFloorEditPart.
context - AbstractOperation.Context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||