From d3637884e87a701c10251a2ede3c067bc33ba170 Mon Sep 17 00:00:00 2001 From: lempinen Date: Tue, 29 Oct 2013 14:17:52 +0000 Subject: [PATCH] Fixed bug: New elements were always created with the element-specific preference refs #4481 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@28150 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../ui/preferences/SysdynDiagramPropertyExternalRead.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/preferences/SysdynDiagramPropertyExternalRead.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/preferences/SysdynDiagramPropertyExternalRead.java index afd856a1..6a950012 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/preferences/SysdynDiagramPropertyExternalRead.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/preferences/SysdynDiagramPropertyExternalRead.java @@ -38,7 +38,8 @@ public class SysdynDiagramPropertyExternalRead extends ParametrizedPrimitiveRead SysdynDiagramPropertySupport.INSTANCE.register(subscription); IPreferenceStore store = Activator.getDefault().getPreferenceStore(); if(store.contains(parameter.second)) { - procedure.execute(store.getString(parameter.second)); + String preference = SysdynDiagramPreferences.getPreferenceName(parameter.second); + procedure.execute(store.getString(preference)); } else procedure.execute(null); } -- 2.47.1