Package org.eclipse.gef.examples.logicdesigner.edit

Examples of org.eclipse.gef.examples.logicdesigner.edit.GraphicalPartFactory


  Shell shell = new Shell((style & SWT.MIRRORED) != 0 ? SWT.RIGHT_TO_LEFT : SWT.NONE);
  GraphicalViewer viewer = new ScrollingGraphicalViewer();
  viewer.createControl(shell);
  viewer.setEditDomain(new DefaultEditDomain(null));
  viewer.setRootEditPart(new ScalableFreeformRootEditPart());
  viewer.setEditPartFactory(new GraphicalPartFactory());
  viewer.setContents(getContents());
  viewer.flush();
 
  int printMode = new PrintModeDialog(shell).open();
  if (printMode == -1)
View Full Code Here


  getSite().getKeyBindingService().registerAction(zoomIn);
  getSite().getKeyBindingService().registerAction(zoomOut);

  viewer.setRootEditPart(root);

  viewer.setEditPartFactory(new GraphicalPartFactory());
  ContextMenuProvider provider = new LogicContextMenuProvider(viewer, getActionRegistry());
  viewer.setContextMenu(provider);
  getSite().registerContextMenu("org.eclipse.gef.examples.logic.editor.contextmenu", //$NON-NLS-1$
      provider, viewer);
  viewer.setKeyHandler(new GraphicalViewerKeyHandler(viewer)
View Full Code Here

TOP

Related Classes of org.eclipse.gef.examples.logicdesigner.edit.GraphicalPartFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.