Skip to contentSkip to conversation

Cheat sheet for hello world project

RFC Superseded Atanas Gegov 2 participants 6 messages Jul 24, 2012 – Aug 1, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Cheat sheet for hello world project

From: Atanas Gegov <[email protected]>

Hi,

currently the adt manual contains a description of how to create a new project (chapter 4.2). Also some videos are explaining how to achieve this. Eclipse provides a nice way of interactive tutorials with the cheat sheets and I thought it would be nice to have this kind of user help. So I have created a cheat sheet for the 'Hello World C++ Autotools Project' project delivered with the yocto ide. It guides the user through the process of creating and building the hello world project. Some operations such as changing to the C/C++ perspective can even be automated helping the user to get started with the project.

Cheers, Atanas

Atanas Gegov (3):
plugins/sdk.ide.doc.user: Added plugin for ide specific user help feature/sdk: Added user doc plugin plugins/sdk.ide.doc.user: Added cheat sheet for hello world project

 features/org.yocto.sdk/feature.xml                 |    8 +
 plugins/org.yocto.sdk.ide.doc.user/.classpath      |    6 +
 plugins/org.yocto.sdk.ide.doc.user/.project        |   28 +++
 .../.settings/org.eclipse.jdt.core.prefs           |    8 +
 .../META-INF/MANIFEST.MF                           |    8 +
 .../OSGI-INF/l10n/bundle.properties                |    7 +
 .../org.yocto.sdk.ide.doc.user/build.properties    |    6 +
 .../cheatsheets/createNewHelloWorldProject.xml     |  187 ++++++++++++++++++++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |   13 ++
 9 files changed, 271 insertions(+), 0 deletions(-)
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.classpath
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.project
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.settings/org.eclipse.jdt.core.prefs
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/META-INF/MANIFEST.MF
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/OSGI-INF/l10n/bundle.properties
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/build.properties
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/cheatsheets/createNewHelloWorldProject.xml
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/plugin.xml
Signature · 1 line
1.7.5.4
#1 lore raw

RFC 1/3 plugins/sdk.ide.doc.user: Added plugin for ide specific user help

From: Atanas Gegov <[email protected]>

This currently empty plugin will in the future contain yocto ide specific user help documents such as eclipse help documents or cheat sheets.

---
 plugins/org.yocto.sdk.ide.doc.user/.classpath      |    6 ++++
 plugins/org.yocto.sdk.ide.doc.user/.project        |   28 ++++++++++++++++++++
 .../.settings/org.eclipse.jdt.core.prefs           |    8 +++++
 .../META-INF/MANIFEST.MF                           |    7 +++++
 .../OSGI-INF/l10n/bundle.properties                |    3 ++
 .../org.yocto.sdk.ide.doc.user/build.properties    |    4 +++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |    4 +++
 7 files changed, 60 insertions(+), 0 deletions(-)
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.classpath
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.project
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.settings/org.eclipse.jdt.core.prefs
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/META-INF/MANIFEST.MF
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/OSGI-INF/l10n/bundle.properties
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/build.properties
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/plugin.xml
plugins/org.yocto.sdk.ide.doc.user/.classpath new file +6 -0
new file mode 100644
index 0000000..bc74aab
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>
plugins/org.yocto.sdk.ide.doc.user/.project new file +28 -0
new file mode 100644
index 0000000..ccc3e39
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.yocto.sdk.ide.doc.user</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>
plugins/org.yocto.sdk.ide.doc.user/.settings/org.eclipse.jdt.core.prefs new file +8 -0
new file mode 100644
index 0000000..f90fa9c
@@ -0,0 +1,8 @@
+#Fri Mar 04 13:59:33 CET 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
plugins/org.yocto.sdk.ide.doc.user/META-INF/MANIFEST.MF new file +7 -0
new file mode 100644
index 0000000..1c8ae05
@@ -0,0 +1,7 @@
+XFManifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name
+Bundle-SymbolicName: org.yocto.sdk.ide.doc.user;singleton:=true
+Bundle-Version: 1.2.0.qualifier
+Bundle-Vendor: %Bundle-Vendor
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
plugins/org.yocto.sdk.ide.doc.user/OSGI-INF/l10n/bundle.properties new file +3 -0
new file mode 100644
index 0000000..99f8fce
@@ -0,0 +1,3 @@
+#Properties file for org.yocto.sdk.ide.doc.user
+Bundle-Vendor = yoctoproject.org
+Bundle-Name = Yocto User Help
plugins/org.yocto.sdk.ide.doc.user/build.properties new file +4 -0
new file mode 100644
index 0000000..31e0140
@@ -0,0 +1,4 @@
+bin.includes = plugin.xml,\
+               .,\
+               META-INF/,\
+               OSGI-INF/
plugins/org.yocto.sdk.ide.doc.user/plugin.xml new file +4 -0
new file mode 100644
index 0000000..f422d55
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+</plugin>
Signature · 1 line
1.7.5.4
#2 lore raw

RFC 2/3 feature/sdk: Added user doc plugin

In reply to Atanas Gegov

