How to auto generate the value for an attribute [message #51099] |
Tue, 19 September 2006 13:20 |
Eclipse User |
|
|
|
Originally posted by: john.watson.yahoo.com
Hi,
I want to auto-generate the value for attribute "name" as type_number,
where:
type is the type (class) of the widget
nummber is auto incrementing number
It should work as most of the popular IDEs that generates a value for name.
For example: If I have tho types of widgets - Label and Button:
Label_1
Label_2
Label_3
....
Button_1
Button_2
Button_3
...
I was thinking to use adapters but I don't know how to persist the data
and I want to make it very extensible - if in yhe future I add new widget
to use the already made code customizations.
Any help is appreciated.
I asked the same in EMF group (I was it's EMF issue, but it seems I was
wrong) because the advice that I get from Ed Merks (to specialize the
generated collectNewChildDescriptors) - doesn't help - the method was
never called. And it's seems to me it's GMF issue...
Regards
|
|
|
|
Powered by
FUDForum. Page generated in 0.02596 seconds