Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2004-06-14 10:12:38 -0400
committerDoug Schaefer2004-06-14 10:12:38 -0400
commit7996df4a59818dfd6287b6b724e0bdb446a1eb98 (patch)
treefee7955bc6d87b602b816f8a8d12c1eb22e35240 /releng/org.eclipse.cdt
parent85be18a5f9556c1b23f600ca12f088a1d51d3925 (diff)
downloadorg.eclipse.cdt-7996df4a59818dfd6287b6b724e0bdb446a1eb98.tar.gz
org.eclipse.cdt-7996df4a59818dfd6287b6b724e0bdb446a1eb98.tar.xz
org.eclipse.cdt-7996df4a59818dfd6287b6b724e0bdb446a1eb98.zip
Patch for Dave Daoust to enable Welcome content.
Diffstat (limited to 'releng/org.eclipse.cdt')
-rw-r--r--releng/org.eclipse.cdt/about.ini3
-rw-r--r--releng/org.eclipse.cdt/cheatsheets/HelloWorld.xml73
-rw-r--r--releng/org.eclipse.cdt/css/graphics/obj_48/capp_obj.gif1
-rw-r--r--releng/org.eclipse.cdt/css/overview.css9
-rw-r--r--releng/org.eclipse.cdt/css/swt.properties8
-rw-r--r--releng/org.eclipse.cdt/overviewExtensionContent.xml31
-rw-r--r--releng/org.eclipse.cdt/plugin.properties4
-rw-r--r--releng/org.eclipse.cdt/plugin.xml33
-rw-r--r--releng/org.eclipse.cdt/samplesExtensionContent.xml13
-rw-r--r--releng/org.eclipse.cdt/tutorialsExtensionContent.xml24
-rw-r--r--releng/org.eclipse.cdt/welcome.xml29
-rw-r--r--releng/org.eclipse.cdt/whatsNewExtensionContent.xml11
12 files changed, 206 insertions, 33 deletions
diff --git a/releng/org.eclipse.cdt/about.ini b/releng/org.eclipse.cdt/about.ini
index 2c7a823562..91dbe53708 100644
--- a/releng/org.eclipse.cdt/about.ini
+++ b/releng/org.eclipse.cdt/about.ini
@@ -19,9 +19,6 @@ featureImage=eclipse32.gif
# Property "appName" contains name of the application (translated)
# needed for primary features only
-# Property "welcomePage" contains path to welcome page (special XML-based format)
-welcomePage=$nl$/welcome.xml
-
# Property "welcomePerspective" contains the id of the perspective in which the
# welcome page is to be opened.
# optional
diff --git a/releng/org.eclipse.cdt/cheatsheets/HelloWorld.xml b/releng/org.eclipse.cdt/cheatsheets/HelloWorld.xml
new file mode 100644
index 0000000000..f9dca6103f
--- /dev/null
+++ b/releng/org.eclipse.cdt/cheatsheets/HelloWorld.xml
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<cheatsheet title="Simple C++ Application">
+
+ <intro
+ href="/org.eclipse.ui.cheatsheets.doc/tasks/tcheatst.htm">
+ <description>
+Welcome to the Hello, World Java tutorial.
+It will help you build the famous "hello world" application and try it out. You will create a java project, and a java class that will print "hello world" in the console when run.
+Let's get started!
+ </description>
+</intro>
+
+ <item
+ href="/org.eclipse.platform.doc.user/concepts/concepts-4.htm"
+ title="Open the Java Perspective">
+ <action
+ pluginId="org.eclipse.ui.cheatsheets"
+ class="org.eclipse.ui.internal.cheatsheets.actions.OpenPerspective"
+ param1="org.eclipse.jdt.ui.JavaPerspective"/>
+ <description>
+Select Window-&gt;Open Perspective-&gt;Java in the menubar at the top of the workbench.
+This step changes the perspective to set up the Eclipse workbench for Java development.
+You can click the "Click to Perform" button to have the "Java" perspective opened automatically.
+ </description>
+</item>
+
+ <item
+ href="/org.eclipse.jdt.doc.user/tasks/tasks-12.htm"
+ title="Create a java project"
+ skip="true">
+ <action
+ pluginId="org.eclipse.jdt.ui"
+ class="org.eclipse.jdt.internal.ui.wizards.OpenProjectWizardAction"/>
+ <description>
+The first thing you will need is a Java Project.
+If you already have a java project in your workspace that you would like to use, you may skip this step by pressing the "skip" button. If not, you may press the "click to perform" button to spawn the New Java Project wizard.
+ </description>
+</item>
+
+ <item
+ href="/org.eclipse.jdt.doc.user/gettingStarted/qs-9.htm"
+ title="Create your HelloWorld class">
+ <action
+ pluginId="org.eclipse.jdt.ui"
+ class="org.eclipse.jdt.internal.ui.wizards.OpenClassWizardAction"/>
+ <description>
+You should now have a Java Project in your workspace.
+The next step in building your hello world application is to create your HelloWorld class. You may do this by either pressing the "click to perform" button below to launch the New Java Class wizard, or you may use the Eclipse tools to do it, by using the File-&gt;New-&gt;Class action.
+When you use the wizard, make sure that you specify that you would like to have a "main" method added. Name your class "HelloWorld". If you use the button below it will be pre-filled for you.
+If you do not use the "click to perform" button below, press the "click when done" button to advance to the next step in building your hello world app.
+ </description>
+</item>
+
+ <item
+ href="/org.eclipse.jdt.doc.user/tasks/tasks-54.htm"
+ title="Add a System.out.println line in your main method">
+ <description>
+Now that you have your HelloWorld class,
+In the "public static void main" method, add the following statement: System.out.println("Hello world!"); and save your changes. Press the "click when done" button below when finished.
+ </description>
+</item>
+
+ <item
+ href="/org.eclipse.jdt.doc.user/gettingStarted/qs-12.htm"
+ title="Test your application">
+ <description>
+The final moment has arrived! You are ready to test your HelloWorld class.
+Select your class in the package explorer (the java tree view on the left of the workbench window in the Java Perspective.). When your HelloWorld class is selected, press the down arrow beside the running man icon in the toolbar and select Run As-&gt;application. Hello world! should be printed in your "Console" view.
+Congratulations! You have built your hello world application and it worked!
+ </description>
+</item>
+
+</cheatsheet>
diff --git a/releng/org.eclipse.cdt/css/graphics/obj_48/capp_obj.gif b/releng/org.eclipse.cdt/css/graphics/obj_48/capp_obj.gif
new file mode 100644
index 0000000000..4a0ddce55e
--- /dev/null
+++ b/releng/org.eclipse.cdt/css/graphics/obj_48/capp_obj.gif
@@ -0,0 +1 @@
+GIF89a4 \ No newline at end of file
diff --git a/releng/org.eclipse.cdt/css/overview.css b/releng/org.eclipse.cdt/css/overview.css
new file mode 100644
index 0000000000..502f2c81c6
--- /dev/null
+++ b/releng/org.eclipse.cdt/css/overview.css
@@ -0,0 +1,9 @@
+a#cdt img { background-image : url(graphics/obj_48/cdtdev_obj.gif); }
+a#cdt:hover img { background-image : url(graphics/obj_48/cdtdevhov_obj.gif); }
+
+a#hello-world-cdt img { background-image : url(graphics/obj_48/capp_obj.gif); }
+a#hello-world-cdt:hover img { background-image : url(graphics/obj_48/capphov_obj.gif); }
+
+body {
+ background-image : url(../../org.eclipse.platform/css/graphics/contentpage/overview_wtr.jpg);
+}
diff --git a/releng/org.eclipse.cdt/css/swt.properties b/releng/org.eclipse.cdt/css/swt.properties
new file mode 100644
index 0000000000..10336b8615
--- /dev/null
+++ b/releng/org.eclipse.cdt/css/swt.properties
@@ -0,0 +1,8 @@
+
+overview.page-content.overview-links.cdt.link-icon = css/graphics/obj_48/cdtdev_obj.gif
+
+tutorials.page-content.cdt.layout.ncolumns = 2
+tutorials.page-content.cdt.hello-world.link-icon = css/graphics/obj_48/cdtdev_obj.gif
+
+overview.subtitle-id = overview/page-content/page-title
+overview.description-id = overview/page-content/page-description
diff --git a/releng/org.eclipse.cdt/overviewExtensionContent.xml b/releng/org.eclipse.cdt/overviewExtensionContent.xml
new file mode 100644
index 0000000000..eb8347b786
--- /dev/null
+++ b/releng/org.eclipse.cdt/overviewExtensionContent.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<introContent>
+ <!-- Extension to the SDK Overview Page. -->
+ <extensionContent alt-style="css/swt.properties" style="css/overview.css" path="overview/page-content/overview-links/endAnchor">
+<!--
+ <link label="CDT Overview" url="http://org.eclipse.ui.intro/showPage?id=cdtoverview" id="cdt">
+ <text>Find out what CDT is all about</text>
+ </link>
+-->
+ <link label="C/C++ Online Docs" url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.eclipse.cdt.doc.user/concepts/cdt_o_concepts.htm" id="cdt">
+ <text>Open the online documentation for the CDT</text>
+ </link>
+ </extensionContent>
+<!--
+ <page alt-style="css/swt.properties" style="css/overview.css" id="cdtoverview" style-id="page">
+ <title style-id="intro-header">Welcome to CDT 2.0</title>
+ <group id="links-background">
+ <group id="page-links">
+ <link label="C/C++ development" url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.eclipse.cdt.doc.user/concepts/cdt_o_concepts.htm" id="cdt">
+ <text>Get familiar with developing C++ programs using Eclipse</text>
+ </link>
+ </group>
+ </group>
+ <group id="action-links">
+ <link url="http://org.eclipse.ui.intro/close" label="Workbench" id="workbench">
+ <text>Go to the workbench</text>
+ </link>
+ </group>
+ </page>
+-->
+</introContent>
diff --git a/releng/org.eclipse.cdt/plugin.properties b/releng/org.eclipse.cdt/plugin.properties
index 01342fd4c9..5191fe1eed 100644
--- a/releng/org.eclipse.cdt/plugin.properties
+++ b/releng/org.eclipse.cdt/plugin.properties
@@ -1,2 +1,4 @@
pluginName=Eclipse C/C++ Development Tools
-providerName=Eclipse.org \ No newline at end of file
+providerName=Eclipse.org
+cheatsheet.helloworld.desc=Create a Hello World Program in C++
+cheatsheet.helloworld.name=Hello World \ No newline at end of file
diff --git a/releng/org.eclipse.cdt/plugin.xml b/releng/org.eclipse.cdt/plugin.xml
index 473527e476..213d6017b5 100644
--- a/releng/org.eclipse.cdt/plugin.xml
+++ b/releng/org.eclipse.cdt/plugin.xml
@@ -5,7 +5,40 @@
name="%pluginName"
version="2.0.0"
provider-name="%providerName">
+ <requires>
+ <import plugin="org.eclipse.ui.intro"/>
+ <import plugin="org.eclipse.ui.cheatsheets"/>
+ </requires>
+ <extension
+ point="org.eclipse.ui.intro.configExtension">
+ <configExtension
+ configId="org.eclipse.platform.introConfig"
+ content="$nl$/overviewExtensionContent.xml"/>
+
+ <configExtension
+ configId="org.eclipse.platform.introConfig"
+ content="$nl$/tutorialsExtensionContent.xml"/>
+
+ <configExtension
+ configId="org.eclipse.platform.introConfig"
+ content="$nl$/samplesExtensionContent.xml"/>
+
+ <configExtension
+ configId="org.eclipse.platform.introConfig"
+ content="$nl$/whatsNewExtensionContent.xml"/>
+
+ </extension>
+
+ <extension point="org.eclipse.ui.cheatsheets.cheatSheetContent">
+ <cheatsheet
+ name="%cheatsheet.helloworld.name"
+ contentFile="$nl$/cheatsheets/HelloWorld.xml"
+ id="org.eclipse.cdt.helloworld">
+ <description>%cheatsheet.helloworld.desc</description>
+ </cheatsheet>
+
+ </extension>
<runtime>
</runtime>
diff --git a/releng/org.eclipse.cdt/samplesExtensionContent.xml b/releng/org.eclipse.cdt/samplesExtensionContent.xml
new file mode 100644
index 0000000000..2efd162109
--- /dev/null
+++ b/releng/org.eclipse.cdt/samplesExtensionContent.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<introContent>
+ <!-- Extension to the SDK Samples Page. -->
+ <extensionContent path="samples/page-content/endAnchor">
+ <!--
+ <group label="C/C++" id="workbench" style-id="samples-group">
+ <link label="C/C++ Sample program" url="http://org.eclipse.ui.intro/runAction?pluginId=org.eclipse.pde.ui&amp;class=org.eclipse.pde.ui.internal.samples.ShowSampleAction&amp;id=org.eclipse.sdk.samples.javaeditor" id="java-editor" style-id="sample-link">
+ <text>Demonstrates standard features available to the CDT</text>
+ </link>
+ </group>
+ -->
+ </extensionContent>
+</introContent>
diff --git a/releng/org.eclipse.cdt/tutorialsExtensionContent.xml b/releng/org.eclipse.cdt/tutorialsExtensionContent.xml
new file mode 100644
index 0000000000..5287d5c06f
--- /dev/null
+++ b/releng/org.eclipse.cdt/tutorialsExtensionContent.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<introContent>
+ <!-- Extension to the SDK Tutorials Page. -->
+ <extensionContent alt-style="css/swt.properties" style="css/overview.css" path="tutorials/page-content/endAnchor">
+ <group label="C/C++ Development" id="java" style-id="tutorials-group">
+ <!--
+ <link
+ url="http://org.eclipse.ui.intro/showStandby?partId=org.eclipse.platform.cheatsheet&amp;input=org.eclipse.cdt.helloworld"
+ label="CheatSheet to Build a simple C/C++ application"
+ id="hello-world-cdt"
+ style-id="tutorials-link">
+ <text>Create a small C/C++ program that will print "Hello, World" on the console</text>
+ </link>
+ -->
+ <link
+ label="CDT Tutorials"
+ url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.eclipse.cdt.doc.user/getting_started/cdt_o_tutorial.htm"
+ id="hello-world-cdt"
+ style-id="tutorials-link">
+ <text>Go to the online help to see the tutorials</text>
+ </link>
+ </group>
+ </extensionContent>
+</introContent>
diff --git a/releng/org.eclipse.cdt/welcome.xml b/releng/org.eclipse.cdt/welcome.xml
deleted file mode 100644
index 9a167a6d86..0000000000
--- a/releng/org.eclipse.cdt/welcome.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<welcomePage
- title="Eclipse C/C++ Development Tools (CDT)">
- <intro>The CDT project provides a set of plugins that implement a C/C++ IDE.
-It adds a C/C++ Perspective to the Eclipse Workbench that supports C/C++ development
-with a number of views, wizards, a powerful editor, and a debugger. The CDT is designed
-to provide an extensible architecture, that will provide support for integration of tools
-provided by Independent Software Vendors.
-
-This page will help familiarize you with the Eclipse C/C++ development tooling.
-To get started, read the sections below and click on the related links. </intro>
-
- <item><b>The C/C++ perspective </b>
-To open the C/C++ perspective: Click <b>Window > Open Perspective > C/C++ Development. </b></item>
-
- <item><b>What's new </b>
-Learn about the new features in this version of the CDT.
- <topic href="/org.eclipse.cdt.doc.user/cdt_c_whatsnew.htm">What's new </topic></item>
-
- <item><b>CDT Tutorial </b>
-This quick tutorial guides you through the basic steps to get started.
- <topic href="/org.eclipse.cdt.doc.user/cdt_o_tutorial.htm">Tutorial </topic></item>
-
- <item><b>CppUnit integration and other contributed plugins </b>
-Visit the <topic href="http://www.eclipse.org/cdt/">CDT Community Webpage</topic> to find a list of contributed plugins
-and a CppUnit integration in the CDT.</item>
-
-
-</welcomePage>
diff --git a/releng/org.eclipse.cdt/whatsNewExtensionContent.xml b/releng/org.eclipse.cdt/whatsNewExtensionContent.xml
new file mode 100644
index 0000000000..27ec5aaa64
--- /dev/null
+++ b/releng/org.eclipse.cdt/whatsNewExtensionContent.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<introContent>
+ <!-- Extension to the SDK Overview Page. -->
+ <extensionContent path="news/page-content/endAnchor">
+ <group id="news-links">
+ <link label="C/C++" url="http://org.eclipse.ui.intro/showHelpTopic?id=/org.eclipse.cdt.doc.user/concepts/cdt_c_whatsnew.htm" id="new-and-noteworthy">
+ <text>What's new with the CDT</text>
+ </link>
+ </group>
+ </extensionContent>
+</introContent>

Back to the top