Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Opening multiple instances of a view
Opening multiple instances of a view [message #464149] Mon, 26 February 2007 17:08 Go to next message
Eclipse UserFriend
Hi everyone,

I'd like to know if there's a way to tap into Eclipse platform at the level of ShowViewHandler (or
equivalent?). Here's a problem I'm trying to solve:

- a view is defined, and allowed to be created as multiple instances
- a user clicks on 'Window->Show View->Other...' and chooses a view
At this point I want to tap somehow into the handler and override the method openView. If the id of
a view opened matches my defined view, I want to call openView (primaryId, secondaryId) instead of a
regular openView(primaryId) that's being called.

Is there any way to achieve this?
How do you go about opening multiple instances of a view from the Eclipse 'Show menu' in general?

Thanks a lot.

(P.S. I apologize for crosspost in e.platform - I think this is a better newsgroup for this question)
Re: Opening multiple instances of a view [message #464181 is a reply to message #464149] Tue, 27 February 2007 00:37 Go to previous message
Eclipse UserFriend
Got this from RCPMail template and iam using it in my RCP, may be help full

private int instanceNum = 0;
window.getActivePage().showView(viewId, Integer.toString(instanceNum++),
IWorkbenchPage.VIEW_ACTIVATE);

Regards,
Anubhav
Previous Topic:How to define a custom configuration file (INI/XML) for a rcp application?
Next Topic:Managed Forms, SectionPart and some serious confusion on my part...
Goto Forum:
  


Current Time: Wed Mar 26 08:15:59 EDT 2025

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

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

Back to the top