Open View with an Action [message #452786] |
Fri, 14 July 2006 16:21 |
Eclipse User |
|
|
|
Originally posted by: mgervais.signaturegenetics.com
Hi,
I'd like to open a view with an Action and the method :
IWorkbenchPage.showView(String viewId, String secondaryId, int mode)
but to use this method the view has to be in the View Registry using the
extension point org.eclipse.ui.views, so it means that's the view will
appear in the Show View Dialog and I don't want that. Is there a way to
prevent a view appearing in the Show view Dialog? Or a workaround?
Thanks
Mickael
|
|
|
Re: Open View with an Action [message #452839 is a reply to message #452786] |
Mon, 17 July 2006 23:05 |
Eclipse User |
|
|
|
Originally posted by: mgervais.signaturegenetics.com
Hi
does somebody has an idea for my question?
I cannot make it working....
Any help should be apprecitated.
Thanks again
Micakel
"Gervais Mickael" <mgervais@signaturegenetics.com> wrote in message
news:e98fp7$v7g$1@utils.eclipse.org...
> Hi,
> I'd like to open a view with an Action and the method :
> IWorkbenchPage.showView(String viewId, String secondaryId, int mode)
> but to use this method the view has to be in the View Registry using the
> extension point org.eclipse.ui.views, so it means that's the view will
> appear in the Show View Dialog and I don't want that. Is there a way to
> prevent a view appearing in the Show view Dialog? Or a workaround?
> Thanks
> Mickael
>
|
|
|
|
Re: Open View with an Action [message #452885 is a reply to message #452842] |
Tue, 18 July 2006 13:31 |
Eclipse User |
|
|
|
Originally posted by: mgervais.signaturegenetics.com
Thanks,
But if I do that I don't have my show view dialog anymore, and other view
have to be opened with this view... So you can? Have my show view dialog
without View A , and open the view A with an action?
Thanks again for your answer
Mickael
"dhiresh patel" <dhiruster@gmail.com> wrote in message
news:8699b335787b76fb7e6ae0849938e521$1@www.eclipse.org...
>I guess one thing you can do is don't use show view dialog to display views
>instead create your menu item actions for the views you like to display
>
> in short don't use e.g
> IContributionItem viewList =
> ContributionItemFactory.VIEWS_SHORTLIST.create(window);
|
|
|
|
Re: Open View with an Action [message #453001 is a reply to message #452786] |
Thu, 20 July 2006 01:46 |
Eclipse User |
|
|
|
Originally posted by: lamont_gilbert.rigidsoftware.com
Gervais Mickael wrote:
> Hi,
> I'd like to open a view with an Action and the method :
> IWorkbenchPage.showView(String viewId, String secondaryId, int mode)
> but to use this method the view has to be in the View Registry using the
> extension point org.eclipse.ui.views, so it means that's the view will
> appear in the Show View Dialog and I don't want that. Is there a way to
> prevent a view appearing in the Show view Dialog? Or a workaround?
> Thanks
> Mickael
Don't fight the architecture. Things just get ugly.
Why can't you instantiate your view programmatically, and pass it to the
page or something?
--
Respectfully,
CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into the
sheepfold{}, but climbeth up some other *way, the same is a thief and a
robber."
|
|
|
Powered by
FUDForum. Page generated in 0.03763 seconds