Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Generic TreeView Editor just show attribute "name"
Generic TreeView Editor just show attribute "name" [message #531229] Tue, 04 May 2010 09:08 Go to next message
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Hello,

I am working with the Generic EMF Editor generated by the genmodel.

When I add an attribute called "name" into a class, in the treeview only that element value gets shown.

I want to show other attribute values if name is not set, any idea where I have to modify the generated editor ??


Patrick
Re: Generic TreeView Editor just show attribute "name" [message #531247 is a reply to message #531229] Tue, 04 May 2010 10:16 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Patrick,

You can control the Label property of the GenClass, but that selects a
particular feature that's always used. If you want something fancier,
you'll have to specialize the getText method in the AbcItemProvider.


Patrick Schmitt wrote:
> Hello,
>
> I am working with the Generic EMF Editor generated by the genmodel.
>
> When I add an attribute called "name" into a class, in the treeview
> only that element value gets shown.
> I want to show other attribute values if name is not set, any idea
> where I have to modify the generated editor ??
>
>
> Patrick


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Retain original resource reference when copying entries between feature maps
Next Topic:Contributing Source Code Documentation
Goto Forum:
  


Current Time: Fri Apr 26 03:39:50 GMT 2024

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

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

Back to the top