Eclipse RCP file browser in ViewPart or Editor?

I am using the file browser in Eclipse RCP using TreeViewer. It would be better to place it in the editor or in ViewPart. I ask because I need to go through the root path for the browser and don’t know how to do this with the view. Because views are not created directly.

+3
source share
1 answer

From the Eclipse Frequently Asked Questions regarding the differences between editors and views:

  • Typically, there is only one instance of this view on the Workbench page, but there may be several instances of the same type of editor.
  • , .
  • , , , .
  • , .
  • , .

View .

:

 PlatformUI.getWorkbench().getViewRegistry().getViews();

.

+2

Source: https://habr.com/ru/post/1757927/


All Articles