Skip to main content



      Home
Home » Eclipse Projects » GEF » Properties view
Properties view [message #716743] Thu, 18 August 2011 05:47 Go to next message
Eclipse UserFriend
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 UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Fri Jul 25 01:06:57 EDT 2025

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

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

Back to the top