Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » boolean qualify in getCreateChildText
boolean qualify in getCreateChildText [message #953630] Mon, 22 October 2012 12:00 Go to next message
Martin Weiss is currently offline Martin WeissFriend
Messages: 9
Registered: July 2012
Junior Member
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 12:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: boolean qualify in getCreateChildText [message #953892 is a reply to message #953646] Mon, 22 October 2012 16:13 Go to previous messageGo to next message
Martin Weiss is currently offline Martin WeissFriend
Messages: 9
Registered: July 2012
Junior Member
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 21:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: boolean qualify in getCreateChildText [message #968366 is a reply to message #954209] Fri, 02 November 2012 12:04 Go to previous messageGo to next message
Martin Weiss is currently offline Martin WeissFriend
Messages: 9
Registered: July 2012
Junior Member
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 12:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: boolean qualify in getCreateChildText [message #973934 is a reply to message #968400] Tue, 06 November 2012 18:42 Go to previous messageGo to next message
Martin Weiss is currently offline Martin WeissFriend
Messages: 9
Registered: July 2012
Junior Member
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 05:40 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: boolean qualify in getCreateChildText [message #985524 is a reply to message #974517] Thu, 15 November 2012 13:19 Go to previous messageGo to next message
Martin Weiss is currently offline Martin WeissFriend
Messages: 9
Registered: July 2012
Junior Member
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 14:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Pretty Print
Next Topic:[CDO] 4.2-M2 target platform / tycho error
Goto Forum:
  


Current Time: Thu Mar 28 11:21:28 GMT 2024

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

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

Back to the top