Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates/xpt/providers/ViewProvider.xpt')
-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