1 11 12 package org.eclipse.pde.internal.ui.wizards.feature; 13 14 import org.eclipse.jface.resource.ImageDescriptor; 15 import org.eclipse.jface.wizard.WizardPage; 16 import org.eclipse.pde.internal.ui.PDEPlugin; 17 import org.eclipse.pde.internal.ui.parts.WizardCheckboxTablePart; 18 import org.eclipse.swt.widgets.Composite; 19 20 public class BasePluginListPage extends WizardPage { 21 protected WizardCheckboxTablePart tablePart; 22 25 public BasePluginListPage(String pageName) { 26 super(pageName); 27 tablePart = new WizardCheckboxTablePart(null); 28 PDEPlugin.getDefault().getLabelProvider().connect(this); 29 } 30 31 36 public BasePluginListPage(String pageName, String title, 37 ImageDescriptor titleImage) { 38 super(pageName, title, titleImage); 39 tablePart = new WizardCheckboxTablePart(null); 40 PDEPlugin.getDefault().getLabelProvider().connect(this); 41 } 42 43 46 public void createControl(Composite parent) { 47 48 } 49 50 public void dispose() { 51 super.dispose(); 52 PDEPlugin.getDefault().getLabelProvider().disconnect(this); 53 } 54 55 public void setVisible(boolean visible) { 56 super.setVisible(visible); 57 if (visible) { 58 tablePart.getControl().setFocus(); 59 } 60 } 61 62 } 63 | Popular Tags |