Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2014-05-07 07:44:11 +0000
committerAnsgar Radermacher2014-05-07 09:26:33 +0000
commit337a85fe99dd84101590a2876f302124a5920785 (patch)
treeb026273f4cd24d4b18bfbaa534024dd693da746b /extraplugins
parentc14c58734e1a4c26e8070f0f927f62ba17e5cf09 (diff)
downloadorg.eclipse.papyrus-337a85fe99dd84101590a2876f302124a5920785.tar.gz
org.eclipse.papyrus-337a85fe99dd84101590a2876f302124a5920785.tar.xz
org.eclipse.papyrus-337a85fe99dd84101590a2876f302124a5920785.zip
434285 - [C++ codegen] Provide a hello world example
Diffstat (limited to 'extraplugins')
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.classpath7
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.project28
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/META-INF/MANIFEST.MF12
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/about.html28
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/build.properties6
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.di21
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.notation135
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.uml115
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.properties12
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.xml15
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/Activator.java50
-rw-r--r--extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/HelloWorldOOModelWizard.java27
13 files changed, 463 insertions, 0 deletions
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.classpath b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.classpath
new file mode 100644
index 00000000000..ad32c83a788
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.classpath
@@ -0,0 +1,7 @@
+<?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="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.project b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.project
new file mode 100644
index 00000000000..3e3d8136716
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.cpp.examples</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>
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.settings/org.eclipse.jdt.core.prefs b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..c537b63063c
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+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
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/META-INF/MANIFEST.MF b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..a6fd3f52cc6
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.cpp.examples;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.eclipse.papyrus.cpp.examples.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.papyrus.uml.diagram.wizards;bundle-version="1.0.0"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-ActivationPolicy: lazy
+Bundle-Vendor: %pluginProvider
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/about.html b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/about.html
new file mode 100644
index 00000000000..209103075a7
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/about.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>November 14, 2008</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/build.properties b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/build.properties
new file mode 100644
index 00000000000..b67aba1a416
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/build.properties
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties,\
+ about.html
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.di b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.di
new file mode 100644
index 00000000000..b61e898b639
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.di
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmi:id="_M_WAwPcXEd-KM6l7lmIPkw">
+ <pageList xmi:id="_M_WAwfcXEd-KM6l7lmIPkw">
+ <availablePage xmi:id="_M_WAwvcXEd-KM6l7lmIPkw"/>
+ <availablePage xmi:id="_M_WAxPcXEd-KM6l7lmIPkw"/>
+ <availablePage xmi:id="_M_WAxfcXEd-KM6l7lmIPkw"/>
+ <availablePage xmi:id="_U1docPcXEd-KM6l7lmIPkw"/>
+ <availablePage xmi:id="_V5fVYP8nEd-hWJO6cv3VJA"/>
+ <availablePage/>
+ <availablePage/>
+ </pageList>
+ <sashModel xmi:id="_M_WAxvcXEd-KM6l7lmIPkw" currentSelection="_M_WAyPcXEd-KM6l7lmIPkw">
+ <windows xmi:id="_M_WAx_cXEd-KM6l7lmIPkw">
+ <children xsi:type="di:TabFolder" xmi:id="_M_WAyPcXEd-KM6l7lmIPkw">
+ <children>
+ <emfPageIdentifier href="HelloWorldOO.notation#_4fWAcMpkEeOpmd7vWBVZJQ"/>
+ </children>
+ </children>
+ </windows>
+ </sashModel>
+</di:SashWindowsMngr>
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.notation b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.notation
new file mode 100644
index 00000000000..09d8f4ed84c
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.notation
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:style="http://www.eclipse.org/papyrus/infra/viewpoints/policy/style" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmi:id="_4fWAcMpkEeOpmd7vWBVZJQ" type="PapyrusUMLClassDiagram" name="HelloWorld" measurementUnit="Pixel">
+ <children xmi:type="notation:Shape" xmi:id="_7IaUcMpkEeOpmd7vWBVZJQ" type="2008">
+ <children xmi:type="notation:DecorationNode" xmi:id="_7IcwsMpkEeOpmd7vWBVZJQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7IcwscpkEeOpmd7vWBVZJQ" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7IcwsspkEeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7Icws8pkEeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7IcwtMpkEeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7IcwtcpkEeOpmd7vWBVZJQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7IdXwMpkEeOpmd7vWBVZJQ" type="7018">
+ <children xmi:type="notation:Node" xmi:id="_8sZPsMpkEeOpmd7vWBVZJQ" type="3013">
+ <element xmi:type="uml:Operation" href="HelloWorldOO.uml#_UtCt0FTzEeKvFeqt5Q_lqw"/>
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_8sZPscpkEeOpmd7vWBVZJQ"/>
+ </children>
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7IdXwcpkEeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7IdXwspkEeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7IdXw8pkEeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7IdXxMpkEeOpmd7vWBVZJQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_7IdXxcpkEeOpmd7vWBVZJQ" visible="false" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_7IdXxspkEeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_7IdXx8pkEeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_7IdXyMpkEeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7IdXycpkEeOpmd7vWBVZJQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="HelloWorldOO.uml#_tyiqsc__Ed-TP80eVS-2Rg"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_7IaUccpkEeOpmd7vWBVZJQ" x="60" y="40" width="161" height="81"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_B_JiwMplEeOpmd7vWBVZJQ" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_B_JiwsplEeOpmd7vWBVZJQ" type="5038"/>
+ <element xmi:type="uml:Comment" href="HelloWorldOO.uml#_-Hd2MDecEeGPyrZ5I3hMlA"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_B_JiwcplEeOpmd7vWBVZJQ" x="340" y="51" width="301" height="51"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_l7o-oMq6EeOpmd7vWBVZJQ" type="2008">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_KTuEwMrYEeOpmd7vWBVZJQ" source="Stereotype_Annotation">
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KTuEwcrYEeOpmd7vWBVZJQ" key="StereotypeWithQualifiedNameList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KTuEwsrYEeOpmd7vWBVZJQ" key="StereotypeList" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KTuEw8rYEeOpmd7vWBVZJQ" key="Stereotype_Presentation_Kind" value="HorizontalStereo"/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KTuExMrYEeOpmd7vWBVZJQ" key="PropStereoDisplay" value=""/>
+ <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_KTur0MrYEeOpmd7vWBVZJQ" key="StereotypePropertyLocation" value="Compartment"/>
+ </eAnnotations>
+ <children xmi:type="notation:DecorationNode" xmi:id="_l7o-osq6EeOpmd7vWBVZJQ" type="5029"/>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_l7o-o8q6EeOpmd7vWBVZJQ" type="7017">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_l7o-pMq6EeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_l7o-pcq6EeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_l7o-psq6EeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l7o-p8q6EeOpmd7vWBVZJQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_l7plsMq6EeOpmd7vWBVZJQ" type="7018">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_l7plscq6EeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_l7plssq6EeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_l7pls8q6EeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l7pltMq6EeOpmd7vWBVZJQ"/>
+ </children>
+ <children xmi:type="notation:BasicCompartment" xmi:id="_l7pltcq6EeOpmd7vWBVZJQ" visible="false" type="7019">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_l7pltsq6EeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:SortingStyle" xmi:id="_l7plt8q6EeOpmd7vWBVZJQ"/>
+ <styles xmi:type="notation:FilteringStyle" xmi:id="_l7pluMq6EeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l7plucq6EeOpmd7vWBVZJQ"/>
+ </children>
+ <element xmi:type="uml:Class" href="HelloWorldOO.uml#_l7i4AMq6EeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_l7o-ocq6EeOpmd7vWBVZJQ" x="58" y="201" width="163" height="80"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_P2hLgMrDEeOpmd7vWBVZJQ" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_P2hLgsrDEeOpmd7vWBVZJQ" type="5038"/>
+ <element xmi:type="uml:Comment" href="HelloWorldOO.uml#_P1ssIMrDEeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_P2hLgcrDEeOpmd7vWBVZJQ" x="340" y="220" width="301" height="61"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_b1TsMMrYEeOpmd7vWBVZJQ" type="2005">
+ <children xmi:type="notation:DecorationNode" xmi:id="_b1TsMsrYEeOpmd7vWBVZJQ" type="5020"/>
+ <children xmi:type="notation:DecorationNode" xmi:id="_b1TsM8rYEeOpmd7vWBVZJQ" type="7009">
+ <styles xmi:type="notation:TitleStyle" xmi:id="_b1TsNMrYEeOpmd7vWBVZJQ"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_b1TsNcrYEeOpmd7vWBVZJQ"/>
+ </children>
+ <element xmi:type="uml:Model" href="HelloWorldOO.uml#_O6TiIDLUEd26WNosUASSSw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_b1TsMcrYEeOpmd7vWBVZJQ" x="60" y="360" width="201"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_PJLgIMuOEeOR-ZT-tu0VTw" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_PJMHMMuOEeOR-ZT-tu0VTw" type="5038"/>
+ <element xmi:type="uml:Comment" href="HelloWorldOO.uml#_PIPsAMuOEeOR-ZT-tu0VTw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PJLgIcuOEeOR-ZT-tu0VTw" x="340" y="120" width="301" height="61"/>
+ </children>
+ <children xmi:type="notation:Shape" xmi:id="_9oKrAMuOEeOR-ZT-tu0VTw" type="2012">
+ <children xmi:type="notation:DecorationNode" xmi:id="_9oLSEMuOEeOR-ZT-tu0VTw" type="5038"/>
+ <element xmi:type="uml:Comment" href="HelloWorldOO.uml#_9oJc4MuOEeOR-ZT-tu0VTw"/>
+ <layoutConstraint xmi:type="notation:Bounds" xmi:id="_9oKrAcuOEeOR-ZT-tu0VTw" x="340" y="380" width="301" height="81"/>
+ </children>
+ <styles xmi:type="notation:DiagramStyle" xmi:id="_4fWngMpkEeOpmd7vWBVZJQ"/>
+ <styles xmi:type="style:PapyrusViewStyle" xmi:id="_4fWngcpkEeOpmd7vWBVZJQ">
+ <owner xmi:type="uml:Package" href="HelloWorldOO.uml#_LOqIEDLaEd2qeKRLMdIx_A"/>
+ </styles>
+ <element xmi:type="uml:Package" href="HelloWorldOO.uml#_LOqIEDLaEd2qeKRLMdIx_A"/>
+ <edges xmi:type="notation:Connector" xmi:id="_z440MMuMEeOR-ZT-tu0VTw" type="4008" source="_l7o-oMq6EeOpmd7vWBVZJQ" target="_7IaUcMpkEeOpmd7vWBVZJQ">
+ <children xmi:type="notation:DecorationNode" xmi:id="_z47QcMuMEeOR-ZT-tu0VTw" visible="false" type="6026">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_z473gMuMEeOR-ZT-tu0VTw" x="4" y="-46"/>
+ </children>
+ <children xmi:type="notation:DecorationNode" xmi:id="_z473gcuMEeOR-ZT-tu0VTw" type="6027">
+ <layoutConstraint xmi:type="notation:Location" xmi:id="_z48ekMuMEeOR-ZT-tu0VTw" y="60"/>
+ </children>
+ <styles xmi:type="notation:FontStyle" xmi:id="_z440McuMEeOR-ZT-tu0VTw"/>
+ <element xmi:type="uml:Dependency" href="HelloWorldOO.uml#_z1dFsMuMEeOR-ZT-tu0VTw"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_z440MsuMEeOR-ZT-tu0VTw" points="[1, -12, -1, 110]$[41, -71, 39, 51]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_z5obEMuMEeOR-ZT-tu0VTw" id="(0.46408839779005523,0.0)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_Te5twMuPEeOR-ZT-tu0VTw" id="(0.4968944099378882,0.9803921568627451)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_b3FWIMuOEeOR-ZT-tu0VTw" type="4013" source="_PJLgIMuOEeOR-ZT-tu0VTw" target="_z440MMuMEeOR-ZT-tu0VTw" routing="Rectilinear">
+ <styles xmi:type="notation:FontStyle" xmi:id="_b3FWIcuOEeOR-ZT-tu0VTw"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_b3FWIsuOEeOR-ZT-tu0VTw" points="[-45, 1, 211, -12]$[-256, 10, 0, -3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_b3MD0MuOEeOR-ZT-tu0VTw" id="(0.0,0.8032786885245902)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_b3Mq4MuOEeOR-ZT-tu0VTw" id="(0.8014184397163121,0.5930232558139535)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_cVGu4MuOEeOR-ZT-tu0VTw" type="4013" source="_P2hLgMrDEeOpmd7vWBVZJQ" target="_l7o-oMq6EeOpmd7vWBVZJQ" routing="Rectilinear">
+ <styles xmi:type="notation:FontStyle" xmi:id="_cVGu4cuOEeOR-ZT-tu0VTw"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_cVGu4suOEeOR-ZT-tu0VTw" points="[-28, 3, 139, 0]$[-147, -7, 20, -10]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_cVJLIMuOEeOR-ZT-tu0VTw" id="(0.0,0.29508196721311475)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_cVJLIcuOEeOR-ZT-tu0VTw" id="(0.9938650306748467,0.38613861386138615)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_lVtMsMuOEeOR-ZT-tu0VTw" type="4013" source="_B_JiwMplEeOpmd7vWBVZJQ" target="_7IaUcMpkEeOpmd7vWBVZJQ" routing="Rectilinear">
+ <styles xmi:type="notation:FontStyle" xmi:id="_lVtMscuOEeOR-ZT-tu0VTw"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_lVtMssuOEeOR-ZT-tu0VTw" points="[-59, -3, 166, 7]$[-203, -31, 22, -21]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lVvo8MuOEeOR-ZT-tu0VTw" id="(0.0,0.3333333333333333)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_lVvo8cuOEeOR-ZT-tu0VTw" id="(1.0,0.27450980392156865)"/>
+ </edges>
+ <edges xmi:type="notation:Connector" xmi:id="_ChBQUMuPEeOR-ZT-tu0VTw" type="4013" source="_9oKrAMuOEeOR-ZT-tu0VTw" target="_b1TsMMrYEeOpmd7vWBVZJQ" routing="Rectilinear">
+ <styles xmi:type="notation:FontStyle" xmi:id="_ChBQUcuPEeOR-ZT-tu0VTw"/>
+ <element xsi:nil="true"/>
+ <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_ChBQUsuPEeOR-ZT-tu0VTw" points="[-47, -9, 113, 0]$[-126, -12, 34, -3]"/>
+ <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ChIlEMuPEeOR-ZT-tu0VTw" id="(0.0,0.38271604938271603)"/>
+ <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_ChJMIMuPEeOR-ZT-tu0VTw" id="(1.0,0.51)"/>
+ </edges>
+</notation:Diagram>
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.uml b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.uml
new file mode 100644
index 00000000000..45d01db05bd
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/models/examples/HelloWorldOO.uml
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:C_Cpp="http://www.eclipse.org/papyrus/C_Cpp/1" xmlns:FCM="http://www.eclipse.org/papyrus/FCM/1" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML">
+ <uml:Model xmi:id="_O6TiIDLUEd26WNosUASSSw" name="HelloWorld">
+ <packagedElement xmi:type="uml:Package" xmi:id="_LOqIEDLaEd2qeKRLMdIx_A" name="classes">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_-Hd2MDecEeGPyrZ5I3hMlA" annotatedElement="_tyiqsc__Ed-TP80eVS-2Rg">
+ <body>Simple HelloWorld component that prints a message in its &quot;run&quot; operation
+</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_P1ssIMrDEeOpmd7vWBVZJQ" annotatedElement="_l7i4AMq6EeOpmd7vWBVZJQ">
+ <body>Class with main function. This function is not declared (since it would always be a member function), but directly added via the ManualGeneration stereptype).</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_PIPsAMuOEeOR-ZT-tu0VTw" annotatedElement="_z1dFsMuMEeOR-ZT-tu0VTw">
+ <body>The dependency is necessary, since the use of the class HelloWorld is happening inside the body (types appearing in the signature of operations or attributes are managed automatically).</body>
+ </ownedComment>
+ <ownedComment xmi:type="uml:Comment" xmi:id="_9oJc4MuOEeOR-ZT-tu0VTw" annotatedElement="_O6TiIDLUEd26WNosUASSSw">
+ <body>Use the package to generate code. Open the context menu and select &quot;generate code&quot;.</body>
+ </ownedComment>
+ <packagedElement xmi:type="uml:Class" xmi:id="_tyiqsc__Ed-TP80eVS-2Rg" name="HelloWorld">
+ <ownedComment xmi:type="uml:Comment" xmi:id="_SxvpUFT0EeKvFeqt5Q_lqw" annotatedElement="_8pupUFTzEeKvFeqt5Q_lqw">
+ <body>Configuration attribute within the Hello World component. Its value is configured on the instance level.</body>
+ </ownedComment>
+ <ownedAttribute xmi:type="uml:Property" xmi:id="_8pupUFTzEeKvFeqt5Q_lqw" name="message" visibility="public" aggregation="composite">
+ <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
+ <lowerValue xmi:type="uml:LiteralInteger" xmi:id="__HwK8FTzEeKvFeqt5Q_lqw" value="1"/>
+ <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="__HwyAFTzEeKvFeqt5Q_lqw" value="1"/>
+ <defaultValue xmi:type="uml:LiteralString" xmi:id="__HynMFTzEeKvFeqt5Q_lqw">
+ <value xsi:nil="true"/>
+ </defaultValue>
+ </ownedAttribute>
+ <ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_tyjRwc__Ed-TP80eVS-2Rg" name="run" specification="_UtCt0FTzEeKvFeqt5Q_lqw">
+ <language>C/C++</language>
+ <body>cout &lt;&lt; &quot;Hello world: &quot; &lt;&lt; message &lt;&lt; endl;</body>
+ </ownedBehavior>
+ <ownedOperation xmi:type="uml:Operation" xmi:id="_UtCt0FTzEeKvFeqt5Q_lqw" name="run" method="_tyjRwc__Ed-TP80eVS-2Rg"/>
+ </packagedElement>
+ <packagedElement xmi:type="uml:Class" xmi:id="_l7i4AMq6EeOpmd7vWBVZJQ" name="Main"/>
+ <packagedElement xmi:type="uml:Dependency" xmi:id="_z1dFsMuMEeOR-ZT-tu0VTw" name="Dependency1" client="_l7i4AMq6EeOpmd7vWBVZJQ" supplier="_tyiqsc__Ed-TP80eVS-2Rg"/>
+ </packagedElement>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_O6TiIjLUEd26WNosUASSSw">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_O6TiIzLUEd26WNosUASSSw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/uml2/5.0.0/UML/Profile/Standard#/"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_GcC0cAHtEd6HSdiss9GQ0A">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Gd1kMAHtEd6HSdiss9GQ0A" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/C_Cpp/1#/"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://PapyrusC_Cpp_PROFILES/C_Cpp.profile.uml#_j9REUByGEduN1bTiWJ0lyw"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_z1TwgFW3Ed63BrxiKsw-0Q">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_z2GasFW3Ed63BrxiKsw-0Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/FCM/1#/"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://FCM_PROFILES/FCM.profile.uml#_5mvT0MtjEd2H_o0jIC6qDQ"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_sfyAwEbjEd-l4NeVOJZDkA">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_siunEEbjEd-l4NeVOJZDkA" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//GCM"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_YgAioAPMEdyuUt-4qHuVvQ"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_popJkKmqEeCxII-g1_Lmeg">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_p1PbIKmqEeCxII-g1_Lmeg" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//HLAM"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_yNSZIAPMEdyuUt-4qHuVvQ"/>
+ </profileApplication>
+ <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_tZuBwE0tEeG4IqgA7gSE6w">
+ <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_tisXkE0tEeG4IqgA7gSE6w" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <references xmi:type="ecore:EPackage" href="http://www.eclipse.org/papyrus/MARTE/1#//Alloc"/>
+ </eAnnotations>
+ <appliedProfile xmi:type="uml:Profile" href="pathmap://Papyrus_PROFILES/MARTE.profile.uml#_ar8OsAPMEdyuUt-4qHuVvQ"/>
+ </profileApplication>
+ </uml:Model>
+ <FCM:DerivedElement xmi:id="_RwGb8P6_Ed6Zw96O-tCw7A"/>
+ <FCM:DerivedElement xmi:id="_RxVyEP6_Ed6Zw96O-tCw7A"/>
+ <FCM:DerivedElement xmi:id="_RoIMoP94Ed6628OhKk_dpg"/>
+ <FCM:DerivedElement xmi:id="_IFlIEARJEd--t-uhRn9OBA"/>
+ <FCM:ContainerRule xmi:id="_b-TmAARJEd--t-uhRn9OBA">
+ <portSet href="pathmap://QML_CORE/core.uml#__SL-kNtxEd6nqsBVkgJEEA"/>
+ </FCM:ContainerRule>
+ <FCM:DerivedElement xmi:id="_bmwhUARMEd-OidZzGKCpzg"/>
+ <FCM:DerivedElement xmi:id="_xjNC4ATuEd-Zc_RSu20WjA"/>
+ <FCM:DerivedElement xmi:id="_LZoQ4AVIEd-rcKh6R_xjRQ"/>
+ <FCM:DerivedElement xmi:id="_oMpYkAWxEd-jrvNV_WQOlA"/>
+ <FCM:DerivedElement xmi:id="_Fd6d0AnREd-co_m_wv4b6A"/>
+ <FCM:DerivedElement xmi:id="_uLARMBGVEd-rfYlCjUOxJQ"/>
+ <FCM:DerivedElement xmi:id="_qdjxQBGkEd-Jq_XWT8Mhpg"/>
+ <FCM:DerivedElement xmi:id="_VOzfEBGlEd-Jq_XWT8Mhpg"/>
+ <FCM:DerivedElement xmi:id="_N8BrMBI4Ed-3zOZ0RGapGA"/>
+ <FCM:DerivedElement xmi:id="_jIS30BI8Ed-XjYZ05V-9-Q"/>
+ <FCM:DerivedElement xmi:id="_E5UhUBJIEd-XjYZ05V-9-Q"/>
+ <FCM:DerivedElement xmi:id="_THoRwBJWEd-QgZm_R1AKbA"/>
+ <FCM:DerivedElement xmi:id="_z0CVcBQ2Ed-_dI0JopJMvQ"/>
+ <FCM:DerivedElement xmi:id="_Ke_UsBb7Ed-u0pMEAnvpEQ"/>
+ <FCM:DerivedElement xmi:id="_uOkD4D15Ed-qiK1VZWszhA">
+ <source xmi:type="uml:Operation" href="pathmap://QML_CORE//sysinterfaces.uml#_C9IK4JsqEd61Eo3nmu3JhQ"/>
+ </FCM:DerivedElement>
+ <FCM:DerivedElement xmi:id="_a4LokD16Ed-qiK1VZWszhA">
+ <source xmi:type="uml:Operation" href="pathmap://QML_CORE//sysinterfaces.uml#_C9IK4JsqEd61Eo3nmu3JhQ"/>
+ </FCM:DerivedElement>
+ <C_Cpp:Include xmi:id="_11OtwPcaEd-KM6l7lmIPkw" body="#include &lt;iostream>&#xA;using namespace std;" base_class="_tyiqsc__Ed-TP80eVS-2Rg"/>
+ <FCM:Connector xmi:id="_iADdkE2rEeGl8qrc8BM7vA">
+ <ic xmi:type="FCM:InteractionComponent" href="pathmap://QML_CORE/fifo.uml#_xQ_ccHUuEd6R5tffIPrlPg"/>
+ </FCM:Connector>
+ <FCM:DerivedElement xmi:id="_UtTMgFTzEeKvFeqt5Q_lqw" base_Element="_UtCt0FTzEeKvFeqt5Q_lqw">
+ <source xmi:type="uml:Operation" href="pathmap://QML_CORE/sysinterfaces.uml#_C9IK4JsqEd61Eo3nmu3JhQ"/>
+ </FCM:DerivedElement>
+ <FCM:ConfigurationProperty xmi:id="_KTwJUFT0EeKvFeqt5Q_lqw" base_Property="_8pupUFTzEeKvFeqt5Q_lqw"/>
+ <FCM:CodeGenOptions xmi:id="_1uf4ENykEeKPWMO32vUmzw" base_Package="_LOqIEDLaEd2qeKRLMdIx_A">
+ <progLanguage xmi:type="FCM:ProgLanguage" href="pathmap://QML_CORE/core.uml#_5WrSINzEEeKPWMO32vUmzw"/>
+ </FCM:CodeGenOptions>
+ <C_Cpp:Include xmi:id="_GzL9QMrYEeOpmd7vWBVZJQ" body="int main(int argc, const char* args[]) {&#xA;&#x9;classes::HelloWorld hw;&#xA;&#x9;hw.run();&#xA;&#x9;return 1;&#xA;}" base_class="_l7i4AMq6EeOpmd7vWBVZJQ"/>
+</xmi:XMI>
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.properties b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.properties
new file mode 100644
index 00000000000..ed68cd6714a
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.properties
@@ -0,0 +1,12 @@
+###############################################################################
+# Copyright (c) 2013 CEA LIST.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# CEA LIST - initial API and implementation
+###############################################################################
+pluginName=Papyrus C/C++ examples (Incubation)
+providerName=Eclipse Modeling Project
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.xml b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.xml
new file mode 100644
index 00000000000..17282114c08
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/plugin.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension point="org.eclipse.ui.newWizards">
+ <wizard
+ category="org.eclipse.ui.Examples/org.eclipse.papyrus.examples"
+ class="org.eclipse.papyrus.cpp.examples.HelloWorldOOModelWizard"
+ finalPerspective="org.eclipse.papyrus.infra.core.perspective"
+ icon="platform:/plugin/org.eclipse.papyrus.infra.core/icons/papyrus/Papyrus.gif"
+ id="org.eclipse.papyrus.cpp.examples.new.HelloWorldOO"
+ name="C/C++ hello world example">
+ <selection class="org.eclipse.core.resources.IResource"/>
+ </wizard>
+ </extension>
+</plugin>
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/Activator.java b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/Activator.java
new file mode 100644
index 00000000000..02a3b1a2a4a
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/Activator.java
@@ -0,0 +1,50 @@
+package org.eclipse.papyrus.cpp.examples;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.cpp.examples"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/HelloWorldOOModelWizard.java b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/HelloWorldOOModelWizard.java
new file mode 100644
index 00000000000..e38d042ffaa
--- /dev/null
+++ b/extraplugins/codegen/org.eclipse.papyrus.cpp.examples/src/org/eclipse/papyrus/cpp/examples/HelloWorldOOModelWizard.java
@@ -0,0 +1,27 @@
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ansgar Radermacher ansgar.radermacher@cea.fr
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.cpp.examples;
+
+import org.eclipse.papyrus.uml.diagram.wizards.ModelCopyWizard;
+
+/**
+ * Copy wizard for the HelloWorld example
+ */
+public class HelloWorldOOModelWizard extends ModelCopyWizard {
+
+ public HelloWorldOOModelWizard() {
+ super("HelloWorldOO"); //$NON-NLS-1$
+ }
+}

Back to the top