Skip to content

Commit b56dd13

Browse files
committed
New EMF databinding example
1 parent f5a9310 commit b56dd13

30 files changed

Lines changed: 1987 additions & 0 deletions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
5+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>de.vogella.databinding.emf.table</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.pde.PluginNature</nature>
26+
<nature>org.eclipse.jdt.core.javanature</nature>
27+
</natures>
28+
</projectDescription>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Tue Oct 05 10:44:26 CEST 2010
2+
eclipse.preferences.version=1
3+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
5+
org.eclipse.jdt.core.compiler.compliance=1.6
6+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
7+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
8+
org.eclipse.jdt.core.compiler.source=1.6
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Table
4+
Bundle-SymbolicName: de.vogella.databinding.emf.table; singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Activator: de.vogella.databinding.emf.table.Activator
7+
Require-Bundle: org.eclipse.ui,
8+
org.eclipse.core.runtime,
9+
org.eclipse.emf.ecore;bundle-version="2.6.1"
10+
Bundle-ActivationPolicy: lazy
11+
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source.. = src/
2+
output.. = bin/
3+
bin.includes = plugin.xml,\
4+
META-INF/,\
5+
.
637 Bytes
Loading
1.16 KB
Loading
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ecore:EPackage xmi:version="2.0"
3+
xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="model"
5+
nsURI="http://model/1.0" nsPrefix="model">
6+
<eClassifiers xsi:type="ecore:EClass" name="Model">
7+
<eStructuralFeatures xsi:type="ecore:EReference" name="todos" upperBound="-1"
8+
eType="#//Todo"/>
9+
</eClassifiers>
10+
<eClassifiers xsi:type="ecore:EClass" name="Todo">
11+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="summary" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
12+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="description" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
13+
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="#//Responsible"/>
14+
</eClassifiers>
15+
<eClassifiers xsi:type="ecore:EClass" name="Responsible">
16+
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
17+
</eClassifiers>
18+
</ecore:EPackage>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<genmodel:GenModel xmi:version="2.0"
3+
xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
4+
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/de.vogella.databinding.emf.table/src"
5+
modelPluginID="de.vogella.databinding.emf.table" modelName="Todo" importerID="org.eclipse.emf.importer.ecore"
6+
complianceLevel="6.0" copyrightFields="false">
7+
<foreignModel>todo.ecore</foreignModel>
8+
<genPackages prefix="Model" basePackage="de.vogella.databinding.emf.table" disposableProviderFactory="true"
9+
ecorePackage="todo.ecore#/">
10+
<genClasses ecoreClass="todo.ecore#//Todo">
11+
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute todo.ecore#//Todo/summary"/>
12+
<genFeatures createChild="false" ecoreFeature="ecore:EAttribute todo.ecore#//Todo/description"/>
13+
</genClasses>
14+
<genClasses ecoreClass="todo.ecore#//Model">
15+
<genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference todo.ecore#//Model/todos"/>
16+
</genClasses>
17+
</genPackages>
18+
</genmodel:GenModel>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
# <copyright>
3+
# </copyright>
4+
#
5+
# $Id$
6+
7+
pluginName = Todo Model
8+
providerName = www.example.org

0 commit comments

Comments
 (0)