org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy Java Examples
The following examples show how to use
org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InlineSubdiagramHandler.java From statecharts with Eclipse Public License 1.0 | 4 votes |
private Object setPreferredSize(ExecutionEvent event) { IGraphicalEditPart editPart = (IGraphicalEditPart) getFirstElement(HandlerUtil.getCurrentSelection(event)); Command cmd = editPart.getCommand(new SetPreferredSizeRequest(editPart)); AbstractRefactoring.executeCommand(new CommandProxy(cmd), editPart.resolveSemanticElement().eResource()); return null; }
Example #2
Source File: CustomLaneItemSemanticEditPolicy.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
public static CommandProxy arrangeAll(final EditPart ep, final List<GraphicalEditPart> newList) { final ArrangeRequest request = new ArrangeRequest(RequestConstants.REQ_ARRANGE_DEFERRED); request.setPartsToArrange(newList); request.setViewAdaptersToArrange(newList); return new CommandProxy(ep.getCommand(request)); }