Skip to content

Commit 51c3428

Browse files
author
Anton Krug
committed
Binary path is not File field anymore, but a String field.
1 parent 7df3b77 commit 51c3428

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

com.googlecode.cppcheclipse.ui/src/com/googlecode/cppcheclipse/ui/preferences/BinaryPathPreferencePage.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.eclipse.jface.dialogs.MessageDialog;
1212
import org.eclipse.jface.preference.BooleanFieldEditor;
1313
import org.eclipse.jface.preference.FieldEditorPreferencePage;
14-
import org.eclipse.jface.preference.FileFieldEditor;
14+
import org.eclipse.jface.preference.StringFieldEditor;
1515
import org.eclipse.jface.preference.IPreferenceNode;
1616
import org.eclipse.jface.preference.PreferenceDialog;
1717
import org.eclipse.jface.preference.PreferenceManager;
@@ -56,7 +56,7 @@ public class BinaryPathPreferencePage extends FieldEditorPreferencePage
5656
private RadioGroupFieldEditor updateInterval;
5757
private Composite updateIntervalParent;
5858
private BooleanFieldEditor automaticUpdateCheck;
59-
private FileFieldEditor binaryPath;
59+
private StringFieldEditor binaryPath;
6060
private Link updateCheckNotice;
6161
private boolean hasBinaryPathChanged;
6262
private Link link;
@@ -105,9 +105,9 @@ private void setCurrentVersion() {
105105
@Override
106106
protected void createFieldEditors() {
107107
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) {
111111

112112
@Override
113113
protected boolean checkState() {

0 commit comments

Comments
 (0)