Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GRID_SPACING stored in the diagram model(GRID_SPACING value could be stored or not along with the diagram and not with the workspace)
GRID_SPACING stored in the diagram model [message #1064041] Mon, 17 June 2013 11:43
Dan Tololoi is currently offline Dan TololoiFriend
Messages: 33
Registered: September 2012
Location: Iasi, Romania
Member

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!
Previous Topic:help on section OCL
Next Topic:Custom Node
Goto Forum:
  


Current Time: Mon Dec 22 19:56:42 GMT 2014

Powered by FUDForum. Page generated in 0.01840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software