1 11 12 package org.eclipse.pde.internal.ui.wizards.feature; 13 14 import org.eclipse.pde.internal.core.ifeature.*; 15 import org.eclipse.pde.internal.ui.*; 16 import org.eclipse.swt.widgets.*; 17 import org.eclipse.ui.dialogs.*; 18 19 22 public class FeatureSelectionDialog extends ElementListSelectionDialog { 23 24 28 public FeatureSelectionDialog(Shell parent, IFeatureModel[] models) { 29 super(parent, PDEPlugin.getDefault().getLabelProvider()); 30 setTitle(PDEPlugin.getResourceString("FeatureSelectionDialog.title")); setMessage(PDEPlugin.getResourceString("FeatureSelectionDialog.message")); setElements(models); 33 setMultipleSelection(false); 34 PDEPlugin.getDefault().getLabelProvider().connect(this); 35 } 36 37 public boolean close() { 38 PDEPlugin.getDefault().getLabelProvider().disconnect(this); 39 return super.close(); 40 } 41 44 public void setValidator(ISelectionStatusValidator validator) { 45 super.setValidator(validator); 46 } 47 } 48 | Popular Tags |