Home > Software design >  Eclipse plugin: How to open external browser from Intro.xml on the Welcome page
Eclipse plugin: How to open external browser from Intro.xml on the Welcome page

Time:02-17

How can I display a url on external browser from a link tag on the a custom Eclipse Welcome page plugin?

The following code is an example of what I have so far from the intro.xml, which is working when I click on the link from the Eclipse Welcome-page, but it displays the url from the Eclipse internal browser, and I need to display it on the external browser.

                <link 
                    label="Google" 
                    url="https://www.google.com/"
                    id="link-img-google" 
                    style-id="link">
                    <text>Please read the "Please visit Google"</text>
                </link>

CodePudding user response:

I found the solution by changing the url attribute content structure to open external browser, here is the change:

            <link 
                label="Google" 
                url="http://org.eclipse.ui.intro/openBrowser?url=https://www.google.com/"
                id="link-img-google" 
                style-id="link">
                <text>Please read the "Please visit Google"</text>
            </link>
  • Related