summaryrefslogtreecommitdiffstats
path: root/org.rtems.cdt
diff options
context:
space:
mode:
authorDaron Chabot <daron.chabot@gmail.com>2009-02-25 03:43:47 +0000
committerDaron Chabot <daron.chabot@gmail.com>2009-02-25 03:43:47 +0000
commit8e6327a29be44c3284327abc02928b33dea09088 (patch)
tree0b20b7a14a8557e0b93bfd5a53a191347095cac8 /org.rtems.cdt
parentImproved error messages. (diff)
downloadrtems-eclipse-plug-in-8e6327a29be44c3284327abc02928b33dea09088.tar.bz2
Addition of Hello World template and RTEMS icons to preference page and About Eclipse dialog.
Diffstat (limited to 'org.rtems.cdt')
-rw-r--r--org.rtems.cdt/META-INF/MANIFEST.MF2
-rw-r--r--org.rtems.cdt/about.ini7
-rw-r--r--org.rtems.cdt/about.mappings3
-rw-r--r--org.rtems.cdt/about.properties14
-rw-r--r--org.rtems.cdt/build.properties7
-rw-r--r--org.rtems.cdt/icons/rtems_logo-128x128.pngbin0 -> 21678 bytes
-rw-r--r--org.rtems.cdt/icons/rtems_logo-32x32.pngbin0 -> 2188 bytes
-rw-r--r--org.rtems.cdt/icons/rtems_logo-48x48.pngbin0 -> 4122 bytes
-rw-r--r--org.rtems.cdt/icons/rtems_logo-64x32.pngbin0 -> 5804 bytes
-rw-r--r--org.rtems.cdt/icons/rtems_logo-64x64.pngbin0 -> 6526 bytes
-rw-r--r--org.rtems.cdt/icons/rtems_logo.pngbin0 -> 35353 bytes
-rw-r--r--org.rtems.cdt/plugin.xml20
-rw-r--r--org.rtems.cdt/src/org/rtems/cdt/preferences/PreferencePage.java2
-rw-r--r--org.rtems.cdt/templates/hello/src/init.c36
-rw-r--r--org.rtems.cdt/templates/hello/src/system.h40
-rw-r--r--org.rtems.cdt/templates/hello/template.properties3
-rw-r--r--org.rtems.cdt/templates/hello/template.xml51
17 files changed, 178 insertions, 7 deletions
diff --git a/org.rtems.cdt/META-INF/MANIFEST.MF b/org.rtems.cdt/META-INF/MANIFEST.MF
index 04bf62d..21dd38f 100644
--- a/org.rtems.cdt/META-INF/MANIFEST.MF
+++ b/org.rtems.cdt/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: RTEMS CDT Plug-in
Bundle-SymbolicName: org.rtems.cdt;singleton:=true
-Bundle-Version: 1.0.1
+Bundle-Version: 1.1.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Require-Bundle: org.eclipse.cdt.managedbuilder.core,
org.eclipse.swt,
diff --git a/org.rtems.cdt/about.ini b/org.rtems.cdt/about.ini
new file mode 100644
index 0000000..8f5761d
--- /dev/null
+++ b/org.rtems.cdt/about.ini
@@ -0,0 +1,7 @@
+# about.ini
+# contains info about the RTEMS CDT support feature.
+# "%key" are externalized strings defined in about.properties
+
+aboutText=%about
+
+featureImage=icons/rtems_logo-32x32.png \ No newline at end of file
diff --git a/org.rtems.cdt/about.mappings b/org.rtems.cdt/about.mappings
new file mode 100644
index 0000000..9bdadf0
--- /dev/null
+++ b/org.rtems.cdt/about.mappings
@@ -0,0 +1,3 @@
+
+# version number
+0=1.1.0 \ No newline at end of file
diff --git a/org.rtems.cdt/about.properties b/org.rtems.cdt/about.properties
new file mode 100644
index 0000000..fe3665d
--- /dev/null
+++ b/org.rtems.cdt/about.properties
@@ -0,0 +1,14 @@
+# about.properties
+# contains externalized strings utilized within about.properties
+# fill-ins (e.g. {0}) are supplied by about.mappings
+
+about=RTEMS CDT Support\n\
+\n\
+Version: {0}\n\
+\n\
+(c) Embedded Brains GmbH and others. 2008, 2009. All rights reserved.\n\
+Visit http://www.rtems.com\n\
+\n\
+This offering is powered by Eclipse technology and includes\n\
+Eclipse plug-ins that can be installed and used with other\n\
+Eclipse (3.4)-based offerings. \ No newline at end of file
diff --git a/org.rtems.cdt/build.properties b/org.rtems.cdt/build.properties
index f0f1974..8b13789 100644
--- a/org.rtems.cdt/build.properties
+++ b/org.rtems.cdt/build.properties
@@ -1,6 +1 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- license.html
+
diff --git a/org.rtems.cdt/icons/rtems_logo-128x128.png b/org.rtems.cdt/icons/rtems_logo-128x128.png
new file mode 100644
index 0000000..0d908d0
--- /dev/null
+++ b/org.rtems.cdt/icons/rtems_logo-128x128.png
Binary files differ
diff --git a/org.rtems.cdt/icons/rtems_logo-32x32.png b/org.rtems.cdt/icons/rtems_logo-32x32.png
new file mode 100644
index 0000000..9eb92b6
--- /dev/null
+++ b/org.rtems.cdt/icons/rtems_logo-32x32.png
Binary files differ
diff --git a/org.rtems.cdt/icons/rtems_logo-48x48.png b/org.rtems.cdt/icons/rtems_logo-48x48.png
new file mode 100644
index 0000000..7dad6ad
--- /dev/null
+++ b/org.rtems.cdt/icons/rtems_logo-48x48.png
Binary files differ
diff --git a/org.rtems.cdt/icons/rtems_logo-64x32.png b/org.rtems.cdt/icons/rtems_logo-64x32.png
new file mode 100644
index 0000000..0251a60
--- /dev/null
+++ b/org.rtems.cdt/icons/rtems_logo-64x32.png
Binary files differ
diff --git a/org.rtems.cdt/icons/rtems_logo-64x64.png b/org.rtems.cdt/icons/rtems_logo-64x64.png
new file mode 100644
index 0000000..0a440c5
--- /dev/null
+++ b/org.rtems.cdt/icons/rtems_logo-64x64.png
Binary files differ
diff --git a/org.rtems.cdt/icons/rtems_logo.png b/org.rtems.cdt/icons/rtems_logo.png
new file mode 100644
index 0000000..ddd0bae
--- /dev/null
+++ b/org.rtems.cdt/icons/rtems_logo.png
Binary files differ
diff --git a/org.rtems.cdt/plugin.xml b/org.rtems.cdt/plugin.xml
index 9eabb6a..d141430 100644
--- a/org.rtems.cdt/plugin.xml
+++ b/org.rtems.cdt/plugin.xml
@@ -386,4 +386,24 @@
</enabledWhen>
</page>
</extension>
+ <extension
+ point="org.eclipse.cdt.core.templates">
+ <template
+ id="org.rtems.cdt.template.hello"
+ location="$nl$/templates/hello/template.xml"
+ projectType="org.eclipse.cdt.build.core.buildArtefactType.exe">
+ </template>
+ </extension>
+ <extension
+ point="org.eclipse.cdt.core.templateAssociations">
+ <template
+ id="org.rtems.cdt.template.hello">
+ <toolChain
+ id="org.rtems.cdt.toolchain">
+ </toolChain>
+ <toolChain
+ id="org.rtems.cdt.toolchain.cygwin">
+ </toolChain>
+ </template>
+ </extension>
</plugin>
diff --git a/org.rtems.cdt/src/org/rtems/cdt/preferences/PreferencePage.java b/org.rtems.cdt/src/org/rtems/cdt/preferences/PreferencePage.java
index c56379a..de9cb5d 100644
--- a/org.rtems.cdt/src/org/rtems/cdt/preferences/PreferencePage.java
+++ b/org.rtems.cdt/src/org/rtems/cdt/preferences/PreferencePage.java
@@ -25,6 +25,7 @@ package org.rtems.cdt.preferences;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.rtems.cdt.Activator;
@@ -37,6 +38,7 @@ public class PreferencePage
super( GRID);
setPreferenceStore( Activator.getDefault().getPreferenceStore());
setDescription( "Select the RTEMS base installation path and the board support package (BSP) installation path. This provides the default values for all projects.");
+ setImageDescriptor(Activator.imageDescriptorFromPlugin("org.rtems.cdt", "icons/rtems_logo-64x64.png"));
}
public void createFieldEditors() {
diff --git a/org.rtems.cdt/templates/hello/src/init.c b/org.rtems.cdt/templates/hello/src/init.c
new file mode 100644
index 0000000..e02a23c
--- /dev/null
+++ b/org.rtems.cdt/templates/hello/src/init.c
@@ -0,0 +1,36 @@
+/* Init
+ *
+ * This routine is the initialization task for this test program.
+ * It is called from init_exec and has the responsibility for creating
+ * and starting the tasks that make up the test. If the time of day
+ * clock is required for the test, it should also be set to a known
+ * value by this function.
+ *
+ * Input parameters: NONE
+ *
+ * Output parameters: NONE
+ *
+ * COPYRIGHT (c) 1989-1999.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#define CONFIGURE_INIT
+#include "system.h"
+#include <stdio.h>
+#include <stdlib.h>
+
+rtems_task Init(
+ rtems_task_argument ignored
+)
+{
+ printf( "\n\n*** HELLO WORLD TEST ***\n" );
+ printf( "Hello World\n" );
+ printf( "*** END OF HELLO WORLD TEST ***\n" );
+ exit( 0 );
+}
diff --git a/org.rtems.cdt/templates/hello/src/system.h b/org.rtems.cdt/templates/hello/src/system.h
new file mode 100644
index 0000000..a4ac1a5
--- /dev/null
+++ b/org.rtems.cdt/templates/hello/src/system.h
@@ -0,0 +1,40 @@
+/* system.h
+ *
+ * This include file contains information that is included in every
+ * function in the test set.
+ *
+ * COPYRIGHT (c) 1989-1999.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#include <rtems.h>
+
+/* functions */
+
+rtems_task Init(
+ rtems_task_argument argument
+);
+
+/* configuration information */
+
+#include <bsp.h> /* for device driver prototypes */
+
+/* NOTICE: the clock driver is explicitly disabled */
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS 1
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
+
+#include <rtems/confdefs.h>
+
+/* end of include file */
diff --git a/org.rtems.cdt/templates/hello/template.properties b/org.rtems.cdt/templates/hello/template.properties
new file mode 100644
index 0000000..af22a9e
--- /dev/null
+++ b/org.rtems.cdt/templates/hello/template.properties
@@ -0,0 +1,3 @@
+#Template Default Values
+RTEMS.Hello.Template.Label=RTEMS Hello-World Project
+RTEMS.Hello.Template.Label.Description=The prototypical "Hello World" project. Creates a single folder for sources.
diff --git a/org.rtems.cdt/templates/hello/template.xml b/org.rtems.cdt/templates/hello/template.xml
new file mode 100644
index 0000000..5feb599
--- /dev/null
+++ b/org.rtems.cdt/templates/hello/template.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template type="ProjTempl" version="1.0"
+ supplier="www.rtems.com" revision="1.0"
+ author="chabotd"
+ copyright=""
+ id="RTEMSHelloWorldProject"
+ label="%RTEMS.Hello.Template.Label"
+ description="%RTEMS.Hello.Template.Label.Description"
+ help="help.html">
+
+ <property-group id="basics" label="RTEMS Hello-World Project" description="Specify per-project variables." type="PAGES-ONLY" help="help.html">
+ <property id="sourceDir"
+ label="Source"
+ description="Directory for project source files"
+ type="input"
+ default="src"
+ pattern="[a-zA-Z0-9]+"
+ mandatory="false"
+ persist="true">
+ </property>
+ </property-group>
+
+ <process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
+ <simple name="name" value="$(projectName)" />
+ <simple name="artifactExtension" value="exe" />
+ <simple name="isCProject" value="true" />
+ </process>
+
+ <process type="org.eclipse.cdt.core.CreateSourceFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="path" value="$(sourceDir)"/>
+ </process>
+
+ <process type="org.eclipse.cdt.core.AddFiles">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="files">
+ <element>
+ <simple name="source" value="src/init.c"/>
+ <simple name="target" value="$(sourceDir)/$(projectName).c"/>
+ <simple name="replaceable" value="true"/>
+ </element>
+ <element>
+ <simple name="source" value="src/system.h"/>
+ <simple name="target" value="$(sourceDir)/system.h"/>
+ <simple name="replaceable" value="true"/>
+ </element>
+ </complex-array>
+ </process>
+
+</template>
+