Detecting which views are visible/selected [message #192103] |
Tue, 06 February 2007 07:00 |
Eclipse User |
|
|
|
Originally posted by: alexmont1.comcast.net
I have a plugin with two views (call them view A and view B) and a new
marker type ("X"). I want the plugin to have the following behavior:
When the user clicks on a marker of type X (note: I know how to catch the
clicking-on-a-marker event so that's not a problem) view A will come to
the front. However, if view B is currently on the front and view B is on
the same set of tabs as view A (so bringing view A to the front will cause
B to go to the back) then view A will not come to the front.
Looking at the view that has focus will not work, because it's possible
that a view will be at the front even though it doesn't have focus (i.e.
if the focus is on a view or editor in a completely different set of tabs)
I've tried using the IWorkbenchPage.isEditorAreaVisible() function to find
out if a view is at the front, but that doesn't seem to work (and probably
isn't what I want because these views aren't "editors") and I can't find
any other functions that look like they can test whether a view is at the
front.
Is it possible to get the behavior I want, and if so, how?
|
|
|
Powered by
FUDForum. Page generated in 0.02487 seconds