Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to close Welcome tab from an intro page?
How to close Welcome tab from an intro page? [message #461030] Wed, 03 January 2007 21:21 Go to next message
Eclipse UserFriend
I have the base intro page in a RCP created from the standard RCP wizard in
Eclipse. I'm trying to simulate the behavior exhibited by Eclipse IDE when
you first launch it; if you click on the "Workbench" link, the Welcome page
closes automatically and you are taken to the default (Java) Perspective.

I need to add a link (or "action", however you want to call it) on the main
intro page that will automatically close the "Welcome" tab. How do I do
that?

Thx!
Re: How to close Welcome tab from an intro page? [message #461079 is a reply to message #461030] Thu, 04 January 2007 16:28 Go to previous messageGo to next message
Eclipse UserFriend
Ok, I figured it out, and am posting the solution here for the benefit of
those who will come to this topic using search.

In the sample pages that are created by the wizard (when you select to
create a RCP app with an intro page), there is one page called root.xhtml
which is the "Home" page for your Welcome page. This page contains links to
other pages, for example:

<a href="http://org.eclipse.ui.intro/showPage?id=concept1" id="firstLink">
<img border="0" src="link_obj.gif" alt="Concept1" />
Learn about Concept One...
</a>

Changing the href ="http://org.eclipse.ui.intro/switchToLaunchBar" does the
trick of closing the Welcome page and going to the Workbench! Here are some
other actions you could perform:

"http://org.eclipse.ui.intro/close": Closes the Welcome page (same as
switchToLaunchBar)
"http://org.eclipse.ui.intro/navigate?direction=home": Navigates to the Home
page
"http://org.eclipse.ui.intro/navigate?direction=backward": Navigates back
one page
"http://org.eclipse.ui.intro/navigate?direction=forward": Navigates forward
one page
" http://org.eclipse.ui.intro/openBrowser?url=http://www.eclip se.org":
Launches the URL in a new browser window
" http://org.eclipse.ui.intro/openURL?url=http://www.eclipse.o rg": Launches
the URL within the Welcome page.
"http://org.eclipse.ui.intro/showHelp": Shows the contents of the Help
"http://org.eclipse.ui.intro/showMessage?message=some message": Displays the
text "some message" in an alert box.

Hope that was helpful!

- Ameya

"Ameya Barve" <abarve@fnfr.com> wrote in message
news:enhob9$9mc$1@utils.eclipse.org...
>I have the base intro page in a RCP created from the standard RCP wizard in
>Eclipse. I'm trying to simulate the behavior exhibited by Eclipse IDE when
>you first launch it; if you click on the "Workbench" link, the Welcome page
>closes automatically and you are taken to the default (Java) Perspective.
>
> I need to add a link (or "action", however you want to call it) on the
> main intro page that will automatically close the "Welcome" tab. How do I
> do that?
>
> Thx!
>
Re: How to close Welcome tab from an intro page? [message #461083 is a reply to message #461079] Thu, 04 January 2007 17:42 Go to previous message
Eclipse UserFriend
Very cool. Thanks for posting the results back.

Alex.
Previous Topic:My RCP app wont run witnout -ws gtk
Next Topic:Issue with Splash screen on top of logon prompt
Goto Forum:
  


Current Time: Wed Mar 19 03:27:40 EDT 2025

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

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

Back to the top