KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > wizards > feature > BasePluginListPage


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

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     /**
23      * @param pageName
24      */

25     public BasePluginListPage(String JavaDoc pageName) {
26         super(pageName);
27         tablePart = new WizardCheckboxTablePart(null);
28         PDEPlugin.getDefault().getLabelProvider().connect(this);
29     }
30
31     /**
32      * @param pageName
33      * @param title
34      * @param titleImage
35      */

36     public BasePluginListPage(String JavaDoc pageName, String JavaDoc title,
37             ImageDescriptor titleImage) {
38         super(pageName, title, titleImage);
39         tablePart = new WizardCheckboxTablePart(null);
40         PDEPlugin.getDefault().getLabelProvider().connect(this);
41     }
42
43     /* (non-Javadoc)
44      * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
45      */

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