Skip to contentSkip to conversation

Cheat sheet for hello world project

RFC In review Atanas Gegov 2 participants 5 messages Oct 4, 2012 – Oct 9, 2012

lore
Share & tools
lore
#0 lore raw

v2 cover Cheat sheet for hello world project

From: Atanas Gegov <[email protected]>

Hi Jessica,

Please excuse my late reaction, but I was on vacation in August and had some high-priority organisational issues at work in Septmeber. I improved the cheat sheet accroding to your feedback. I used conditional subitems to make it both fit for the "Hello World C++ Autotools Project" and the "Hello World ANSI C Project". The user can now choose its preferred programming language and the cheat sheet adapts itself accordingly. I also took into account that the SDK is now relocatable.

The patches apply both on the "master" and on the "master-indigo" branches.

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     |  222 ++++++++++++++++++++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |   13 ++
 9 files changed, 306 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 v2 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 v2 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 v2 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     |  222 ++++++++++++++++++++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |    9 +
 5 files changed, 239 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..2cf9956 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 ANSI C or C++ Autotools Project
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 +222 -0

222 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,

The patch set is merged to eclipse-poky master, thanks for the contribution.

Cheers,
Jessica

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Atanas Gegov
Sent: Thursday, October 04, 2012 7:54 AM
To: [email protected]
Subject: [yocto] [RFCv2 0/3] [eclipse-poky] Cheat sheet for hello world project

From: Atanas Gegov <[email protected]>

Hi Jessica,

Please excuse my late reaction, but I was on vacation in August and had some high-priority organisational issues at work in Septmeber. I improved the cheat sheet accroding to your feedback. I used conditional subitems to make it both fit for the "Hello World C++ Autotools Project" and the "Hello World ANSI C Project". The user can now choose its preferred programming language and the cheat sheet adapts itself accordingly. I also took into account that the SDK is now relocatable.

The patches apply both on the "master" and on the "master-indigo" branches.

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     |  222 ++++++++++++++++++++
 plugins/org.yocto.sdk.ide.doc.user/plugin.xml      |   13 ++
 9 files changed, 306 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