Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to add a text panel to my diagram editor ?
How to add a text panel to my diagram editor ? [message #709750] Thu, 04 August 2011 08:59 Go to next message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
Hi everyone !

I've got a diagram editor, with a class A.

This class A got a property B which is a String.

My problem is that this string may be huge, and won't fit in the default property editor.

I would like to add a new panel with a text area where i can edit B for the selected A, but i've no idea about how to do that.

I'm quite used to swing but rcp development is new for me.

Can someone help me ? GMF generate so many classes, i don't even know where to start searching.

Thanks a lot !
(no subject) [message #709901 is a reply to message #709750] Thu, 04 August 2011 13:04 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 770
Registered: July 2009
Location: Grenoble, France
Senior Member
You could think about using EEF [1] to customize your property views,

Or you can also code your own property sheets for your diagram. In order
to do so, take a look at the generated plugin.xml and mimic the way GMF
generates your "Rules & Grid" sections and so on.

HTH,

[1] http://www.eclipse.org/modeling/emft/?project=eef
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: (no subject) [message #709956 is a reply to message #709901] Thu, 04 August 2011 14:23 Go to previous messageGo to next message
Christian Smietana is currently offline Christian SmietanaFriend
Messages: 11
Registered: February 2011
Junior Member
In the EMF genmodel, set "multiline" to true for the string property, then the default property sheet will contain a nice little multiline editor.

You could also install a modified open diagram policy so that on double click a text input is opened.
Re: How to add a text panel to my diagram editor ? [message #710397 is a reply to message #709750] Fri, 05 August 2011 01:06 Go to previous message
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
Thanks a lot !

That's exactly the help i needed
Previous Topic:Node Container
Next Topic:PNML & EzPetri
Goto Forum:
  


Current Time: Fri Nov 28 09:04:59 GMT 2014

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

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