getActionBarConfigurer().registerGlobalAction(action);
@Override public void run() { //register this action instance as the global handler for the build last action setActionDefinitionId("org.eclipse.ui.project.buildLast"); //$NON-NLS-1$ actionBars.registerGlobalAction(this); window.getWorkbench().getWorkingSetManager().addRecentWorkingSet(workingSet); IProject[] projects = BuildUtilities.extractProjects(workingSet.getElements()); if (projects.length == 0) { MessageDialog.openInformation(window.getShell(), IDEWorkbenchMessages.BuildSetAction_noBuildTitle, IDEWorkbenchMessages.BuildSetAction_noProjects); return; } lastBuilt = this; BuildAction build = new BuildAction(window, IncrementalProjectBuilder.INCREMENTAL_BUILD); build.selectionChanged(new StructuredSelection(projects)); build.run(); }