1 11 12 package org.eclipse.debug.internal.ui.importexport.breakpoints; 13 14 import org.eclipse.debug.internal.ui.DebugUIPlugin; 15 import org.eclipse.jface.dialogs.IDialogSettings; 16 import org.eclipse.jface.viewers.IStructuredSelection; 17 import org.eclipse.jface.wizard.Wizard; 18 import org.eclipse.ui.IImportWizard; 19 import org.eclipse.ui.IWorkbench; 20 21 42 public class WizardImportBreakpoints extends Wizard implements IImportWizard { 43 44 47 private WizardImportBreakpointsPage fMainPage = null; 48 49 52 private static final String IMPORT_DIALOG_SETTINGS = "BreakpointImportSettings"; 54 57 public WizardImportBreakpoints() { 58 super(); 59 DebugUIPlugin plugin = DebugUIPlugin.getDefault(); 60 IDialogSettings workbenchSettings = plugin.getDialogSettings(); 61 IDialogSettings section = workbenchSettings.getSection(IMPORT_DIALOG_SETTINGS); 62 if (section == null) 63 section = workbenchSettings.addNewSection(IMPORT_DIALOG_SETTINGS); 64 setDialogSettings(section); 65 } 66 67 70 public void addPages() { 71 super.addPages(); 72 fMainPage = new WizardImportBreakpointsPage(ImportExportMessages.WizardImportBreakpoints_0); 73 addPage(fMainPage); 74 } 75 76 79 public void dispose() { 80 super.dispose(); 81 fMainPage = null; 82 } 83 84 87 public boolean performFinish() { 88 return fMainPage.finish(); 89 } 90 91 94 public void init(IWorkbench workbench, IStructuredSelection selection) { 95 setWindowTitle(ImportExportMessages.WizardImportBreakpoints_0); 96 setNeedsProgressMonitor(true); 97 } 98 } 99 | Popular Tags |