Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » change adanced property values programattically
change adanced property values programattically [message #647785] Sat, 08 January 2011 23:50 Go to next message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi Toolsmiths, Smile

Is there a way toi change progmatically to values of the advanced tab property?

thanks
Re: change adanced property values programattically [message #647904 is a reply to message #647785] Mon, 10 January 2011 11:52 Go to previous messageGo to next message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi,

i have found the solution with some debugging, the DiagramPreferenceInitializer Class contains a
Quote:
XXX.preferences.DiagramRulersAndGridPreferencePage .initDefaults(store);
that initiate an IPreferenceStore variable with the loading of the daiagram plug-in (i guess), so i have override the initDefaults methode with my own values.

Hope it could help someone
Re: change adanced property values programattically [message #647938 is a reply to message #647904] Mon, 10 January 2011 14:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marius.groeger.googlemail.com

On 10.01.2011 12:52, Elhamlaoui Mahmoud wrote:
> Hi,
>
> i have found the solution with some debugging, the
> DiagramPreferenceInitializer Class contains a
> Quote:
>> XXX.preferences.DiagramRulersAndGridPreferencePage .initDefaults(store);
> that initiate an IPreferenceStore variable with the loading of the
> daiagram plug-in (i guess), so i have override the initDefaults methode
> with my own values.

These settings are global and not diagram specific, right? Was this your
intention?

Marius
Re: change adanced property values programattically [message #648278 is a reply to message #647938] Wed, 12 January 2011 09:21 Go to previous message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi maruis,

Yes it exacteley what i was looking for, In the diagram.preferences package, they are 6 generated classes :
DiagramPreferenceInitializer, DiagramRulersAndGridPreferencePage,....in which you can specify the diagram page appearance you want to have : GRID, RULERS, RULER_UNITS. so i think that are relative to diagram.


Mahmoud
Previous Topic:Missing connections/edges
Next Topic:Compartments have same connection problem as diagrams
Goto Forum:
  


Current Time: Thu Apr 25 08:26:25 GMT 2024

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

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

Back to the top