1 11 12 package org.eclipse.jdt.internal.debug.ui; 13 14 import org.eclipse.jdt.debug.ui.IJavaDebugUIConstants; 15 import org.eclipse.jface.dialogs.IDialogSettings; 16 import org.eclipse.jface.viewers.ILabelProvider; 17 import org.eclipse.swt.widgets.Shell; 18 import org.eclipse.ui.dialogs.ElementListSelectionDialog; 19 20 23 public class PackageSelectionDialog extends ElementListSelectionDialog { 24 25 public PackageSelectionDialog(Shell parent, ILabelProvider renderer) { 26 super(parent, renderer); 27 } 28 29 34 protected String getDialogSettingsSectionName() { 35 return IJavaDebugUIConstants.PLUGIN_ID + ".PACKAGE_SELECTION_DIALOG_SECTION"; } 37 38 41 protected IDialogSettings getDialogBoundsSettings() { 42 IDialogSettings settings = JDIDebugUIPlugin.getDefault().getDialogSettings(); 43 IDialogSettings section = settings.getSection(getDialogSettingsSectionName()); 44 if (section == null) { 45 section = settings.addNewSection(getDialogSettingsSectionName()); 46 } 47 return section; 48 } 49 } 50 | Popular Tags |