Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom core properties behavior for nodes?
Custom core properties behavior for nodes? [message #101431] Tue, 06 February 2007 07:41 Go to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

Hello,

I´ve got a question regarding the core properties associated with
Diagram nodes. I´ve got a ecore model with 5 Elements. 4 of these got a
number of specializations meaning that there are multiple creation tools
and node references that point to these ecore classes. I want to provide
the possibility that the user can insert "generic" nodes, where he can
specify the property values of the the underlying ecore class, which is
the behavior you get initially. For other nodes I initialize certain
properties with a value and would like those to be "fixed" meaning the
user can view, but not change them. As a third option I´d like to hide
some properties in the properties view for special nodes. The only
options I found to specify the visibility and edit behavior of the
properties reside in the EMF models and would apply to all diagram nodes
that reference the ecore class which contains the nodes. Can the
behavior I described above be achieved by adding things to the mapping
model (that I did possibly not find yet) or do I have to modify the
generated code? A custom property sheet is not required from my point of
view as I´d prefer to keep the generated view and alter it for those
special nodes. It´d be very nice if someone could instruct me on this.
I´ve searched the newsgroup but didn´t find a usecase that seemed
related to mine.

Greetings,
Christian
Re: Custom core properties behavior for nodes? [message #102113 is a reply to message #101431] Wed, 07 February 2007 10:47 Go to previous message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

Does no one have a suggestion how I can achieve this? I´m sorry for
flooding the group at the moment, but these are really important issues
for my project. I hope I didn´t miss a existing solution for this
usecase. Thanks again for your support.

Christian Dänekas schrieb:
> Hello,
>
> I´ve got a question regarding the core properties associated with
> Diagram nodes. I´ve got a ecore model with 5 Elements. 4 of these got a
> number of specializations meaning that there are multiple creation tools
> and node references that point to these ecore classes. I want to provide
> the possibility that the user can insert "generic" nodes, where he can
> specify the property values of the the underlying ecore class, which is
> the behavior you get initially. For other nodes I initialize certain
> properties with a value and would like those to be "fixed" meaning the
> user can view, but not change them. As a third option I´d like to hide
> some properties in the properties view for special nodes. The only
> options I found to specify the visibility and edit behavior of the
> properties reside in the EMF models and would apply to all diagram nodes
> that reference the ecore class which contains the nodes. Can the
> behavior I described above be achieved by adding things to the mapping
> model (that I did possibly not find yet) or do I have to modify the
> generated code? A custom property sheet is not required from my point of
> view as I´d prefer to keep the generated view and alter it for those
> special nodes. It´d be very nice if someone could instruct me on this.
> I´ve searched the newsgroup but didn´t find a usecase that seemed
> related to mine.
>
> Greetings,
> Christian
Previous Topic:Mapping model question
Next Topic:Transaction problem
Goto Forum:
  


Current Time: Tue May 06 19:40:00 EDT 2025

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

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

Back to the top