Fixed: [ Issue 214 ] protobuf-dt only generating C++ code regardless of settings
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/CppCodeGenerationPreference.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/CppCodeGenerationPreference.java index 7adf8ea..0a0f566 100644 --- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/CppCodeGenerationPreference.java +++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/CppCodeGenerationPreference.java
@@ -26,11 +26,11 @@ } @Override public boolean isEnabled() { - return store.getBoolean(JAVA_CODE_GENERATION_ENABLED); + return store.getBoolean(CPP_CODE_GENERATION_ENABLED); } @Override public String outputDirectory() { - return store.getString(JAVA_OUTPUT_DIRECTORY); + return store.getString(CPP_OUTPUT_DIRECTORY); } @Override public IProject project() {
diff --git a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/JavaCodeGenerationPreference.java b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/JavaCodeGenerationPreference.java index 7802867..4694030 100644 --- a/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/JavaCodeGenerationPreference.java +++ b/com.google.eclipse.protobuf.ui/src/com/google/eclipse/protobuf/ui/preferences/compiler/JavaCodeGenerationPreference.java
@@ -26,11 +26,11 @@ } @Override public boolean isEnabled() { - return store.getBoolean(CPP_CODE_GENERATION_ENABLED); + return store.getBoolean(JAVA_CODE_GENERATION_ENABLED); } @Override public String outputDirectory() { - return store.getString(CPP_OUTPUT_DIRECTORY); + return store.getString(JAVA_OUTPUT_DIRECTORY); } @Override public IProject project() {