Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IAction.run()


        bounds.expandToInclude(bounds.getMaxX()+deltax, bounds.getMaxY()+deltay);
        UndoableComposite composite = new UndoableComposite();
        IAction tool = ApplicationGIS.getToolManager().getToolAction("org.locationtech.udig.tools.selectionTool", "org.locationtech.udig.tool.edit.edit"); //$NON-NLS-1$ //$NON-NLS-2$
        // could be null if tool.edit plug-in is not in distribution.
        if( tool !=null ){
          tool.run();
        }
        NavCommand zoom = context.getNavigationFactory().createSetViewportBBoxCommand(
                bounds, crs);
        context.sendASyncCommand(zoom);
        composite.getCommands().add(context.getSelectionFactory().createFIDSelectCommand(getLayer(),getFeature()));
View Full Code Here


    public void run() {
        IAction tool = ApplicationGIS.getToolManager().getTool("org.locationtech.udig.tools.Pan"//$NON-NLS-1$
                "org.locationtech.udig.tool.category.pan"); //$NON-NLS-1$
       
        tool.run();
    }

    public void addListener( ToolLifecycleListener listener ) {
    }
View Full Code Here

    }
    // use "right + width"
    {
      IAction action = findAction(actions, "right + width");
      action.setChecked(true);
      action.run();
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootLayoutPanel rootPanel = RootLayoutPanel.get();",
View Full Code Here

    }
    // use "bottom + height"
    {
      IAction action = findAction(actions, "bottom + height");
      action.setChecked(true);
      action.run();
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootLayoutPanel rootPanel = RootLayoutPanel.get();",
View Full Code Here

   * @see org.eclipse.jface.action.IAction#run()
   */
  public void run() {
    IAction action= getEnabledAction();
    if (action != null)
      action.run();
  }

  /**
   * Returns the first enabled action, or <code>null</code> if none is
   * enabled.
 
View Full Code Here

    button.addSelectionListener(new SelectionAdapter() {
      /*
       * @see org.eclipse.swt.events.SelectionAdapter#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
       */
      public void widgetSelected(SelectionEvent e) {
        action.run();
      }
    });

    Label filler= new Label(parent, SWT.NONE);
    filler.setLayoutData(new GridData(GridData.FILL_BOTH));
View Full Code Here

                event.doit= false;
                return;
              }
            } else if (action.isEnabled()) {
              event.doit= false;
              action.run();
              return;
            }
          }
        }
      }
View Full Code Here

          IAction action= getAction(actionID);
          if (action != null) {
            if (action instanceof IUpdate)
              ((IUpdate) action).update();
            if (action.isEnabled())
              action.run();
          }
        }

        public void mouseUp(final MouseEvent e) {
          setFocus();
View Full Code Here

    public void modeChanged(Type newMode) {
      IAction actionToExecute = new ChangeModeAction(newMode, newMode.getShortName(),
              AnnotationEditor.this);

      actionToExecute.run();
    }});

    modeMenuManager.add(modeMenu);

    // annotation menu
View Full Code Here

    public void modeChanged(Type newMode) {
      IAction actionToExecute = new ChangeModeAction(newMode, newMode.getShortName(),
              AnnotationEditor.this);

      actionToExecute.run();
    }});

    modeMenuManager.add(modeMenu);

    // annotation menu
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.