Package org.eclipse.gef.editpolicies
Class AbstractEditPolicy
java.lang.Object
org.eclipse.gef.editpolicies.AbstractEditPolicy
- All Implemented Interfaces:
- EditPolicy,- RequestConstants
- Direct Known Subclasses:
- ComponentEditPolicy,- ConnectionEditPolicy,- ContainerEditPolicy,- GraphicalEditPolicy,- TreeContainerEditPolicy
The default implementation of 
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.
- 
Field SummaryFields inherited from interface org.eclipse.gef.EditPolicyCOMPONENT_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_ROLEFields inherited from interface org.eclipse.gef.RequestConstantsREQ_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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivate()Does nothing by default.voidDoes nothing by default.protected final voiddebugFeedback(String message) Deprecated.in 3.1 This method will be removed in future releases.voideraseSourceFeedback(Request request) Does nothing by default.voideraseTargetFeedback(Request request) Does nothing by default.getCommand(Request request) Returnsnullby default.getHost()getTargetEditPart(Request request) Returnsnullby default.voidSets the host in which this EditPolicy is installed.voidshowSourceFeedback(Request request) Does nothing by default.voidshowTargetFeedback(Request request) Does nothing by default.toString()booleanReturnsfalseby default.
- 
Constructor Details- 
AbstractEditPolicypublic AbstractEditPolicy()
 
- 
- 
Method Details- 
activatepublic void activate()Does nothing by default.- Specified by:
- activatein interface- EditPolicy
- See Also:
 
- 
deactivatepublic void deactivate()Does nothing by default.- Specified by:
- deactivatein interface- EditPolicy
- See Also:
 
- 
debugFeedbackDeprecated.in 3.1 This method will be removed in future releases.This method will log the message to GEF's trace/debug system if the corrseponding flag for FEEDBACK is set to true.- Parameters:
- message- the String to log
 
- 
eraseSourceFeedbackDoes nothing by default.- Specified by:
- eraseSourceFeedbackin interface- EditPolicy
- Parameters:
- request- the Request
- See Also:
 
- 
eraseTargetFeedbackDoes nothing by default.- Specified by:
- eraseTargetFeedbackin interface- EditPolicy
- Parameters:
- request- the Request
- See Also:
 
- 
getCommandReturnsnullby default.nullis used to indicate that the EditPolicy does not contribute to the specifiedRequest.- Specified by:
- getCommandin interface- EditPolicy
- Parameters:
- request- the Request
- Returns:
- nullor a Command contribution
- See Also:
 
- 
getHost- Specified by:
- getHostin interface- EditPolicy
- Returns:
- the host EditPart on which this policy is installed.
- See Also:
 
- 
getTargetEditPartReturnsnullby default.nullindicates that this policy is unable to determine the target for the specifiedRequest.- Specified by:
- getTargetEditPartin interface- EditPolicy
- Parameters:
- request- the Request
- Returns:
- nullor the appropriate target- EditPart
- See Also:
 
- 
setHostDescription copied from interface:EditPolicySets the host in which this EditPolicy is installed.- Specified by:
- setHostin interface- EditPolicy
- Parameters:
- host- the host EditPart
- See Also:
 
- 
showSourceFeedbackDoes nothing by default.- Specified by:
- showSourceFeedbackin interface- EditPolicy
- Parameters:
- request- the Request
- See Also:
 
- 
showTargetFeedbackDoes nothing by default.- Specified by:
- showTargetFeedbackin interface- EditPolicy
- Parameters:
- request- the Request
- See Also:
 
- 
toString
- 
understandsRequestReturnsfalseby default.- Specified by:
- understandsRequestin interface- EditPolicy
- Parameters:
- req- the Request
- Returns:
- boolean trueif the EditPolicy understands the specified request
- See Also:
 
 
-