Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to get all open views
https://www.eclipse.org/forums/index.php/mv/msg/215163/687812/#msg_687812
I'm trying to retrieve all open views that are currently open in a workbench. I have several perspectives open in which I've opened some views. So far I've failed to get all of them at once. I couldn't even find out of how to get all open views from a certain perspective. Does anyone know how this could be done?
Thanks a lot.]]>Serge 2011-06-23T09:49:29-00:00Re: How to get all open views
https://www.eclipse.org/forums/index.php/mv/msg/215163/689510/#msg_689510
IWorkbenchPage activePage = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
IViewPart view = activePage.findView(viewID);
if (view != null) {
View is open
}
Now you will have to map it with your perspective.]]>Chaitannya 2011-06-27T18:38:51-00:00Re: How to get all open views
https://www.eclipse.org/forums/index.php/mv/msg/215163/698084/#msg_698084
org.eclipse.ui.IWorkbenchPage.getViewReferences()
PW
]]>Paul Webster2011-07-18T18:25:19-00:00Re: How to get all open views
https://www.eclipse.org/forums/index.php/mv/msg/215163/720403/#msg_720403
1) iterate over ALL the Perspectives
2) SET the perspective (make it active)
3) iterate over all the perspective views