Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Find all currently open instances of a view
Find all currently open instances of a view [message #318084] Fri, 20 July 2007 05:17 Go to next message
Eclipse UserFriend
Originally posted by: robert.handschmann.gmx.at

Hi!
I cannot find the proper method that returns all currently open
windows/instances of a view.
I'm looking for a method that finds the currently open views by its
primary id
like:
IViewPart[] findOpenViews("com.xy.MyView");

Any hints?
Thanx, Robert
Re: Find all currently open instances of a view [message #318172 is a reply to message #318084] Mon, 23 July 2007 08:35 Go to previous messageGo to next message
Eclipse UserFriend
in the general case you want IWorkbenchPage#findView(*) or
findViewReference(*).

Do you have multi-instance views?

PW
Re: Find all currently open instances of a view [message #318264 is a reply to message #318172] Tue, 24 July 2007 05:20 Go to previous message
Eclipse UserFriend
Originally posted by: robert.handschmann.gmx.at

Hi!
Yes it is a multi-instance view.
I currently use a loop over IViewReferences returned by
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getViewReferences()
and search for the proper ID.
Greetings,
Robert
Previous Topic:InstanceScope prefs do not inherit from DefaultScope prefs
Next Topic:Libraries and Sources (org.eclipse.pde.core.source)
Goto Forum:
  


Current Time: Tue May 06 08:07:10 EDT 2025

Powered by FUDForum. Page generated in 0.04249 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top