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.IExportWizard; 19 import org.eclipse.ui.IWorkbench; 20 21 42 public class WizardExportBreakpoints extends Wizard implements IExportWizard { 43 44 47 private WizardExportBreakpointsPage fMainPage = null; 48 49 52 private IStructuredSelection fSelection = null; 53 54 57 private static final String EXPORT_DIALOG_SETTINGS = "BreakpointExportSettings"; 59 62 public WizardExportBreakpoints() { 63 super(); 64 DebugUIPlugin plugin = DebugUIPlugin.getDefault(); 65 IDialogSettings workbenchSettings = plugin.getDialogSettings(); 66 IDialogSettings section = workbenchSettings.getSection(EXPORT_DIALOG_SETTINGS); 67 if (section == null) 68 section = workbenchSettings.addNewSection(EXPORT_DIALOG_SETTINGS); 69 setDialogSettings(section); 70 } 71 72 75 public void addPages() { 76 super.addPages(); 77 fMainPage = new WizardExportBreakpointsPage(ImportExportMessages.WizardExportBreakpoints_0, fSelection); 78 addPage(fMainPage); 79 } 80 81 84 public void dispose() { 85 super.dispose(); 86 fMainPage = null; 87 fSelection = null; 88 } 89 90 93 public boolean performFinish() { 94 return fMainPage.finish(); 95 } 96 97 100 public void init(IWorkbench workbench, IStructuredSelection selection) { 101 fSelection = selection; 102 setWindowTitle(ImportExportMessages.WizardExportBreakpoints_0); 103 setNeedsProgressMonitor(true); 104 } 105 } 106 | Popular Tags |