summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-08-23 16:10:49 -0400
committerNathan Ridge2018-09-10 23:22:13 -0400
commit2f57d76a20f24b35db81862243662c26537037a8 (patch)
treeceb32520b429fa5f16378bc8d1a3ea119883b98b
parent567243a752c068badc7f4bbdde837bb60bbabe3f (diff)
downloadorg.eclipse.cdt-2f57d76a20f24b35db81862243662c26537037a8.tar.gz
org.eclipse.cdt-2f57d76a20f24b35db81862243662c26537037a8.tar.xz
org.eclipse.cdt-2f57d76a20f24b35db81862243662c26537037a8.zip
Bug 538516 - Ensure the validation state is updated correctly on the C/C++ Language Servers Preference Page
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CPPLanguageServerPreferencePage.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CPPLanguageServerPreferencePage.java b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CPPLanguageServerPreferencePage.java
index f3c29ea1fc..cdd7a0bdca 100644
--- a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CPPLanguageServerPreferencePage.java
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/CPPLanguageServerPreferencePage.java
@@ -51,12 +51,13 @@ public class CPPLanguageServerPreferencePage extends FieldEditorPreferencePage i
@Override
public void propertyChange(PropertyChangeEvent event) {
- if(event.getSource() == serverChoice && event.getProperty() == FieldEditor.VALUE) {
+ if (event.getSource() == serverChoice && event.getProperty() == FieldEditor.VALUE) {
File changedLSLocation = CPPStreamConnectionProvider.getDefaultLSLocation((String) event.getNewValue());
if(changedLSLocation != null) {
serverPath.setStringValue(changedLSLocation.getAbsolutePath());
}
}
+ super.propertyChange(event);
}
@Override