Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Properties initialization from XMI
Properties initialization from XMI [message #195522] Thu, 03 July 2008 07:03 Go to next message
Rekha Bhintade is currently offline Rekha BhintadeFriend
Messages: 16
Registered: July 2009
Junior Member
Hi All,

I have generated a graphical editor based on Eclipse 3.3 and it is working
fine. Now I need to have a different set of properties to be applied to
the figures. The default values for all these properties are stored in XMI
and currently I am able to dynamically generate the properties from XMI
and can display them in the view for individual figures and the view
switches for individual figures.

Now I want to apply these properties to the figures in the diagram. For
example I have a property which can change the opacity of the figure. But
I am unable to find the proper path to update the diagram figures.

I have debugged the existing properties view many times but unable to
understand how the model is updated and read when diagram is reopened. I
am unable to understand how notation and semantic synchronization is
achieved.
Please help me know how can I link my properties to the figures.
Thanks in advance.

Regards,
Rekha
Re: Properties initialization from XMI [message #195584 is a reply to message #195522] Thu, 03 July 2008 10:09 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Rekha,

> understand how the model is updated and read when diagram is reopened.
Each notation model element keeps reference to the corresponding domain model
one. Each EditPart keeps reference to the corresponding notation model element.
This is how you can access domain model information from Editparts (creating/keeping
figures).

> am unable to understand how notation and semantic synchronization is
> achieved.
EditPart class should be generated for each diagram element. Corrersponding
class will listen for any changes in underlying domain model + update visual
representation in accordance.

> Please help me know how can I link my properties to the figures.
You have to modify generated EditParts to listen for corresponding changes
+ change properties of the corresponding figures.

-----------------
Alex Shatalin
Re: Properties initialization from XMI [message #195862 is a reply to message #195584] Sun, 06 July 2008 08:11 Go to previous messageGo to next message
gaurav dubey is currently offline gaurav dubeyFriend
Messages: 45
Registered: July 2009
Member
hello all,
I am using eclipse 3.3 and working on gmf. I want change the
properties of a widget,How can i change this, Can i need to generate a
ChangePropertyValueRequest and execute request in getcommand or is there
any other way to change the values in impl object directly. and other
question is where i do these changes? Can i execute the
ChangePropertyValueRequest request by command in editpart constructor.
If anyone have some idea or sample how to execute
ChangePropertyValueRequest and where please provide me.


Thanks in advance.

Regards
Gaurav Dubey
Re: Properties initialization from XMI [message #196120 is a reply to message #195584] Tue, 08 July 2008 18:21 Go to previous messageGo to next message
Rekha Bhintade is currently offline Rekha BhintadeFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Alex,

Thanks, for putting light on the notation and semantic model types. What I
found that whatever changes are done to the figure or properties can be
achieved using the commands and requests or using Edit policies which
internally use commands. Am I right? What is good practice whether to
directly use the commands/requests and execute or create a new edit policy
for that.

Regards,
Rekha
Re: Properties initialization from XMI [message #196204 is a reply to message #196120] Wed, 09 July 2008 09:22 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Rekha,

EditPolicies is a part of GEF framework and are used to interact with toolbars,
requests, GEF commands.. If you need all this stuff (you have a toolbar
tools performing these requests) then you need an EditPolicy. If you have
just an action executed from the popup menu or properties view then it make
sense to work directly with notation/domain models and corresponding commands.

-----------------
Alex Shatalin
Previous Topic:filter edges / nodes
Next Topic:GMF in Eclipse 3.4 and Orbit
Goto Forum:
  


Current Time: Mon May 25 06:17:03 GMT 2020

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

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

Back to the top