Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Displaying element's child attribute in property view
Displaying element's child attribute in property view [message #222748] Wed, 25 March 2009 12:23 Go to next message
Vikas Goyal is currently offline Vikas GoyalFriend
Messages: 34
Registered: July 2009
Member
Hi ,

My model files looks as shown below :

<parent id="P_1" name="example" label="label">
<child1 namechild ="Untitled_1"/>
<child2 namechild ="Untitled_2"/>
</parent>

I want to show the parent element attributes (id, name, label) as well as
both childs attribute (namechild) in the property view . I can see only
the parent element attributes in the property view .

I tried doing this using "***TypeItemProvider" , but didn't succeed .

Can Some please help me how I can show parent as well as child attributes
in property view.


Thanks in Advance
Vikas
Re: Displaying element's child attribute in property view [message #223344 is a reply to message #222748] Mon, 30 March 2009 16:36 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Vikas,

I think one of the possible solutions is to modify EMF-generated ItemProvider.getPropertyDescriptors()
and return appropriate Property Descriptors for child elements from there
(probably using ItemPropertyDescriptorDecorator).

-----------------
Alex Shatalin
Previous Topic:Affixed Parent Side VS Compartment
Next Topic:re-evaluate constraint
Goto Forum:
  


Current Time: Tue Apr 23 12:37:35 GMT 2024

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

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

Back to the top