Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » GenModel Label Feature
GenModel Label Feature [message #505901] Tue, 05 January 2010 14:08 Go to next message
Xavier Maysonnave is currently offline Xavier MaysonnaveFriend
Messages: 30
Registered: July 2009
Member
Hi,

Is there a way to specify in the genmodel a null label feature ?

In the current implementation the genmodel editor display a list of
valid features to be displayed but a null value is not allowed. I would
like to display in some cases just the type rather than anything else.
I also want to avoid a generated not.
This corresponds to the third case in ItemProvider.getText jet file.

<%} else {%>
return "[" + getString("_UI_<%=genClass.getName()%>_type") +
"]";<%=genModel.getNonNLS()%><%=genModel.getNonNLS(2)%><%=genModel.getNonNLS(3)% >
<%}%>

Cheers
Re: GenModel Label Feature [message #505903 is a reply to message #505901] Tue, 05 January 2010 14:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30644
Registered: July 2009
Senior Member
Xavier,

No. There's even logic to compute one if it's null. Only if there are
no single-valued features will the null case be hit.


Xavier Maysonnave wrote:
> Hi,
>
> Is there a way to specify in the genmodel a null label feature ?
>
> In the current implementation the genmodel editor display a list of
> valid features to be displayed but a null value is not allowed. I
> would like to display in some cases just the type rather than anything
> else.
> I also want to avoid a generated not.
> This corresponds to the third case in ItemProvider.getText jet file.
>
> <%} else {%>
> return "[" + getString("_UI_<%=genClass.getName()%>_type") +
> "]";<%=genModel.getNonNLS()%><%=genModel.getNonNLS(2)%><%=genModel.getNonNLS(3)% >
>
> <%}%>
>
> Cheers
Re: GenModel Label Feature [message #505904 is a reply to message #505903] Tue, 05 January 2010 14:29 Go to previous message
Xavier Maysonnave is currently offline Xavier MaysonnaveFriend
Messages: 30
Registered: July 2009
Member
Le 05/01/2010 15:24, Ed Merks a écrit :
> Xavier,
>
> No. There's even logic to compute one if it's null. Only if there are no
> single-valued features will the null case be hit.

Thanks for your fast answer.
I'll implement such behaviour through a generated not.

Bye

>
>
> Xavier Maysonnave wrote:
>> Hi,
>>
>> Is there a way to specify in the genmodel a null label feature ?
>>
>> In the current implementation the genmodel editor display a list of
>> valid features to be displayed but a null value is not allowed. I
>> would like to display in some cases just the type rather than anything
>> else.
>> I also want to avoid a generated not.
>> This corresponds to the third case in ItemProvider.getText jet file.
>>
>> <%} else {%>
>> return "[" + getString("_UI_<%=genClass.getName()%>_type") +
>> "]";<%=genModel.getNonNLS()%><%=genModel.getNonNLS(2)%><%=genModel.getNonNLS(3)% >
>>
>> <%}%>
>>
>> Cheers
Previous Topic:EMF 2.6 M4 EObject.eContainer()
Next Topic:Generating editors for CDO
Goto Forum:
  


Current Time: Mon Nov 18 12:10:16 GMT 2019

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

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

Back to the top