Examples of registerAction()


Examples of org.eclipse.gef.ui.actions.ActionRegistry.registerAction()

    action = new SaveAction(this);
    registry.registerAction(action);
    getPropertyActions().add(action.getId());

    registry.registerAction(new PrintAction(this));

    action = new CopyRecordAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry.registerAction()

    getPropertyActions().add(action.getId());

    registry.registerAction(new PrintAction(this));

    action = new CopyRecordAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());

    action = new PasteRecordAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
View Full Code Here

Examples of org.eclipse.gef.ui.actions.ActionRegistry.registerAction()

    action = new CopyRecordAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());

    action = new PasteRecordAction(this);
    registry.registerAction(action);
    getSelectionActions().add(action.getId());
  }

  @Override
  public Object getAdapter(@SuppressWarnings("rawtypes") Class type) {
View Full Code Here

Examples of org.eclipse.ui.IKeyBindingService.registerAction()

    private void hookGlobalActions() {
        ApplicationGIS.getToolManager().contributeGlobalActions(this, getViewSite().getActionBars());
        IKeyBindingService service = getSite().getKeyBindingService();
        IAction action = deleteAction;
        getViewSite().getActionBars().setGlobalActionHandler(ActionFactory.DELETE.getId(), action);
        service.registerAction(action);
       

    }

    /**
 
View Full Code Here

Examples of org.eclipse.ui.IKeyBindingService.registerAction()

        toolManager.registerActionsWithPart(this);
       
        IKeyBindingService keyBindings = getSite().getKeyBindingService();
        IAction delAction = getDeleteAction();
        actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), delAction);
        keyBindings.registerAction(delAction);
    }

    /**
     * This is how the framework determines which interfaces we implement. <!-- begin-user-doc -->
     * <!-- end-user-doc -->
View Full Code Here

Examples of org.eclipse.ui.IKeyBindingService.registerAction()

       
        // except for the delete key we want that one for us
        IKeyBindingService keyBindings = getSite().getKeyBindingService();

        actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), delAction );
        keyBindings.registerAction(delAction);
    }

    /**
     * @return a ComposeableAdapterFactory for all the Udig's EMF objects.
     */
 
View Full Code Here

Examples of org.eclipse.ui.IKeyBindingService.registerAction()

        deleteVertexHandler=null;
       
        ApplicationGIS.getToolManager().setDELETEAction(oldAction,part);
        actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), oldAction);
        if( oldAction!=null ){
            keyBindingService.registerAction(oldAction);
        }
        oldAction=null;
       
        actionBars.updateActionBars();
    }
View Full Code Here

Examples of org.eclipse.ui.IKeyBindingService.registerAction()

            deleteVertexHandler.setDisabledImageDescriptor(oldAction.getDisabledImageDescriptor());
        }
        ApplicationGIS.getToolManager().setDELETEAction(deleteVertexHandler,part);
        actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(), deleteVertexHandler);
        actionBars.updateActionBars();
        keyBindingService.registerAction(deleteVertexHandler);
    }

    public void deactivate( EditToolHandler handler ) {
        IActionBars2 actionBars = handler.getContext().getActionBars();
        if( actionBars==null || oldAction==null ){
View Full Code Here

Examples of org.eclipse.ui.IKeyBindingService.registerAction()

            bars.setGlobalActionHandler(ActionFactory.PROPERTIES.getId(), getPropertiesAction(part,selection));
        }
       
        if(actionCLOSE == null)
          actionCLOSE = ActionFactory.CLOSE.create(part.getSite().getWorkbenchWindow());
        service.registerAction(actionCLOSE);
        bars.setGlobalActionHandler(ActionFactory.CLOSE.getId(), actionCLOSE);

        if(actionSAVE == null)
          actionSAVE = ActionFactory.SAVE.create(part.getSite().getWorkbenchWindow());
        service.registerAction(actionSAVE);
View Full Code Here

Examples of org.eclipse.ui.IKeyBindingService.registerAction()

        service.registerAction(actionCLOSE);
        bars.setGlobalActionHandler(ActionFactory.CLOSE.getId(), actionCLOSE);

        if(actionSAVE == null)
          actionSAVE = ActionFactory.SAVE.create(part.getSite().getWorkbenchWindow());
        service.registerAction(actionSAVE);
        bars.setGlobalActionHandler(ActionFactory.SAVE.getId(), actionSAVE);

        if(actionCLOSE_ALL == null)
          actionCLOSE_ALL = ActionFactory.CLOSE_ALL.create(part.getSite().getWorkbenchWindow());
        bars.setGlobalActionHandler(ActionFactory.CLOSE_ALL.getId(), actionCLOSE_ALL);
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.