KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > ui > preferences > CleanUpPreferencePage


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 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 package org.eclipse.jdt.internal.ui.preferences;
12
13
14 import org.eclipse.swt.widgets.Composite;
15
16 import org.eclipse.jdt.internal.ui.preferences.cleanup.CleanUpConfigurationBlock;
17 import org.eclipse.jdt.internal.ui.preferences.formatter.ProfileConfigurationBlock;
18
19 /*
20  * The page to configure the clean up options.
21  */

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

27     public CleanUpPreferencePage() {
28         // only used when page is shown programmatically
29
setTitle(PreferencesMessages.CleanUpPreferencePage_Title );
30     }
31     
32     /* (non-Javadoc)
33      * @see org.eclipse.jdt.internal.ui.preferences.ProfilePreferencePage#createControl(org.eclipse.swt.widgets.Composite)
34      */

35     public void createControl(Composite parent) {
36         super.createControl(parent);
37 // PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), IJavaHelpContextIds.CODEFORMATTER_PREFERENCE_PAGE);
38
}
39
40     protected ProfileConfigurationBlock createConfigurationBlock(PreferencesAccess access) {
41         return new CleanUpConfigurationBlock(getProject(), access);
42     }
43
44     /* (non-Javadoc)
45      * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPreferencePageID()
46      */

47     protected String JavaDoc getPreferencePageID() {
48         return PREF_ID;
49     }
50     
51     /* (non-Javadoc)
52      * @see org.eclipse.jdt.internal.ui.preferences.PropertyAndPreferencePage#getPropertyPageID()
53      */

54     protected String JavaDoc getPropertyPageID() {
55         return PROP_ID;
56     }
57 }
58
Popular Tags