1 11 package org.eclipse.ui.internal.ide.actions; 12 13 import org.eclipse.core.resources.IProject; 14 import org.eclipse.jface.action.Action; 15 import org.eclipse.ui.IWorkbenchWindow; 16 import org.eclipse.ui.actions.ActionFactory; 17 import org.eclipse.ui.internal.ide.IDEWorkbenchMessages; 18 import org.eclipse.ui.internal.ide.dialogs.CleanDialog; 19 20 28 public class BuildCleanAction extends Action implements ActionFactory.IWorkbenchAction { 29 private IWorkbenchWindow window; 30 31 36 public BuildCleanAction(IWorkbenchWindow window) { 37 super(IDEWorkbenchMessages.Workbench_buildClean); 38 setActionDefinitionId("org.eclipse.ui.project.cleanAction"); this.window = window; 40 } 41 42 45 public void dispose() { 46 } 48 49 public void run() { 50 IProject[] selected = BuildUtilities.findSelectedProjects(window); 51 new CleanDialog(window, selected).open(); 52 } 53 } 54 | Popular Tags |