From: Atanas Gegov <[email protected]>

The added doc plugin org.yocto.sdk.ide.doc.user will provide help contents for this feature (e.g help documents, cheat sheets).

---
 features/org.yocto.sdk/feature.xml |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
features/org.yocto.sdk/feature.xml +8 -0
index 785a7be..e82cec2 100644
@@ -8,6 +8,7 @@
    
     Contributors:
         Intel - initial API and implementation
+        BMW Car IT - added user documentation plugin to the feature
  -->
 <feature
       id="org.yocto.sdk"
@@ -93,4 +94,11 @@
          version="0.0.0"
          unpack="false"/>
 
+   <plugin
+         id="org.yocto.sdk.ide.doc.user"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         unpack="false"/>
+
 </feature>
Signature · 1 line
1.7.5.4
#3 lore raw

RFC 3/3 plugins/sdk.ide.doc.user: Added cheat sheet for hello world project

In reply to Atanas Gegov

From: Atanas Gegov <[email protected]>

The cheat sheet added provides an interactive tutorial for creating and building the 'Hello World C++ Autotools Project' provided with the yocto ide. The tutorial starts of by configuring the yocto project settings and then guides the user through the process of creating and finally building the project.

---
 .../META-INF/MANIFEST.MF                           |    1 +
 .../OSGI-INF/l10n/bundle.properties                |    4 +
 .../org.yocto.sdk.ide.doc.user/build.properties    |    4 +-
 .../cheatsheets/createNewHelloWorldProject.xml     |  187 ++++++++++++++++++++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |    9 +
 5 files changed, 204 insertions(+), 1 deletions(-)
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/cheatsheets/createNewHelloWorldProject.xml
plugins/org.yocto.sdk.ide.doc.user/META-INF/MANIFEST.MF +1 -0
index 1c8ae05..87079ce 100644
@@ -5,3 +5,4 @@ Bundle-SymbolicName: org.yocto.sdk.ide.doc.user;singleton:=true
 Bundle-Version: 1.2.0.qualifier
 Bundle-Vendor: %Bundle-Vendor
 Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.eclipse.ui.cheatsheets
plugins/org.yocto.sdk.ide.doc.user/OSGI-INF/l10n/bundle.properties +4 -0
index 99f8fce..9c77778 100644
@@ -1,3 +1,7 @@
 #Properties file for org.yocto.sdk.ide.doc.user
 Bundle-Vendor = yoctoproject.org
 Bundle-Name = Yocto User Help
+
+category.name = Yocto Project
+
+cheatsheet.name = Creating a Hello World C++ Autotools Project
\ No newline at end of file
plugins/org.yocto.sdk.ide.doc.user/build.properties +3 -1
index 31e0140..caf850b 100644
@@ -1,4 +1,6 @@
 bin.includes = plugin.xml,\
                .,\
                META-INF/,\
-               OSGI-INF/
+               OSGI-INF/,\
+               cheatsheets/
+src.includes = cheatsheets/
plugins/org.yocto.sdk.ide.doc.user/cheatsheets/createNewHelloWorldProject.xml new file +187 -0

187 lines not on this page · raw message

plugins/org.yocto.sdk.ide.doc.user/plugin.xml +9 -0
index f422d55..24c539d 100644
@@ -1,4 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.4"?>
 <plugin>
+	<extension point="org.eclipse.ui.cheatsheets.cheatSheetContent">
+		<category id="org.yocto.sdk.ide.doc.user.cheatsheets" name="%category.name">
+		</category>
+		<cheatsheet category="org.yocto.sdk.ide.doc.user.cheatsheets"
+			composite="false" contentFile="cheatsheets/createNewHelloWorldProject.xml"
+			id="org.yocto.sdk.ide.doc.user.cheatsheet.helloworldProject"
+			name="%cheatsheet.name">
+		</cheatsheet>
+	</extension>
 </plugin>
Signature · 1 line
1.7.5.4
#4 lore raw
In reply to Atanas Gegov

Hi Atanas,

This patch set looks nice, couple comments:

1. Is it just meant for C++ project since it's applicable to C project as well
2. I'd think this should be targeted for the upcoming 1.3 release that's targeted for Oct.. For 1.3 release we are based on the latest Juno release and also, there's a new feature added for SDK which makes it rellocatable which is under patch review atm. I'd suggest you follow bug 2383 once it's marked resolved, which means the patch is merged into master. Then pull down the latest master and the latest Eclipse plug-in to capture the latest behavior and update the cheatsheet contents accordingly.

Thanks,
Jessica

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Atanas Gegov
Sent: Tuesday, July 24, 2012 8:54 AM
To: [email protected]
Subject: [yocto] [RFC 0/3] Cheat sheet for hello world project

From: Atanas Gegov <[email protected]>

Hi,

currently the adt manual contains a description of how to create a new project (chapter 4.2). Also some videos are explaining how to achieve this. Eclipse provides a nice way of interactive tutorials with the cheat sheets and I thought it would be nice to have this kind of user help. So I have created a cheat sheet for the 'Hello World C++ Autotools Project' project delivered with the yocto ide. It guides the user through the process of creating and building the hello world project. Some operations such as changing to the C/C++ perspective can even be automated helping the user to get started with the project.

