|adding the project explorer to a perspective [message #677359]
||Wed, 08 June 2011 05:43
| nicolas h
Registered: February 2011
Location: Grenoble, France
I added to a perspective the model explorer using :
project explorer is correctly displayed but seems "dirty" : I don't see my projects in the workspace.
If I right click in the project explorer (just right click, I don't select "refresh" entry in the context menu), model explorer will be refreshed.
How can I refresh it automatically ?
I tried this :
IViewReference viewReferences = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getViewReferences();
for (IViewReference viewRef : viewReferences)
if (viewRef.getId().compareTo(IPageLayout.ID_PROJECT_EXPLORER) == 0)
System.out.println("Wake up !");
ProjectExplorer projectExplorer = (ProjectExplorer)(viewRef.getView(true));
System.out.println (projectExplorer.isDirty()); // return false
It doesn't work, nothing happens.
Does anyone have an idea to solve this problem ?
Powered by FUDForum
. Page generated in 0.01519 seconds