1 11 package org.eclipse.ui.internal.ide.update; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.jface.viewers.ISelection; 15 import org.eclipse.swt.custom.BusyIndicator; 16 import org.eclipse.ui.IWorkbenchWindow; 17 import org.eclipse.ui.IWorkbenchWindowActionDelegate; 18 import org.eclipse.update.ui.UpdateManagerUI; 19 20 25 public class ConfigurationManagerAction implements 26 IWorkbenchWindowActionDelegate { 27 28 private IWorkbenchWindow window; 29 30 33 public ConfigurationManagerAction() { 34 } 36 37 40 public void run(IAction action) { 41 BusyIndicator.showWhile(window.getShell().getDisplay(), new Runnable () { 42 public void run() { 43 UpdateManagerUI.openConfigurationManager(window.getShell()); 44 } 45 }); 46 } 47 48 50 public void selectionChanged(IAction action, ISelection selection) { 51 } 53 54 57 public void dispose() { 58 } 60 61 64 public void init(IWorkbenchWindow window) { 65 this.window = window; 66 } 67 } 68 | Popular Tags |