KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > apt > ui > internal > preferences > FactoryPathPreferencePage


1 /*******************************************************************************
2  * Copyright (c) 2005, 2007 BEA Systems, Inc.
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  * wharley@bea.com - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.jdt.apt.ui.internal.preferences;
13
14 import org.eclipse.jdt.apt.ui.internal.AptUIPlugin;
15 import org.eclipse.jdt.apt.ui.internal.util.IAptHelpContextIds;
16 import org.eclipse.swt.widgets.Composite;
17 import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
18
19 /**
20  *
21  */

22 public class FactoryPathPreferencePage extends BasePreferencePage {
23
24     private static final String JavaDoc PREF_ID= "org.eclipse.jdt.apt.ui.preferences.factoryPathPreferences"; //$NON-NLS-1$
25
private static final String JavaDoc PROP_ID= "org.eclipse.jdt.apt.ui.propertyPages.factoryPathPreferences"; //$NON-NLS-1$
26

27     /**
28      *
29      */

30     public FactoryPathPreferencePage() {
31         setPreferenceStore(AptUIPlugin.getDefault().getPreferenceStore());
32         //setDescription(Messages.FactoryPathPreferencePage_factoryPath);
33

34         // only used when page is shown programatically
35
setTitle(Messages.FactoryPathPreferencePage_preferences);
36     }
37
38     /*
39      * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
40      */

41     public void createControl(Composite parent) {
42         IWorkbenchPreferenceContainer container= (IWorkbenchPreferenceContainer) getContainer();
43         setConfigurationBlock(new FactoryPathConfigurationBlock(getNewStatusChangedListener(), getProject(), container));
44         
45         super.createControl(parent);
46     }
47
48     /* (non-Javadoc)
49      * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID()
50      */

51     protected String JavaDoc getPreferencePageID() {
52         return PREF_ID;
53     }
54
55     /* (non-Javadoc)
56      * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID()
57      */

58     protected String JavaDoc getPropertyPageID() {
59         return PROP_ID;
60     }
61
62     @Override JavaDoc
63     protected String JavaDoc getContextHelpId() {
64         return IAptHelpContextIds.FACTORYPATH_PREFERENCE_PAGE;
65     }
66
67 }
68
Popular Tags