Examples of contributeGlobalActions()


Examples of org.locationtech.udig.project.ui.tool.IToolManager.contributeGlobalActions()

     */
    private void setGlobalActions() {
        IActionBars actionBars = getViewSite().getActionBars();

        IToolManager toolManager = ApplicationGIS.getToolManager();
        toolManager.contributeGlobalActions(this, actionBars);
        toolManager.registerActionsWithPart(this);

        IKeyBindingService keyBindings = getSite().getKeyBindingService();
        IAction delAction = getDeleteAction();
        actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), delAction);
View Full Code Here

Examples of org.locationtech.udig.project.ui.tool.IToolManager.contributeGlobalActions()

     */
    private void setGlobalActions() {
        IActionBars actionBars = getViewSite().getActionBars();
       
        IToolManager toolManager = ApplicationGIS.getToolManager();
        toolManager.contributeGlobalActions(this, actionBars);
        toolManager.registerActionsWithPart(this);
       
        IKeyBindingService keyBindings = getSite().getKeyBindingService();
        IAction delAction = getDeleteAction();
        actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), delAction);
View Full Code Here

Examples of org.locationtech.udig.project.ui.tool.IToolManager.contributeGlobalActions()

  @Override
  public void setActiveEditor(IEditorPart targetEditor) {
      super.setActiveEditor(targetEditor);
     
        IToolManager toolManager = ApplicationGIS.getToolManager();
        toolManager.contributeGlobalActions(targetEditor, getActionBars());
        toolManager.registerActionsWithPart(targetEditor);
        getActionBars().updateActionBars();
  }
}
View Full Code Here

Examples of org.locationtech.udig.project.ui.tool.IToolManager.contributeGlobalActions()

        IActionBars actionBars = getViewSite().getActionBars();
       
        // register with the tool manager so the projects view will pass keybindings
        // over to the editor
        IToolManager toolManager = ApplicationGIS.getToolManager();
        toolManager.contributeGlobalActions(this, actionBars);
        toolManager.registerActionsWithPart(this);
       
        // except for the delete key we want that one for us
        IKeyBindingService keyBindings = getSite().getKeyBindingService();
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.