Opening multiple instances of a view [message #464149] |
Mon, 26 February 2007 17:08  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03177 seconds