33import org .eclipse .jface .preference .BooleanFieldEditor ;
44import org .eclipse .jface .preference .FieldEditorPreferencePage ;
55import org .eclipse .jface .preference .FileFieldEditor ;
6+ import org .eclipse .jface .preference .StringFieldEditor ;
67import org .eclipse .ui .IWorkbench ;
78import org .eclipse .ui .IWorkbenchPreferencePage ;
89import org .nodeclipse .ui .preferences .PreferenceConstants ;
@@ -15,6 +16,7 @@ public class JJSPreferencePage extends FieldEditorPreferencePage implements IWor
1516
1617 private FileFieldEditor jjsPath ;
1718 private BooleanFieldEditor jjsJustJJS ;
19+ private StringFieldEditor jjsOptions ;
1820
1921 public JJSPreferencePage (){
2022 super (GRID );
@@ -29,12 +31,15 @@ public void init(IWorkbench workbench) {
2931
3032 @ Override
3133 protected void createFieldEditors () {
32- jjsPath = new FileFieldEditor (PreferenceConstants .JJS_PATH , "`jjs` path:" , getFieldEditorParent ());
33- addField (jjsPath );
34+ jjsJustJJS = new BooleanFieldEditor (PreferenceConstants .JJS_JUST_JJS ,
35+ "just `jjs` (find `jjs` on PATH. Useful when there are 2 or more JDK 8 instances)" , getFieldEditorParent ());
36+ addField (jjsJustJJS );
3437
35- jjsJustJJS = new BooleanFieldEditor (PreferenceConstants .JJS_JUST_JJS ,
36- "just `jjs` (find `jjs` on PATH. Useful when there are 2 or more JDK 8 instances)" , getFieldEditorParent ());
37- addField (jjsJustJJS );
38+ jjsPath = new FileFieldEditor (PreferenceConstants .JJS_PATH , "`jjs` path:" , getFieldEditorParent ());
39+ addField (jjsPath );
40+
41+ jjsOptions = new StringFieldEditor (PreferenceConstants .JJS_OPTIONS , "jjs options (jjs -h):" , getFieldEditorParent ());
42+ addField (jjsOptions );
3843
3944 }
4045
0 commit comments