Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Properties view
Properties view [message #716743] Thu, 18 August 2011 05:47 Go to next message
Rudolf R is currently offline Rudolf R
Messages: 2
Registered: April 2011
Junior Member
Hi,

I am quite new to GEF and wondered if there is a simple way of getting the properties view to get integrated when a figure is selected (everything is based on EMF-Models)

I searched for examples on the web, but did not find anything useful. I've already added the extension to add the property sections and the corresponding models.

Is this easily possible or do any helpful tutorials exist on the web for accessing the property view? Otherwise I would have to mess around with listeneres...

Regards,
Rudolf
Re: Properties view [message #716779 is a reply to message #716743] Thu, 18 August 2011 08:52 Go to previous messageGo to next message
Eclipse User
Originally posted by: Tomas Micko

Try to look at this IBM Redbook
(http://www.redbooks.ibm.com/abstracts/sg246302.html). It is little
outdated but if you look closely you will get the basic idea. If you
click the Additional Material link on that page you can download some
examples.

Rudolf R wrote:
> Hi,
>
> I am quite new to GEF and wondered if there is a simple way of getting
> the properties view to get integrated when a figure is selected
> (everything is based on EMF-Models)
>
> I searched for examples on the web, but did not find anything useful.
> I've already added the extension to add the property sections and the
> corresponding models.
>
> Is this easily possible or do any helpful tutorials exist on the web for
> accessing the property view? Otherwise I would have to mess around with
> listeneres...
>
> Regards,
> Rudolf
Re: Properties view [message #716899 is a reply to message #716743] Thu, 18 August 2011 13:58 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander Nyssen
Messages: 40
Registered: July 2009
Location: L√ľnen
Member
Adopting to the PropertySheetView within Eclipse is generally done via the IAdaptable mechanism. As GEF's GraphicalEditor already provides an IPropertySheetPage implementation within its getAdapter() method, all you basically have to do is to overwrite getAdapter() within your EditParts to return the EMF IPropertySource implementation for your model objects.

Re: Properties view [message #731812 is a reply to message #716743] Mon, 03 October 2011 03:28 Go to previous message
Arieh Bibliowicz is currently offline Arieh Bibliowicz
Messages: 18
Registered: June 2011
Junior Member
The solution is quite easy to implement but a bit tricky. I show this in
my tutorial at http://www.vainolo.com/2011/08/22/creating-an-opm-gef-
editor-part-16-displaying-emf-properties-in-a-gef-editor/

Vainolo
Previous Topic:ZEST Custom figures
Next Topic:[Zest] New layout algorithm ?
Goto Forum:
  


Current Time: Wed Jul 30 07:08:58 EDT 2014

Powered by FUDForum. Page generated in 0.03029 seconds