Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2013-12-18 09:37:23 +0000
committerVincent Lorenzo2013-12-18 09:37:23 +0000
commitf656a98b8b47da33f9b01450b95d7ddcec1a1981 (patch)
tree7bdaaec109de8fa4d767d6272bfeb97844749976 /plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences
parentc5a90f43ab938b8e2723ba7dd9e4b52d30827419 (diff)
downloadorg.eclipse.papyrus-f656a98b8b47da33f9b01450b95d7ddcec1a1981.tar.gz
org.eclipse.papyrus-f656a98b8b47da33f9b01450b95d7ddcec1a1981.tar.xz
org.eclipse.papyrus-f656a98b8b47da33f9b01450b95d7ddcec1a1981.zip
423799: [Diagram]Rulers and Grid preferences are not customizable for
each diagrams https://bugs.eclipse.org/bugs/show_bug.cgi?id=423799 Fix bad preferences initialization reopening diagrams (bad preference initialization)
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences/src/org/eclipse/papyrus/infra/gmfdiag/preferences/ui/RulersAndGridGroup.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences/src/org/eclipse/papyrus/infra/gmfdiag/preferences/ui/RulersAndGridGroup.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences/src/org/eclipse/papyrus/infra/gmfdiag/preferences/ui/RulersAndGridGroup.java
index 1c7033d76ae..524d1516087 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences/src/org/eclipse/papyrus/infra/gmfdiag/preferences/ui/RulersAndGridGroup.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.preferences/src/org/eclipse/papyrus/infra/gmfdiag/preferences/ui/RulersAndGridGroup.java
@@ -127,8 +127,11 @@ public class RulersAndGridGroup extends AbstractGroup {
store.setDefault(PreferencesConstantsHelper.getPapyrusEditorConstant(PreferencesConstantsHelper.SNAP_TO_GEOMETRY), false);
store.setDefault(PreferencesConstantsHelper.getPapyrusEditorConstant(PreferencesConstantsHelper.GRID_LINE_STYLE), Graphics.LINE_CUSTOM);
store.setDefault(PreferencesConstantsHelper.getPapyrusEditorConstant(PreferencesConstantsHelper.GRID_ORDER), false);
+ //to force the refresh of the value
+ PreferenceConverter.setDefault(store, PreferencesConstantsHelper.getPapyrusEditorConstant(PreferencesConstantsHelper.GRID_LINE_COLOR), new org.eclipse.swt.graphics.RGB(250, 0, 0));
final int rgbValue = 50;
PreferenceConverter.setDefault(store, PreferencesConstantsHelper.getPapyrusEditorConstant(PreferencesConstantsHelper.GRID_LINE_COLOR), new org.eclipse.swt.graphics.RGB(rgbValue, rgbValue, rgbValue));
+
store.setDefault(PreferencesConstantsHelper.getPapyrusEditorConstant(PreferencesConstantsHelper.GRID_SPACING), 20);
}

Back to the top