Search code examples
eclipse-rcpe4

ResourceTreeAndListGroup in eclipse 4


I have a 3.x RCP that I am now moving to E4 using the compatibility layer.

I am now having an issue trying to use ResourceTreeAndListGroup.getListTable() which has been removed.

I would go for using Reflection to access the listViewer. I was though wondering what is the E4 way of doing it?


Solution

  • A 'pure' e4 RCP only uses the plugins in the org.eclipse.e4.rcp feature (and the EMF features that requires). This feature does not include the org.eclipse.core.resources plugin so you can't use IResource etc. Consequently there is no equivalent to ResourceTreeAndListGroup.

    An e4 RCP might use the SWT FileDialog and DirectoryDialog dialogs for file access, or use the jFace TreeViewer and the Java file APIs to build its own dialog.