Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Open View with an Action
Open View with an Action [message #452786] Fri, 14 July 2006 16:21 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #452842 is a reply to message #452839] Mon, 17 July 2006 23:36 Go to previous messageGo to next message
Dhiresh Patel  is currently offline Dhiresh Patel Friend
Messages: 86
Registered: July 2009
Member
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 #452885 is a reply to message #452842] Tue, 18 July 2006 13:31 Go to previous messageGo to next message
Eclipse UserFriend
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 #452942 is a reply to message #452885] Wed, 19 July 2006 10:27 Go to previous messageGo to next message
Srivatsan is currently offline SrivatsanFriend
Messages: 55
Registered: July 2009
Member
Well i think every view that you create will be registered in the view
registry which gets reflected in the Window --> ShowView menu. I doubt
whether you could ever do that.
Re: Open View with an Action [message #453001 is a reply to message #452786] Thu, 20 July 2006 01:46 Go to previous message
Eclipse UserFriend
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."
Previous Topic:Help Displaying Filesystem in View
Next Topic:Showing a Dialog Whilst Running a Job
Goto Forum:
  


Current Time: Sat Oct 12 08:43:00 GMT 2024

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

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

Back to the top