Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to hide properties?
How to hide properties? [message #121755] Wed, 25 April 2007 09:22 Go to next message
Eclipse UserFriend
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 #121870 is a reply to message #121755] Wed, 25 April 2007 18:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsgroups.elmarweber.org

Hello,

Etienne Frogneux wrote:
> 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?

I don't know if there is a way specifically to do this with GMF.
But since the *.edit plugin and its *ItemProvider classes are
responsible for the properties shown, I think it should work if you make
your check there for the type of the currently active editor and react
correspondingly.

ciao,
elm
Re: How to hide properties? [message #121892 is a reply to message #121870] Thu, 26 April 2007 00:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bhatia1984.yahoo.com

hiiii

in *.gmfgen under property sheet if u remove coustom property tab none of
ur domain properties will be visible in ur editor.

This coustom property tab is responsible for diaplaying ur domain
properties in properties view.

Thanks
Varun
Re: How to hide properties? [message #121904 is a reply to message #121892] Thu, 26 April 2007 01:23 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to hide properties? [message #223821 is a reply to message #121904] Wed, 01 April 2009 05:16 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Reconcile gmfmap from changed ecore file
Next Topic:problem with custom figure
Goto Forum:
  


Current Time: Fri Apr 25 00:13:13 EDT 2025

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

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

Back to the top