Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Properties view
Properties view [message #716743] Thu, 18 August 2011 09:47 Go to next message
Rudolf R is currently offline Rudolf RFriend
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 12: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 17:58 Go to previous messageGo to next message
Alexander Nyßen is currently offline Alexander NyßenFriend
Messages: 49
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 07:28 Go to previous message
Arieh Bibliowicz is currently offline Arieh BibliowiczFriend
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: Thu Nov 27 03:15:58 GMT 2014

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

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