How to tell if a view is visible/hidden or not? [message #511223] |
Sun, 31 January 2010 13:24 |
|
I have two views ViewA and ViewB that are in a stack relation (ViewB is displayed in the right side of ViewA). Obviously only one of these two views is visible and the other one is hidden.
I want to know which view is hidden so that I can make it visible by programatically calling the showView(view_descriptor.getId()) on the active IWorkbenchPage page.
So far I was able to do this: in ViewB I registered a IPartListener2 and keep a boolean about the visibility of the view but I do not know how to make this info available in my ViewSwitcherMenu class that extends ContributionItem (I am trying to used a dynamic menu).
Is there another simpler way to find out if a view is visible or not?
From the active page I can get the array of the available view references (IViewReference[]) and isolate the view I am interested in but I do not know if it is hidden or not.
Any help would be greatly appreciated.
Time is what you make of it.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04979 seconds