01: /*******************************************************************************
02: * Copyright (c) 2005, 2007 BEA Systems, Inc.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * wharley@bea.com - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.apt.ui.internal.preferences;
11:
12: import org.eclipse.jdt.apt.ui.internal.AptUIPlugin;
13: import org.eclipse.jdt.apt.ui.internal.util.IAptHelpContextIds;
14: import org.eclipse.swt.widgets.Composite;
15: import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer;
16:
17: /**
18: *
19: */
20: public class FactoryPathPreferencePage extends BasePreferencePage {
21:
22: private static final String PREF_ID = "org.eclipse.jdt.apt.ui.preferences.factoryPathPreferences"; //$NON-NLS-1$
23: private static final String PROP_ID = "org.eclipse.jdt.apt.ui.propertyPages.factoryPathPreferences"; //$NON-NLS-1$
24:
25: /**
26: *
27: */
28: public FactoryPathPreferencePage() {
29: setPreferenceStore(AptUIPlugin.getDefault()
30: .getPreferenceStore());
31: //setDescription(Messages.FactoryPathPreferencePage_factoryPath);
32:
33: // only used when page is shown programatically
34: setTitle(Messages.FactoryPathPreferencePage_preferences);
35: }
36:
37: /*
38: * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
39: */
40: public void createControl(Composite parent) {
41: IWorkbenchPreferenceContainer container = (IWorkbenchPreferenceContainer) getContainer();
42: setConfigurationBlock(new FactoryPathConfigurationBlock(
43: 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 getPreferencePageID() {
52: return PREF_ID;
53: }
54:
55: /* (non-Javadoc)
56: * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID()
57: */
58: protected String getPropertyPageID() {
59: return PROP_ID;
60: }
61:
62: @Override
63: protected String getContextHelpId() {
64: return IAptHelpContextIds.FACTORYPATH_PREFERENCE_PAGE;
65: }
66:
67: }
|