I have a tree viewer in the project explorer view of my RCP application. My product completely deals with loading, value retrieval and updating values in resource (“org.eclipse.emf.ecore.resource.Resource”). I am having a create project menu item, which is used for creation of new project. After the project creation operation, a new file is created in the project folder. I am having a standard file, which I need to be loaded while creating the project itself. So, in the entire application, I deal with 2 files(standard file and the file created during project creation operation). When I am running the rcp product in eclipse, its working fine and after the completion of project creation process, the project node appears in the tree and when i try to expand the project node, it shows the child nodes.
I tried to export it as an rcp product in the eclipse product file. And when I tried to create project, the project node is shown in the tree viewer, but when I try to expand the project node, nothing is shown under it. Why is it not showing the child nodes of the project node. The child nodes should be taken from the file created during the project creation process. Th file is created perfectly in the project folder. I think, this happens due to some issues related with resources. Is there something which we should care about resources, while exporting the product.
I’ve had the same issue and although ugly got around it with this class.
It is an issue of ui resources not getting set also you need this extension point “org.eclipse.ui.navigator.viewer” to create a viewer with the view id of your project explorer. Hope that helps.