01: package com.salmonllc.ideTools.eclipse;
02:
03: import org.eclipse.jface.preference.BooleanFieldEditor;
04: import org.eclipse.jface.preference.DirectoryFieldEditor;
05: import org.eclipse.jface.preference.FieldEditorPreferencePage;
06: import org.eclipse.jface.preference.StringFieldEditor;
07: import org.eclipse.ui.IWorkbench;
08: import org.eclipse.ui.IWorkbenchPreferencePage;
09:
10: /**
11: * @author Administrator
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 SalmonPrefrences extends FieldEditorPreferencePage
19: implements IWorkbenchPreferencePage {
20:
21: public SalmonPrefrences() {
22: super (1);
23: setPreferenceStore(SalmonPlugin.getDefault()
24: .getPreferenceStore());
25: setTitle("SOFIA Preference");
26: }
27:
28: /**
29: * @see org.eclipse.jface.preference.PreferencePage#createContents(Composite)
30: */
31: protected void createFieldEditors() {
32: addField(new DirectoryFieldEditor(
33: SalmonPlugin.PREF_SALMON_PROPS_PATH,
34: "Salmon Properties Path", getFieldEditorParent()));
35: addField(new BooleanFieldEditor(
36: SalmonPlugin.PREF_SAVE_ON_BROWSER_RUN,
37: "Save All Files Before Browser Run",
38: getFieldEditorParent()));
39: addField(new BooleanFieldEditor(
40: SalmonPlugin.PREF_ASK_SAVE_ON_BROWSER_RUN,
41: "Ask Before Saving Files", getFieldEditorParent()));
42: addField(new BooleanFieldEditor(
43: SalmonPlugin.PREF_RESTART_SERVER_EACH_RUN,
44: "Restart Server Before Browser Run (Tomcat only)",
45: getFieldEditorParent()));
46: addField(new StringFieldEditor(
47: SalmonPlugin.PREF_DEFAULT_PROJECT,
48: "Default Web Project", getFieldEditorParent()));
49: addField(new BooleanFieldEditor(
50: SalmonPlugin.PREF_CHANGE_DEFAULT_ON_SELECTION,
51: "Automatically Change Default Project When Selection Changes to a Different Web Project",
52: getFieldEditorParent()));
53: addField(new BooleanFieldEditor(SalmonPlugin.PREF_DEBUG_LAUNCH,
54: "Debug SOFIA Program Launches", getFieldEditorParent()));
55: addField(new BooleanFieldEditor(
56: SalmonPlugin.PREF_AUTOFORMAT_GEN_CLASSES,
57: "Call Code Formatter on Generated Classes",
58: getFieldEditorParent()));
59:
60: }
61:
62: /**
63: * @see org.eclipse.ui.IWorkbenchPreferencePage#init(IWorkbench)
64: */
65: public void init(IWorkbench workbench) {
66: }
67:
68: }
|