public class ConnectionEndpointEditPolicy extends SelectionHandlesEditPolicy
A connection can receive focus but not selection by pressing
Control+/ on the keyboard.
handlesCOMPONENT_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 |
|---|
ConnectionEndpointEditPolicy() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
createSelectionHandles()
Subclasses must implement to provide the list of handles.
|
protected void |
eraseConnectionMoveFeedback(ReconnectRequest request)
Erases connection move feedback.
|
void |
eraseSourceFeedback(Request request)
Does nothing by default.
|
Command |
getCommand(Request request)
Returns
null by default. |
protected Connection |
getConnection()
Convenience method for obtaining the host's
Connection
figure. |
protected FeedbackHelper |
getFeedbackHelper(ReconnectRequest request)
Lazily creates and returns the feedback helper for the given request.
|
protected void |
hideFocus()
Hides the focus indicator.
|
protected void |
showConnectionMoveFeedback(ReconnectRequest request)
Shows or updates connection move feedback.
|
protected void |
showFocus()
Shows focus around the connection.
|
void |
showSourceFeedback(Request request)
Does nothing by default.
|
addSelectionHandles, getAdapter, hideSelection, removeSelectionHandles, showSelectionactivate, addSelectionListener, deactivate, getTargetEditPart, removeSelectionListener, setFocus, setSelectedState, showPrimarySelectionaddFeedback, getFeedbackLayer, getHostFigure, getLayer, removeFeedbackdebugFeedback, eraseTargetFeedback, getHost, setHost, showTargetFeedback, toString, understandsRequestprotected java.util.List createSelectionHandles()
SelectionHandlesEditPolicycreateSelectionHandles in class SelectionHandlesEditPolicynullSelectionHandlesEditPolicy.createSelectionHandles()protected void eraseConnectionMoveFeedback(ReconnectRequest request)
request - the reconnect request.public void eraseSourceFeedback(Request request)
AbstractEditPolicyeraseSourceFeedback in interface EditPolicyeraseSourceFeedback in class AbstractEditPolicyrequest - the RequestEditPolicy.eraseSourceFeedback(org.eclipse.gef.Request)public Command getCommand(Request request)
AbstractEditPolicynull by default. null is used to
indicate that the EditPolicy does not contribute to the specified
Request.getCommand in interface EditPolicygetCommand in class AbstractEditPolicyrequest - the Requestnull or a Command contributionEditPolicy.getCommand(org.eclipse.gef.Request)protected Connection getConnection()
Connection
figure.protected FeedbackHelper getFeedbackHelper(ReconnectRequest request)
request - the reconnect requestprotected void hideFocus()
hideFocus in class SelectionEditPolicyshowFocus(),
SelectionEditPolicy.hideFocus()protected void showConnectionMoveFeedback(ReconnectRequest request)
request - the reconnect requestprotected void showFocus()
showFocus in class SelectionEditPolicySelectionEditPolicy.showFocus()public void showSourceFeedback(Request request)
AbstractEditPolicyshowSourceFeedback in interface EditPolicyshowSourceFeedback in class AbstractEditPolicyrequest - the RequestEditPolicy.showSourceFeedback(org.eclipse.gef.Request)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.