Regarding Extending the Universal Intro [message #15454] |
Tue, 05 August 2008 17:16  |
Eclipse User |
|
|
|
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 #16213 is a reply to message #15487] |
Mon, 11 August 2008 13:21  |
Eclipse User |
|
|
|
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 17:31  |
Eclipse User |
|
|
|
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 13:21  |
Eclipse User |
|
|
|
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>
|
|
|
Powered by
FUDForum. Page generated in 0.05737 seconds