Skip to content

Commit c8c854f

Browse files
Paul VerestPaul Verest
Paul Verest
authored and
Paul Verest
committed
setEnabled(false as debugging does not work
1 parent d5692d0 commit c8c854f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

org.nodeclipse.phantomjs/src/org/nodeclipse/phantomjs/preferences/PhantomjsPreferencePage.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public class PhantomjsPreferencePage extends FieldEditorPreferencePage implement
1717
private FileFieldEditor phanthomjsPath;
1818
private BooleanFieldEditor phanthomjsDebugAutorun;
1919
private IntegerFieldEditor phanthomjsDebugPort;
20-
20+
2121
public PhantomjsPreferencePage(){
2222
super(GRID);
2323
setPreferenceStore(org.nodeclipse.ui.Activator.getDefault().getPreferenceStore());
2424
setImageDescriptor(org.nodeclipse.phantomjs.Activator.getImageDescriptor("icons/phantomjs.png"));
2525
setDescription("PhantomJS settings");
2626
}
27-
27+
2828
@Override
2929
public void init(IWorkbench workbench) {
3030
}
@@ -35,11 +35,13 @@ protected void createFieldEditors() {
3535
addField(phanthomjsPath);
3636

3737
phanthomjsDebugPort = new IntegerFieldEditor(PreferenceConstants.PHANTOMJS_DEBUG_PORT, "PhantomJS debug port:", getFieldEditorParent());
38+
phanthomjsDebugPort.setEnabled(false, getFieldEditorParent());
3839
addField(phanthomjsDebugPort);
3940

4041
phanthomjsDebugAutorun = new BooleanFieldEditor(PreferenceConstants.PHANTOMJS_DEBUG_AUTORUN, "PhantomJS debug autorun", getFieldEditorParent());
42+
phanthomjsDebugAutorun.setEnabled(false, getFieldEditorParent());
4143
addField(phanthomjsDebugAutorun);
42-
44+
4345
}
4446

4547
}

0 commit comments

Comments
 (0)