Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Sennikovsky2007-02-28 12:14:49 +0000
committerMikhail Sennikovsky2007-02-28 12:14:49 +0000
commit1d087b260fd010ba06fb07bc5b917f92d7050a28 (patch)
tree2e7259faff282e9b10efeae605debfc4d751d453
parent258757431cd240f5ff4728b99d88a2c80b1a44ac (diff)
downloadorg.eclipse.cdt-1d087b260fd010ba06fb07bc5b917f92d7050a28.tar.gz
org.eclipse.cdt-1d087b260fd010ba06fb07bc5b917f92d7050a28.tar.xz
org.eclipse.cdt-1d087b260fd010ba06fb07bc5b917f92d7050a28.zip
Workspace variable serialization in case they are modified withPath Entry Variable info on load
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/cdtvariables/UserDefinedVariableSupplier.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/cdtvariables/UserDefinedVariableSupplier.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/cdtvariables/UserDefinedVariableSupplier.java
index a2e500961f5..527d887080f 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/cdtvariables/UserDefinedVariableSupplier.java
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/cdtvariables/UserDefinedVariableSupplier.java
@@ -486,6 +486,13 @@ public class UserDefinedVariableSupplier extends CoreMacroSupplierBase {
//now load PathEntry Variables from preferences
loadPathEntryVariables(macros);
+ if(macros.isDirty()){
+ try {
+ storeWorkspaceMacros(macros, true);
+ } catch (CoreException e) {
+ CCorePlugin.log(e);
+ }
+ }
return macros;
}

Back to the top