Eclipse Intro / Welcome Page

Is it possible to have links on the welcome page that point to specific commands and, for example, start a dialog?

I am thinking of having a welcome page, indicating the steps to be taken first, for example:

1) change language (click here)
2) set up database connection (click here)
3) start working (click here)

"click here" should be a link to bring up the actual dialog for customization. I am using Eclipse with a command style menu.

Thanks for any suggestions!

+5
source share
2 answers

You can run jface actions from the welcome page like this (in introContent.xml)

<link 
label="System Configuration" 
url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.ui.internal&#38;class=org.eclipse.ui.internal.OpenPreferencesAction">
   <img src="config.png" alt="System Configuration"/>
   <text>Current system configuration.</text>
</link>

XHTML. &#38; . ( org.eclipse.ui.*), IIntroAction,

public class YourPreferencesAction extends OpenPreferencesAction implements IIntroAction {

    @Override
    public void run(IIntroSite site, Properties params) {
        final IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager().getIntro(); 
        PlatformUI.getWorkbench().getIntroManager().closeIntro(introPart);  
        run();
    }

}

- , , run(). org.eclipse.jface.Action.

+6

All Articles