Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Accessing programatically a property of a model element ??
Accessing programatically a property of a model element ?? [message #122305] Fri, 27 April 2007 09:40 Go to next message
Eclipse UserFriend
Originally posted by: renwart.lippmann.lu

Hi everybody,

I'd like to know the best way to access (and modify) some properties of
a model element programatically. I suppose these changes will probably
occur in the project "*.diagram" ...

I'm new in GMF and I don't know the best way to access my model element
from this project ...

Thanks in advance for any help.

benren.
Re: Accessing programatically a property of a model element ?? [message #122455 is a reply to message #122305] Sat, 28 April 2007 09:12 Go to previous message
Eclipse UserFriend
Originally posted by: newsgroups.elmarweber.org

Hello Ben,

Ben Renwart wrote:
> I'd like to know the best way to access (and modify) some properties of
> a model element programatically. I suppose these changes will probably
> occur in the project "*.diagram" ...

That depends partly on when/where you want to modify the properties?

E.g.: If you need to access them in the *EditPart classes you can access
the notation model elements via #getPrimaryView() and your model element
with #getPrimaryView().getElement().


ciao,
elm
Previous Topic:Getting editing domain from a menu
Next Topic:Avoiding Code Generation when building metamodels
Goto Forum:
  


Current Time: Wed Jun 25 02:51:51 EDT 2025

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

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

Back to the top