KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > freemarker > eclipse > preferences > OutlinePreferencePage


1 package freemarker.eclipse.preferences;
2
3 import org.eclipse.jface.preference.BooleanFieldEditor;
4 import org.eclipse.jface.preference.FieldEditorPreferencePage;
5 import org.eclipse.ui.IWorkbench;
6 import org.eclipse.ui.IWorkbenchPreferencePage;
7
8 import freemarker.eclipse.FreemarkerPlugin;
9
10 /**
11  * @author Stephan
12  *
13  * To change this generated comment edit the template variable "typecomment":
14  * Window>Preferences>Java>Templates.
15  * To enable and disable the creation of type comments go to
16  * Window>Preferences>Java>Code Generation.
17  */

18 public class OutlinePreferencePage
19     extends FieldEditorPreferencePage
20     implements IWorkbenchPreferencePage, IPreferenceConstants {
21
22     public OutlinePreferencePage() {
23         super(GRID);
24         setPreferenceStore(FreemarkerPlugin.getDefault().getPreferenceStore());
25         setDescription("Outline View Settings");
26     }
27
28     /**
29      * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
30      */

31     protected void createFieldEditors() {
32         addField(new BooleanFieldEditor(SHOW_ICONS,
33                 "Show icons", getFieldEditorParent()));
34     }
35
36     /**
37      * @see org.eclipse.ui.IWorkbenchPreferencePage#init(IWorkbench)
38      */

39     public void init(IWorkbench workbench) {
40     }
41
42 }
43
Popular Tags