Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Regarding Extending the Universal Intro
Regarding Extending the Universal Intro [message #15454] Tue, 05 August 2008 21:16 Go to next message
Eclipse UserFriend
Originally posted by: mlakhani.tibco.com

Hi,
Can I add root pages to the Universal welcome page(i.e the welcome page
consisting of overview,tutorial,migrate,webresources... etc). What I need
to do is add a category for my product along with these categories in the
welcome page, i.e a new category that would come in the main welcome
page(say xyz category) side by side the existing categories.
Is the list of root pages that can come in the main welcome unextensible?

Thanks,
Mahim
Re: Regarding Extending the Universal Intro [message #15487 is a reply to message #15454] Tue, 05 August 2008 21:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: zx.code9.com

Mahim Lakhani wrote:
> Hi,
> Can I add root pages to the Universal welcome page(i.e the welcome page
> consisting of overview,tutorial,migrate,webresources... etc). What I
> need to do is add a category for my product along with these categories
> in the welcome page, i.e a new category that would come in the main
> welcome page(say xyz category) side by side the existing categories.
> Is the list of root pages that can come in the main welcome unextensible?

cc'ng the eclipse.platform.ua newsgroup where this question belongs.

Cheers,

~ Chris
Re: Regarding Extending the Universal Intro [message #16213 is a reply to message #15487] Mon, 11 August 2008 17:21 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Yes, it is possible to add additional pages to universal intro but you
will have to do quite a bit of work if you want them to look just like
the rest of the pages. In any case here's the first step to doing this:
Use the new plug-in wizard to create a plug-in with universal intro
content by selecting "Custom plug-in wizard" on the template page, then
selecting the Universal Welcome Contribution template. Replace the
contents of sample.xml with the following and you will see a link added
to the overview page which will take you to the new page. This is using
Eclipse 3.4, Eclipse 3.3 did not always pick up page extensions
correctly so it may or may not work using Eclipse 3.3. You can also use
the new plugin customization property to INTRO_START_PAGE to make your
new page be the first page a user sees when they start Eclipse, see
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/ua_intro_universal_contributing.htm

<?xml version="1.0" encoding="utf-8" ?>
<introContent>
<extensionContent id="orgeclipseuiintronewpage-introExtension"
style="css/sample.css" name="Sample Extension" path="overview/@">
<group style-id="content-group"
id="orgeclipseuiintronewpage-introLink-group">
<link label="Go to my new page"
url="http://org.eclipse.ui.intro/showPage?id=mynewpage"
id="intropage2-introLink" style-id="content-link">
<text>This is a link to my new page</text>
</link>
</group>
</extensionContent>
<page id="mynewpage" alt-style="$theme$/swt/root.properties"
style-id="page">
<anchor id="head-anchor"/>
<title style-id="intro-header">This is my new page</title>
<group id="action-links">
<link url="http://org.eclipse.ui.intro/switchToLaunchBar"
label="Workbench" id="workbench" style-id="$high-contrast$">
<text>Go to the workbench</text>
</link>
</group>
</page>
</introContent>
Re: Regarding Extending the Universal Intro [message #575603 is a reply to message #15454] Tue, 05 August 2008 21:31 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Mahim Lakhani wrote:
> Hi,
> Can I add root pages to the Universal welcome page(i.e the welcome page
> consisting of overview,tutorial,migrate,webresources... etc). What I
> need to do is add a category for my product along with these categories
> in the welcome page, i.e a new category that would come in the main
> welcome page(say xyz category) side by side the existing categories.
> Is the list of root pages that can come in the main welcome unextensible?

cc'ng the eclipse.platform.ua newsgroup where this question belongs.

Cheers,

~ Chris
Re: Regarding Extending the Universal Intro [message #576097 is a reply to message #15487] Mon, 11 August 2008 17:21 Go to previous message
Chris Goldthorpe is currently offline Chris GoldthorpeFriend
Messages: 815
Registered: July 2009
Senior Member
Yes, it is possible to add additional pages to universal intro but you
will have to do quite a bit of work if you want them to look just like
the rest of the pages. In any case here's the first step to doing this:
Use the new plug-in wizard to create a plug-in with universal intro
content by selecting "Custom plug-in wizard" on the template page, then
selecting the Universal Welcome Contribution template. Replace the
contents of sample.xml with the following and you will see a link added
to the overview page which will take you to the new page. This is using
Eclipse 3.4, Eclipse 3.3 did not always pick up page extensions
correctly so it may or may not work using Eclipse 3.3. You can also use
the new plugin customization property to INTRO_START_PAGE to make your
new page be the first page a user sees when they start Eclipse, see
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/ua_intro_universal_contributing.htm

<?xml version="1.0" encoding="utf-8" ?>
<introContent>
<extensionContent id="orgeclipseuiintronewpage-introExtension"
style="css/sample.css" name="Sample Extension" path="overview/@">
<group style-id="content-group"
id="orgeclipseuiintronewpage-introLink-group">
<link label="Go to my new page"
url="http://org.eclipse.ui.intro/showPage?id=mynewpage"
id="intropage2-introLink" style-id="content-link">
<text>This is a link to my new page</text>
</link>
</group>
</extensionContent>
<page id="mynewpage" alt-style="$theme$/swt/root.properties"
style-id="page">
<anchor id="head-anchor"/>
<title style-id="intro-header">This is my new page</title>
<group id="action-links">
<link url="http://org.eclipse.ui.intro/switchToLaunchBar"
label="Workbench" id="workbench" style-id="$high-contrast$">
<text>Go to the workbench</text>
</link>
</group>
</page>
</introContent>
Previous Topic:IAction.ischecked() returns wrong value for radio button in popup menu
Next Topic:PDE doesn't recognize dropins folder in 3.4 target (p2)
Goto Forum:
  


Current Time: Fri Mar 29 04:58:17 GMT 2024

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

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

Back to the top