1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Patch for Dave Daoust to enable Welcome content.

This commit is contained in:
Doug Schaefer 2004-06-14 14:12:38 +00:00
parent 85be18a5f9
commit 7996df4a59
12 changed files with 206 additions and 33 deletions

View file

@ -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

View file

@ -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>

View file

@ -0,0 +1 @@
GIF89a4

After

Width:  |  Height:  |  Size: 7 B

View file

@ -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);
}

View file

@ -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

View file

@ -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>

View file

@ -1,2 +1,4 @@
pluginName=Eclipse C/C++ Development Tools
providerName=Eclipse.org
providerName=Eclipse.org
cheatsheet.helloworld.desc=Create a Hello World Program in C++
cheatsheet.helloworld.name=Hello World

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>