[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: How to close Welcome tab from an intro page?
|
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.eclipse.org":
Launches the URL in a new browser window
"http://org.eclipse.ui.intro/openURL?url=http://www.eclipse.org": 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@xxxxxxxx> wrote in message
news:enhob9$9mc$1@xxxxxxxxxxxxxxxxxxxx
>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!
>