public abstract class AbstractEditPolicy extends java.lang.Object implements EditPolicy, RequestConstants
EditPolicy.
Since this is the default implementation of an interface, this document deals
with proper sub-classing. This class is not the API. For documentation on
proper usage of the public API, see the documentation for the interface
itself: EditPolicy.
COMPONENT_ROLE, CONNECTION_BENDPOINTS_ROLE, CONNECTION_ENDPOINTS_ROLE, CONNECTION_ROLE, CONTAINER_ROLE, DIRECT_EDIT_ROLE, GRAPHICAL_NODE_ROLE, LAYOUT_ROLE, NODE_ROLE, PRIMARY_DRAG_ROLE, SELECTION_FEEDBACK_ROLE, TREE_CONTAINER_ROLEREQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER| Constructor and Description |
|---|
AbstractEditPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Does nothing by default.
|
void |
deactivate()
Does nothing by default.
|
protected void |
debugFeedback(java.lang.String message)
Deprecated.
in 3.1 This method will be removed in future releases.
|
void |
eraseSourceFeedback(Request request)
Does nothing by default.
|
void |
eraseTargetFeedback(Request request)
Does nothing by default.
|
Command |
getCommand(Request request)
Returns
null by default. |
EditPart |
getHost() |
EditPart |
getTargetEditPart(Request request)
Returns
null by default. |
void |
setHost(EditPart host)
Sets the host in which this EditPolicy is installed.
|
void |
showSourceFeedback(Request request)
Does nothing by default.
|
void |
showTargetFeedback(Request request)
Does nothing by default.
|
java.lang.String |
toString() |
boolean |
understandsRequest(Request req)
Returns
false by default. |
public void activate()
activate in interface EditPolicyEditPolicy.activate()public void deactivate()
deactivate in interface EditPolicyEditPolicy.deactivate()protected final void debugFeedback(java.lang.String message)
message - the String to logpublic void eraseSourceFeedback(Request request)
eraseSourceFeedback in interface EditPolicyrequest - the RequestEditPolicy.eraseSourceFeedback(Request)public void eraseTargetFeedback(Request request)
eraseTargetFeedback in interface EditPolicyrequest - the RequestEditPolicy.eraseTargetFeedback(Request)public Command getCommand(Request request)
null by default. null is used to
indicate that the EditPolicy does not contribute to the specified
Request.getCommand in interface EditPolicyrequest - the Requestnull or a Command contributionEditPolicy.getCommand(Request)public EditPart getHost()
getHost in interface EditPolicyEditPolicy.getHost()public EditPart getTargetEditPart(Request request)
null by default. null indicates that
this policy is unable to determine the target for the specified
Request.getTargetEditPart in interface EditPolicyrequest - the Requestnull or the appropriate target EditPartEditPolicy.getTargetEditPart(Request)public void setHost(EditPart host)
EditPolicysetHost in interface EditPolicyhost - the host EditPartEditPolicy.setHost(EditPart)public void showSourceFeedback(Request request)
showSourceFeedback in interface EditPolicyrequest - the RequestEditPolicy.showSourceFeedback(Request)public void showTargetFeedback(Request request)
showTargetFeedback in interface EditPolicyrequest - the RequestEditPolicy.showTargetFeedback(Request)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean understandsRequest(Request req)
false by default.understandsRequest in interface EditPolicyreq - the Requesttrue if the EditPolicy understands the
specified requestEditPolicy.understandsRequest(Request)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.