| Custom core properties behavior for nodes? [message #101431] | 
Tue, 06 February 2007 07:41   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.71357 seconds