Skip to main content



      Home
Home » Modeling » EMF » boolean qualify in getCreateChildText
boolean qualify in getCreateChildText [message #953630] Mon, 22 October 2012 08:00 Go to next message
Eclipse UserFriend
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?
Re: boolean qualify in getCreateChildText [message #953646 is a reply to message #953630] Mon, 22 October 2012 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Martin,

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?
>
Re: boolean qualify in getCreateChildText [message #953892 is a reply to message #953646] Mon, 22 October 2012 12:13 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: boolean qualify in getCreateChildText [message #954209 is a reply to message #953892] Mon, 22 October 2012 17:37 Go to previous messageGo to next message
Eclipse UserFriend
Martin,

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?
Re: boolean qualify in getCreateChildText [message #968366 is a reply to message #954209] Fri, 02 November 2012 08:04 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Ed,

Is there anything else I need to know when changing my code?
Why is qualification enabled only on shared features?
Re: boolean qualify in getCreateChildText [message #968400 is a reply to message #968366] Fri, 02 November 2012 08:32 Go to previous messageGo to next message
Eclipse UserFriend
Martin,

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?
>
Re: boolean qualify in getCreateChildText [message #973934 is a reply to message #968400] Tue, 06 November 2012 13:42 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: boolean qualify in getCreateChildText [message #974517 is a reply to message #973934] Wed, 07 November 2012 00:40 Go to previous messageGo to next message
Eclipse UserFriend
Martin,

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?
>
Re: boolean qualify in getCreateChildText [message #985524 is a reply to message #974517] Thu, 15 November 2012 08:19 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: boolean qualify in getCreateChildText [message #985598 is a reply to message #985524] Thu, 15 November 2012 09:23 Go to previous message
Eclipse UserFriend
Martin,

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.
Previous Topic:Pretty Print
Next Topic:[CDO] 4.2-M2 target platform / tycho error
Goto Forum:
  


Current Time: Thu Jul 24 20:53:55 EDT 2025

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

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

Back to the top