|
Re: Properties view [message #716779 is a reply to message #716743] |
Thu, 18 August 2011 12:52 |
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 17:58 |
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03061 seconds