How to hide properties? [message #121755] |
Wed, 25 April 2007 09:22  |
Eclipse User |
|
|
|
Originally posted by: frogneux.lippmann.lu
Hi all,
From a same EMF model, I generated two GMF editors. An Eclass of my ecore
model has some attributes(EAttribute). My wish is to display these
attributes in the object properties in one GMF editor but not in the other
one. Is it possible? If that's possible, how to make it?
Thanks in advance for any help.
Etienne
|
|
|
|
|
|
Re: How to hide properties? [message #223821 is a reply to message #121904] |
Wed, 01 April 2009 05:16   |
Eclipse User |
|
|
|
Jens Bachmann schrieb:
> Hi there,
>
> an easier way to hide some attributes in properties view is to have a
> look in your *.genmodel file. There you can click on your attribute and
> under properties you can select "None" for "Property Type", so it will
> be hidden in Properties View of diagram editor.
> If you want to have two editors, just make a copy of your *.genmodel and
> take this one for the generation process of second editor.
>
> I hope this will help you.
>
> Regards,
> Jens
>
Hi Jens,
it seems that GMF has slightly changed meanwhile. If I set the property
type to "None", the property is displayed in the resulting editor,
though. I've searched through the code and found out that (if I set the
property to "editable" or "readonly") there exists a method called
getPropertyDescriptors, which overrides the same method in
AbstractNodeItemProvider. But this method is never(!) called. Are there
any extension points that I have to activate? Any other things to do?
Thanks in advance for your answers.
Greetings,
Ralf.
|
|
|
[Solution] Re: How to hide properties? [message #224292 is a reply to message #223821] |
Fri, 03 April 2009 09:12  |
Eclipse User |
|
|
|
R. Heydenreich schrieb:
> Jens Bachmann schrieb:
>> Hi there,
>>
>> an easier way to hide some attributes in properties view is to have a
>> look in your *.genmodel file. There you can click on your attribute
>> and under properties you can select "None" for "Property Type", so it
>> will be hidden in Properties View of diagram editor.
>> If you want to have two editors, just make a copy of your *.genmodel
>> and take this one for the generation process of second editor.
>>
>> I hope this will help you.
>>
>> Regards,
>> Jens
>>
>
> Hi Jens,
> it seems that GMF has slightly changed meanwhile. If I set the property
> type to "None", the property is displayed in the resulting editor,
> though. I've searched through the code and found out that (if I set the
> property to "editable" or "readonly") there exists a method called
> getPropertyDescriptors, which overrides the same method in
> AbstractNodeItemProvider. But this method is never(!) called. Are there
> any extension points that I have to activate? Any other things to do?
> Thanks in advance for your answers.
>
> Greetings,
> Ralf.
Hi all,
we found the solution. The problem was that the URI in the extension
point wasn't correct. We have corrected this and now it works.
Greets,
Ralf.
|
|
|
Powered by
FUDForum. Page generated in 0.03174 seconds