You can't show a view (anything derived from ViewPart
) in a wizard because it relies on the view infrastructure provided by Eclipse that is not available in a wizard.
You can create a TreeViewer
and populate it with the files and folders in the workspace. The content provider, label provider and input would be something like this:
treeViewer.setContentProvider(new WorkbenchContentProvider());
treeViewer.setLabelProvider(new WorkbenchLabelProvider());
treeViewer.setInput(ResourcesPlugin.getWorkspace());