Package org.eclipse.gef.ui.actions

Examples of org.eclipse.gef.ui.actions.ToggleGridAction


        getGraphicalViewer().setEditPartFactory(createEditPartFactory());
        getGraphicalViewer().setKeyHandler(
                new GraphicalViewerKeyHandler(getGraphicalViewer())
                        .setParent(getCommonKeyHandler()));

        IAction showGrid = new ToggleGridAction(getGraphicalViewer());
        getActionRegistry().registerAction(showGrid);

        ContextMenuProvider provider = new GenericContextMenuProvider(
                getGraphicalViewer(), getActionRegistry());
        getGraphicalViewer().setContextMenu(provider);
View Full Code Here


    IAction snapAction = new ToggleSnapToGeometryAction(
        getGraphicalViewer());
    getActionRegistry().registerAction(snapAction);

    IAction showGrid = new ToggleGridAction(getGraphicalViewer());
    getActionRegistry().registerAction(showGrid);

    Listener listener = new Listener() {
      @Override
      public void handleEvent(Event event) {
View Full Code Here

        getGraphicalViewer().setEditPartFactory(createEditPartFactory());
        getGraphicalViewer().setKeyHandler(
                new GraphicalViewerKeyHandler(getGraphicalViewer())
                        .setParent(getCommonKeyHandler()));

        IAction showGrid = new ToggleGridAction(getGraphicalViewer());
        getActionRegistry().registerAction(showGrid);

        ContextMenuProvider provider = new GenericContextMenuProvider(
                getGraphicalViewer(), getActionRegistry());
        getGraphicalViewer().setContextMenu(provider);
View Full Code Here

  getActionRegistry().registerAction(showRulers);
 
  IAction snapAction = new ToggleSnapToGeometryAction(getGraphicalViewer());
  getActionRegistry().registerAction(snapAction);

  IAction showGrid = new ToggleGridAction(getGraphicalViewer());
  getActionRegistry().registerAction(showGrid);
 
  Listener listener = new Listener() {
    public void handleEvent(Event event) {
      handleActivationChanged(event);
View Full Code Here

TOP

Related Classes of org.eclipse.gef.ui.actions.ToggleGridAction

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.