Cheers, Atanas

Atanas Gegov (3):
plugins/sdk.ide.doc.user: Added plugin for ide specific user help feature/sdk: Added user doc plugin plugins/sdk.ide.doc.user: Added cheat sheet for hello world project

 features/org.yocto.sdk/feature.xml                 |    8 +
 plugins/org.yocto.sdk.ide.doc.user/.classpath      |    6 +
 plugins/org.yocto.sdk.ide.doc.user/.project        |   28 +++
 .../.settings/org.eclipse.jdt.core.prefs           |    8 +
 .../META-INF/MANIFEST.MF                           |    8 +
 .../OSGI-INF/l10n/bundle.properties                |    7 +
 .../org.yocto.sdk.ide.doc.user/build.properties    |    6 +
 .../cheatsheets/createNewHelloWorldProject.xml     |  187 ++++++++++++++++++++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |   13 ++
 9 files changed, 271 insertions(+), 0 deletions(-)  create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.classpath
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.project
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.settings/org.eclipse.jdt.core.prefs
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/META-INF/MANIFEST.MF
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/OSGI-INF/l10n/bundle.properties
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/build.properties
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/cheatsheets/createNewHelloWorldProject.xml
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/plugin.xml

--
1.7.5.4

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#5 lore raw

Hi Jessica,
Thank you for the feedack and the comments!
1. I did the cheat sheet for the "Hello World C++ Autotools Project". I did not consider the "Hello World ANSI C Autotools Project". Now I will have a look how to improve this - write an additional cheat sheet for the second project or adapt my cheat sheet to be genereic enough for both projects.
2. By now the patches apply and work both for "master" and for "master-indigo". I will follow
https://bugzilla.yoctoproject.org/show_bug.cgi?id=2383 and adapt the cheat sheet's content when the bug is resloved.

Cheers,
Atanas

Quoted 76 lines · Jessica

Hi Atanas,

This patch set looks nice, couple comments:

1. Is it just meant for C++ project since it's applicable to C project as well
2. I'd think this should be targeted for the upcoming 1.3 release that's targeted for Oct.. For 1.3 release we are based on the latest Juno release and also, there's a new feature added for SDK which makes it rellocatable which is under patch review atm. I'd suggest you follow bug 2383 once it's marked resolved, which means the patch is merged into master. Then pull down the latest master and the latest Eclipse plug-in to capture the latest behavior and update the cheatsheet contents accordingly.

Thanks,
Jessica

-----Original Message-----
From: [email protected] [mailto:
[email protected]] On Behalf Of Atanas Gegov
Sent: Tuesday, July 24, 2012 8:54 AM
To: [email protected]
Subject: [yocto] [RFC 0/3] Cheat sheet for hello world project

From: Atanas Gegov <[email protected]>

Hi,

currently the adt manual contains a description of how to create a new project (chapter 4.2). Also some videos are explaining how to achieve this. Eclipse provides a nice way of interactive tutorials with the cheat sheets and I thought it would be nice to have this kind of user help. So I have created a cheat sheet for the 'Hello World C++ Autotools Project' project delivered with the yocto ide. It guides the user through the process of creating and building the hello world project. Some operations such as changing to the C/C++ perspective can even be automated helping the user to get started with the project.

Cheers, Atanas

Atanas Gegov (3):
plugins/sdk.ide.doc.user: Added plugin for ide specific user help feature/sdk: Added user doc plugin plugins/sdk.ide.doc.user: Added cheat sheet for hello world project

 features/org.yocto.sdk/feature.xml                 |    8 +
 plugins/org.yocto.sdk.ide.doc.user/.classpath      |    6 +
 plugins/org.yocto.sdk.ide.doc.user/.project        |   28 +++
 .../.settings/org.eclipse.jdt.core.prefs           |    8 +
 .../META-INF/MANIFEST.MF                           |    8 +
 .../OSGI-INF/l10n/bundle.properties                |    7 +
 .../org.yocto.sdk.ide.doc.user/build.properties    |    6 +
 .../cheatsheets/createNewHelloWorldProject.xml     |  187
++++++++++++++++++++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |   13 ++
 9 files changed, 271 insertions(+), 0 deletions(-)  create mode 100644
plugins/org.yocto.sdk.ide.doc.user/.classpath
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/.project
 create mode 100644
plugins/org.yocto.sdk.ide.doc.user/.settings/org.eclipse.jdt.core.prefs
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/META-INF/MANIFEST.MF
 create mode 100644
plugins/org.yocto.sdk.ide.doc.user/OSGI-INF/l10n/bundle.properties
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/build.properties
 create mode 100644
plugins/org.yocto.sdk.ide.doc.user/cheatsheets/createNewHelloWorldProject.xml
 create mode 100644 plugins/org.yocto.sdk.ide.doc.user/plugin.xml

--
1.7.5.4

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto