D. Schutz
D. Schutz

Reputation: 1

How to show a selected EObject of a JFace TreeViewer in the Eclipse properties view using an Eclipse E4 view

I added a TreeViewer to an Eclipse e4 PartDescriptor which contains multiple EMF EObjects. Now I'm having difficulties to show the attributes of the selected TreeItems in the Eclipse properties view.

I already tried the exercise 17 in the tutorial http://www.vogella.com/tutorials/EclipsePlugin/article.html#adapters_propertyview_example but couldn't get it to run because the method getAdapter in the Class implementing the IAdapterFactory never gets called. Therefore nothing is displayed in the properties view when a TreeItem is selected. Even though I added the extension point to the plugin as explained in the tutorial.

Unfortunately, I couldn't find more resources which were using an eclipse e4 view.

Is there a way to use the eclipse properties view in an Eclipse e4 view and how is it done?

Upvotes: 0

Views: 68

Answers (0)

Related Questions