Examples of GraphicalPartFactory


Examples of info.textgrid.lab.noteeditor.factories.GraphicalPartFactory

        this);
    getActionRegistry().registerAction(insertStaffdefsAction);
    // Add specific addChild actions
    addSpecificChildActions();
    viewer.setRootEditPart(root);
    viewer.setEditPartFactory(new GraphicalPartFactory());
    ContextMenuProvider provider = new MusicContextMenuProvider(viewer,
        getActionRegistry());
    viewer.setContextMenu(provider);
    getSite().registerContextMenu(
        "info.textgrid.lab.noteeditor.outline.contextmenu", //$NON-NLS-1$
View Full Code Here

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

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

  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

Examples of org.springframework.ide.eclipse.beans.ui.graph.parts.GraphicalPartFactory

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

    GraphicalViewer viewer = getGraphicalViewer();
    viewer.setRootEditPart(root);
    viewer.setKeyHandler(new GraphicalViewerKeyHandler(viewer));
    viewer.setEditPartFactory(new GraphicalPartFactory());
    viewer.getControl().setBackground(ColorConstants.listBackground);

    ContextMenuProvider provider = new GraphContextMenuProvider(viewer, getActionRegistry());
    viewer.setContextMenu(provider);
    getSite().registerContextMenu(CONTEXT_MENU_ID, provider, viewer);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.