public void performRequest(Request request) { if (RequestConstants.REQ_DIRECT_EDIT.equals(request.getType())) { performDirectEdit(); } else { super.performRequest(request); } }
/** * Returns <code>true</code> for {@link RequestConstants#REQ_DIRECT_EDIT}. {@link * org.eclipse.gef.ui.actions.DirectEditAction} will determine enablement based on whether the * selected EditPart understands "direct edit". * * @see org.eclipse.gef.EditPolicy#understandsRequest(Request) */ public boolean understandsRequest(Request request) { if (RequestConstants.REQ_DIRECT_EDIT.equals(request.getType())) return true; return super.understandsRequest(request); }