Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable a property in diagram editor(how I can hide/disable a property?)
icon5.gif  Disable a property in diagram editor [message #997408] Mon, 07 January 2013 05:44 Go to next message
Eclipse UserFriend
Hello together,
I am really new in GMF/EMF and I have the following problem:
I am designing an Model editor and want to limit some user actions.
In the Properties view an diagram element has certain properties.
Now I want that the user is not able to change certain properties in this view, but the property has to stay and should not be deleted.
Is there a possibility to hide or disable the combobox/text input or to make a field readonly?

I would be really happy if you could help me.
Thanks
Re: Disable a property in diagram editor [message #997538 is a reply to message #997408] Tue, 08 January 2013 03:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi Hans,

this is an EMF related problem. Go to the property in you .genmodel and set its "Property Type" to read only.

Ralph
Re: Disable a property in diagram editor [message #997579 is a reply to message #997538] Tue, 08 January 2013 07:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ralph,
thanks for your quick answer Smile
I have found this property and changed it to readonly.
But how do I propagate it to the model editor. I'm using Eugenia to generate the code.
Do you know which steps I have to do, to see the result in the editor finally?

edit:
I want to emphasize that the property should be not settable in the view of the user. I have found that problem in another forum:
eclipsezone.com/eclipse/forums/t116005.html
But there is no solution mentioned.

[Updated on: Tue, 08 January 2013 08:20] by Moderator

Re: Disable a property in diagram editor [message #998119 is a reply to message #997579] Wed, 09 January 2013 07:05 Go to previous message
Eclipse UserFriend
Hi

the GMF Editor uses the generated Edit code. All you need to do is to generate Edit code after setting the property.

Ralph
Previous Topic:Search: Someone who creates a model for me
Next Topic:Validation of root diagram element
Goto Forum:
  


Current Time: Tue Jul 22 18:58:26 EDT 2025

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

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

Back to the top