Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09: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 12:35 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 09: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: Sat Nov 02 20:06:45 GMT 2024

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

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

Back to the top