GRID_SPACING stored in the diagram model [message #1064041] |
Mon, 17 June 2013 11:43 |
|
Hi all,
In my RCP, each diagram will have the default grid size or Grid Spacing taking from the Preferences settings ( initially 0.125 inch) -> see picture gridspacing.png
In the class DiagramRulersAndGridPreferencePage on the method public static void initDefaults(IPreferenceStore preferenceStore) , we can manually set this value like this:
PreferenceStore Prefs = (PreferenceStore) PlatformUI.getPreferenceStore();
Prefs.setValue(IPreferenceConstants.PREF_GRID_SPACING, "0.5");
My idea would be if this value can be stored to the diagram model so that for each diagram we could have separate values. The purpose of this is that users can open the diagram and have same view of diagram and the look as it was modeled would still be kept.
Many thanks in advance!
|
|
|
Powered by
FUDForum. Page generated in 0.02086 seconds