|
11 | 11 | import org.eclipse.jface.dialogs.MessageDialog; |
12 | 12 | import org.eclipse.jface.preference.BooleanFieldEditor; |
13 | 13 | import org.eclipse.jface.preference.FieldEditorPreferencePage; |
14 | | -import org.eclipse.jface.preference.FileFieldEditor; |
| 14 | +import org.eclipse.jface.preference.StringFieldEditor; |
15 | 15 | import org.eclipse.jface.preference.IPreferenceNode; |
16 | 16 | import org.eclipse.jface.preference.PreferenceDialog; |
17 | 17 | import org.eclipse.jface.preference.PreferenceManager; |
@@ -56,7 +56,7 @@ public class BinaryPathPreferencePage extends FieldEditorPreferencePage |
56 | 56 | private RadioGroupFieldEditor updateInterval; |
57 | 57 | private Composite updateIntervalParent; |
58 | 58 | private BooleanFieldEditor automaticUpdateCheck; |
59 | | - private FileFieldEditor binaryPath; |
| 59 | + private StringFieldEditor binaryPath; |
60 | 60 | private Link updateCheckNotice; |
61 | 61 | private boolean hasBinaryPathChanged; |
62 | 62 | private Link link; |
@@ -105,9 +105,9 @@ private void setCurrentVersion() { |
105 | 105 | @Override |
106 | 106 | protected void createFieldEditors() { |
107 | 107 | Composite parent = getFieldEditorParent(); |
108 | | - binaryPath = new FileFieldEditor(IPreferenceConstants.P_BINARY_PATH, |
109 | | - Messages.BinaryPathPreferencePage_PathToBinary, true, |
110 | | - FileFieldEditor.VALIDATE_ON_KEY_STROKE, parent) { |
| 108 | + binaryPath = new StringFieldEditor(IPreferenceConstants.P_BINARY_PATH, |
| 109 | + Messages.BinaryPathPreferencePage_PathToBinary, -1, |
| 110 | + StringFieldEditor.VALIDATE_ON_KEY_STROKE, parent) { |
111 | 111 |
|
112 | 112 | @Override |
113 | 113 | protected boolean checkState() { |
|
0 commit comments