1 11 package org.eclipse.update.ui; 12 13 import org.eclipse.jface.dialogs.*; 14 import org.eclipse.jface.window.*; 15 import org.eclipse.jface.wizard.*; 16 import org.eclipse.swt.widgets.*; 17 import org.eclipse.update.internal.ui.*; 18 import org.eclipse.update.internal.ui.wizards.*; 19 import org.eclipse.update.search.*; 20 21 26 public class UpdateManagerUI { 27 28 33 public static void openConfigurationManager(Shell shell) { 34 35 ApplicationWindow appWindow = new ConfigurationManagerWindow(shell); 36 appWindow.create(); 37 appWindow.open(); 38 } 39 40 45 public static void openInstaller(Shell shell) { 46 if (InstallWizard.isRunning()) { 47 MessageDialog.openInformation(shell, UpdateUIMessages.InstallWizard_isRunningTitle, UpdateUIMessages.InstallWizard_isRunningInfo); 48 return; 49 } 50 InstallWizard wizard = new InstallWizard((UpdateSearchRequest) null); 51 WizardDialog dialog = new ResizableInstallWizardDialog(shell, wizard, UpdateUIMessages.InstallWizardAction_title); 52 dialog.create(); 53 dialog.open(); 54 } 55 56 63 public static void openInstaller(Shell shell, UpdateJob job) { 64 new InstallWizardOperation().run(shell, job); 65 } 66 } 67 | Popular Tags |