Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2009-05-29 16:05:47 +0000
committeratikhomirov2009-05-29 16:05:47 +0000
commit4fa376dd972eb4e76130844daa2091b4d535ee7b (patch)
tree7251259a91226987f8418e48ef8c459c2e1a20ba
parent4cd38ff5c968302e5170543ceb2cc9330b9d8e88 (diff)
downloadorg.eclipse.gmf-tooling-4fa376dd972eb4e76130844daa2091b4d535ee7b.tar.gz
org.eclipse.gmf-tooling-4fa376dd972eb4e76130844daa2091b4d535ee7b.tar.xz
org.eclipse.gmf-tooling-4fa376dd972eb4e76130844daa2091b4d535ee7b.zip
[278407] RoutingStyle is not initialized from preferencesv20090529-1238
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ViewProvider.xpt4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ViewProvider.xpt b/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ViewProvider.xpt
index 261b8717c..0a25d9f8d 100644
--- a/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ViewProvider.xpt
+++ b/plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ViewProvider.xpt
@@ -397,6 +397,10 @@ public class «notationViewProviderClassName»«EXPAND extendsList»«EXPAND imp
// initializePreferences
final org.eclipse.jface.preference.IPreferenceStore prefStore = (org.eclipse.jface.preference.IPreferenceStore) preferencesHint.getPreferenceStore();
«EXPAND initializeStyles('edge', 'prefStore', not viewmap.isFixedForeground(), false, not viewmap.isFixedFont())-»
+ org.eclipse.gmf.runtime.notation.Routing routing = org.eclipse.gmf.runtime.notation.Routing.get(prefStore.getInt(org.eclipse.gmf.runtime.diagram.ui.preferences.IPreferenceConstants.PREF_LINE_STYLE));
+ if (routing != null) {
+ org.eclipse.gmf.runtime.diagram.core.util.ViewUtil.setStructuralFeatureValue(edge, org.eclipse.gmf.runtime.notation.NotationPackage.eINSTANCE.getRoutingStyle_Routing(), routing);
+ }
«EXPAND initLabel('edge', 'prefStore') FOREACH labels-»
return edge;
}

Back to the top