Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsboolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/953630/#msg_953630
I customized my feature labels in the generated edit plugin via plugin.properties .
This doesn't always work as expected, however: Sometimes feature labels are used, sometypes type labels. So I looked at getCreateChildText() in the generated item providers and found that boolean qualify ignores some of my features.
How does the code generator determine whether features 'qualify' or not?
]]>Martin Weiss2012-10-22T12:00:52-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/953646/#msg_953646
It depends on whether the different features can share the same type of
instance.
On 22/10/2012 2:00 PM, Martin Weiss wrote:
> Hello there,
>
> I customized my feature labels in the generated edit plugin via
> plugin.properties .
> This doesn't always work as expected, however: Sometimes feature
> labels are used, sometypes type labels. So I looked at
> getCreateChildText() in the generated item providers and found that
> boolean qualify ignores some of my features.
>
> How does the code generator determine whether features 'qualify' or not?
>]]>Ed Merks2012-10-22T12:13:49-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/953892/#msg_953892
now I see what all these features have in common: They aren't shared.
Do I have to modify their getCreateChildText() methods or is there another way to enforce qualify?]]>Martin Weiss2012-10-22T16:13:16-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/954209/#msg_954209
There's no property to force the qualification, so changing the code is
the only way.
On 22/10/2012 6:13 PM, Martin Weiss wrote:
> Many thanks Ed,
>
> now I see what all these features have in common: They aren't shared.
> Do I have to modify their getCreateChildText() methods or is there
> another way to enforce qualify?]]>Ed Merks2012-10-22T21:37:05-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/968366/#msg_968366
Is there anything else I need to know when changing my code?
Why is qualification enabled only on shared features?
]]>Martin Weiss2012-11-02T12:04:56-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/968400/#msg_968400
So that the user doesn't just see duplicate entries with no idea why
they're different; they create the same type of object but for different
features.
On 02/11/2012 1:04 PM, Martin Weiss wrote:
> Thanks Ed,
>
> Is there anything else I need to know when changing my code?
> Why is qualification enabled only on shared features?
>]]>Ed Merks2012-11-02T12:32:36-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/973934/#msg_973934
Thank you very much, now I understand.
I don't know if I'm the only one interested, wouldn't it be useful to have a genmodel option to control qualification?
]]>Martin Weiss2012-11-06T18:42:43-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/974517/#msg_974517
You mean to always produce qualification for all cases, never produce it
for any case, or produce it only for cases where there is ambiguity?
The issue seems related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=307135
On 06/11/2012 7:42 PM, Martin Weiss wrote:
> Ed,
>
> Thank you very much, now I understand.
> I don't know if I'm the only one interested, wouldn't it be useful to
> have a genmodel option to control qualification?
>]]>Ed Merks2012-11-07T05:40:27-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/985524/#msg_985524
yes, it's related. I would be happy with the solution shown in the mentioned bugzilla,
but I'd rather prefer a genmodel option to explicitly pick one of the three behaviors you mentioned.]]>Martin Weiss2012-11-15T13:19:20-00:00Re: boolean qualify in getCreateChildText
https://www.eclipse.org/forums/index.php/mv/msg/411184/985598/#msg_985598
Please add a comment to the bugzilla.
On 15/11/2012 2:19 PM, Martin Weiss wrote:
> Ed,
>
> yes, it's related. I would be happy with the solution shown in the
> mentioned bugzilla,
> but I'd rather prefer a genmodel option to explicitly pick one of the
> three behaviors you mentioned.]]>Ed Merks2012-11-15T14:23:49-00:00