Skip to content

Commit 3894d52

Browse files
committed
Create example project for loading E4 model element xmi files
Change-Id: If2da5253089e6e2f605a9aeb94561793891163a4 Signed-off-by: Simon Scholz <simon.scholz@vogella.com>
1 parent 5fb82e0 commit 3894d52

File tree

17 files changed

+504
-0
lines changed

17 files changed

+504
-0
lines changed
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="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry kind="src" path="src"/>
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>com.vogella.e4.model.persistence</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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
4+
org.eclipse.jdt.core.compiler.compliance=1.8
5+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
6+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
7+
org.eclipse.jdt.core.compiler.source=1.8
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
pluginProject.extensions=false
3+
resolve.requirebundle=false
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_MgnwgMgYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.ide.application" bindingContexts="_MgnwicgYEeSkuodpcQ5AuA">
3+
<children xsi:type="basic:TrimmedWindow" xmi:id="_MgnwgcgYEeSkuodpcQ5AuA" label="com.vogella.e4.model.persistence" width="500" height="400">
4+
<children xsi:type="advanced:PerspectiveStack" xmi:id="_MgoXo8gYEeSkuodpcQ5AuA">
5+
<children xsi:type="advanced:Perspective" xmi:id="_MgoXpMgYEeSkuodpcQ5AuA">
6+
<children xsi:type="basic:PartSashContainer" xmi:id="_MgoXpcgYEeSkuodpcQ5AuA">
7+
<children xsi:type="basic:PartStack" xmi:id="_MgoXpsgYEeSkuodpcQ5AuA">
8+
<children xsi:type="basic:Part" xmi:id="_MgplsMgYEeSkuodpcQ5AuA" contributionURI="bundleclass://com.vogella.e4.model.persistence/com.vogella.e4.model.persistence.parts.SamplePart" label="Sample Part"/>
9+
</children>
10+
<children xsi:type="basic:PartStack" xmi:id="_RijZUMgYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.partstack.0">
11+
<children xsi:type="basic:Part" xmi:id="_SD-EUMgYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.part.simonScholz" label="Simon Scholz"/>
12+
<children xsi:type="basic:Part" xmi:id="_UjHAQMgYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.part.playground" label="Playground"/>
13+
</children>
14+
</children>
15+
</children>
16+
</children>
17+
<mainMenu xmi:id="_MgoXnMgYEeSkuodpcQ5AuA" elementId="menu:org.eclipse.ui.main.menu">
18+
<children xsi:type="menu:Menu" xmi:id="_MgoXncgYEeSkuodpcQ5AuA" label="File">
19+
<children xsi:type="menu:HandledMenuItem" xmi:id="_MgoXnsgYEeSkuodpcQ5AuA" label="Open" iconURI="platform:/plugin/com.vogella.e4.model.persistence/icons/sample.png" command="_MgoXk8gYEeSkuodpcQ5AuA"/>
20+
<children xsi:type="menu:HandledMenuItem" xmi:id="_MgoXn8gYEeSkuodpcQ5AuA" label="Save" iconURI="platform:/plugin/com.vogella.e4.model.persistence/icons/save_edit.png" command="_MgoXlsgYEeSkuodpcQ5AuA"/>
21+
<children xsi:type="menu:HandledMenuItem" xmi:id="_MgoXoMgYEeSkuodpcQ5AuA" label="Quit" command="_MgnwjMgYEeSkuodpcQ5AuA"/>
22+
</children>
23+
<children xsi:type="menu:Menu" xmi:id="_MgoXocgYEeSkuodpcQ5AuA" label="Help">
24+
<children xsi:type="menu:HandledMenuItem" xmi:id="_MgoXosgYEeSkuodpcQ5AuA" label="About" command="_MgoXmcgYEeSkuodpcQ5AuA"/>
25+
</children>
26+
</mainMenu>
27+
<trimBars xmi:id="_MgplscgYEeSkuodpcQ5AuA">
28+
<children xsi:type="menu:ToolBar" xmi:id="_MgplssgYEeSkuodpcQ5AuA" elementId="toolbar:org.eclipse.ui.main.toolbar">
29+
<children xsi:type="menu:HandledToolItem" xmi:id="_Mgpls8gYEeSkuodpcQ5AuA" iconURI="platform:/plugin/com.vogella.e4.model.persistence/icons/sample.png" command="_MgoXk8gYEeSkuodpcQ5AuA"/>
30+
<children xsi:type="menu:HandledToolItem" xmi:id="_MgpltMgYEeSkuodpcQ5AuA" iconURI="platform:/plugin/com.vogella.e4.model.persistence/icons/save_edit.png" command="_MgoXlsgYEeSkuodpcQ5AuA"/>
31+
</children>
32+
</trimBars>
33+
</children>
34+
<handlers xmi:id="_MgoXkMgYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.handler.quitCommand" contributionURI="bundleclass://com.vogella.e4.model.persistence/com.vogella.e4.model.persistence.handlers.QuitHandler" command="_MgnwjMgYEeSkuodpcQ5AuA"/>
35+
<handlers xmi:id="_MgoXlMgYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.handler.openCommand" contributionURI="bundleclass://com.vogella.e4.model.persistence/com.vogella.e4.model.persistence.handlers.OpenHandler" command="_MgoXk8gYEeSkuodpcQ5AuA"/>
36+
<handlers xmi:id="_MgoXl8gYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.handler.saveCommand" contributionURI="bundleclass://com.vogella.e4.model.persistence/com.vogella.e4.model.persistence.handlers.SaveHandler" command="_MgoXlsgYEeSkuodpcQ5AuA"/>
37+
<handlers xmi:id="_MgoXmsgYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.handler.aboutCommand" contributionURI="bundleclass://com.vogella.e4.model.persistence/com.vogella.e4.model.persistence.handlers.AboutHandler" command="_MgoXmcgYEeSkuodpcQ5AuA"/>
38+
<bindingTables xmi:id="_MgoXkcgYEeSkuodpcQ5AuA" bindingContext="_MgnwicgYEeSkuodpcQ5AuA">
39+
<bindings xmi:id="_MgoXksgYEeSkuodpcQ5AuA" keySequence="M1+Q" command="_MgnwjMgYEeSkuodpcQ5AuA"/>
40+
<bindings xmi:id="_MgoXlcgYEeSkuodpcQ5AuA" keySequence="M1+O" command="_MgoXk8gYEeSkuodpcQ5AuA"/>
41+
<bindings xmi:id="_MgoXmMgYEeSkuodpcQ5AuA" keySequence="M1+S" command="_MgoXlsgYEeSkuodpcQ5AuA"/>
42+
<bindings xmi:id="_MgoXm8gYEeSkuodpcQ5AuA" keySequence="M1+A" command="_MgoXmcgYEeSkuodpcQ5AuA"/>
43+
</bindingTables>
44+
<rootContext xmi:id="_MgnwicgYEeSkuodpcQ5AuA" elementId="org.eclipse.ui.contexts.dialogAndWindow" name="In Dialog and Windows">
45+
<children xmi:id="_MgnwisgYEeSkuodpcQ5AuA" elementId="org.eclipse.ui.contexts.window" name="In Windows"/>
46+
<children xmi:id="_Mgnwi8gYEeSkuodpcQ5AuA" elementId="org.eclipse.ui.contexts.dialog" name="In Dialogs"/>
47+
</rootContext>
48+
<commands xmi:id="_MgnwjMgYEeSkuodpcQ5AuA" elementId="org.eclipse.ui.file.exit" commandName="quitCommand"/>
49+
<commands xmi:id="_MgoXk8gYEeSkuodpcQ5AuA" elementId="com.vogella.e4.model.persistence.open" commandName="openCommand"/>
50+
<commands xmi:id="_MgoXlsgYEeSkuodpcQ5AuA" elementId="org.eclipse.ui.file.save" commandName="saveCommand"/>
51+
<commands xmi:id="_MgoXmcgYEeSkuodpcQ5AuA" elementId="org.eclipse.ui.help.aboutAction" commandName="aboutCommand"/>
52+
<addons xmi:id="_MgnwgsgYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.core.commands.service" contributionURI="bundleclass://org.eclipse.e4.core.commands/org.eclipse.e4.core.commands.CommandServiceAddon"/>
53+
<addons xmi:id="_Mgnwg8gYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.ui.contexts.service" contributionURI="bundleclass://org.eclipse.e4.ui.services/org.eclipse.e4.ui.services.ContextServiceAddon"/>
54+
<addons xmi:id="_MgnwhMgYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.ui.bindings.service" contributionURI="bundleclass://org.eclipse.e4.ui.bindings/org.eclipse.e4.ui.bindings.BindingServiceAddon"/>
55+
<addons xmi:id="_MgnwhcgYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.ui.workbench.commands.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon"/>
56+
<addons xmi:id="_MgnwhsgYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.ui.workbench.handler.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
57+
<addons xmi:id="_Mgnwh8gYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.ui.workbench.contexts.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.ContextProcessingAddon"/>
58+
<addons xmi:id="_MgnwiMgYEeSkuodpcQ5AuA" elementId="org.eclipse.e4.ui.workbench.bindings.model" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.swt/org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon"/>
59+
</application:Application>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: Persistence
4+
Bundle-SymbolicName: com.vogella.e4.model.persistence;singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-Vendor: VOGELLA
7+
Require-Bundle: javax.inject;bundle-version="1.0.0",
8+
org.eclipse.core.runtime;bundle-version="3.10.0",
9+
org.eclipse.swt;bundle-version="3.104.0",
10+
org.eclipse.e4.ui.model.workbench;bundle-version="1.1.0",
11+
org.eclipse.jface;bundle-version="3.11.0",
12+
org.eclipse.e4.ui.services;bundle-version="1.1.0",
13+
org.eclipse.e4.ui.workbench;bundle-version="1.3.0",
14+
org.eclipse.e4.core.di;bundle-version="1.4.0",
15+
org.eclipse.e4.ui.di;bundle-version="1.0.0",
16+
org.eclipse.e4.core.contexts;bundle-version="1.3.100",
17+
org.eclipse.emf.ecore,
18+
org.eclipse.emf.ecore.xmi;bundle-version="2.11.0",
19+
org.eclipse.e4.ui.workbench.addons.swt;bundle-version="1.2.0"
20+
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
output.. = bin/
2+
bin.includes = META-INF/,\
3+
.,\
4+
plugin.xml,\
5+
plugin.xml,\
6+
Application.e4xmi,\
7+
icons/,\
8+
css/default.css
9+
source.. = src/
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?pde version="3.5"?>
3+
4+
<product name="com.vogella.e4.model.persistence" id="com.vogella.e4.model.persistence.product" application="org.eclipse.e4.ui.workbench.swt.E4Application" version="1.0.0.qualifier" useFeatures="false" includeLaunchers="true">
5+
6+
<configIni use="default">
7+
</configIni>
8+
9+
<launcherArgs>
10+
<programArgs>-clearPersistedState
11+
</programArgs>
12+
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
13+
</vmArgsMac>
14+
</launcherArgs>
15+
16+
<windowImages/>
17+
18+
<plugins>
19+
<plugin id="com.ibm.icu"/>
20+
<plugin id="com.vogella.e4.model.persistence"/>
21+
<plugin id="javax.annotation"/>
22+
<plugin id="javax.inject"/>
23+
<plugin id="javax.xml"/>
24+
<plugin id="org.apache.batik.css"/>
25+
<plugin id="org.apache.batik.util"/>
26+
<plugin id="org.apache.batik.util.gui"/>
27+
<plugin id="org.apache.commons.logging"/>
28+
<plugin id="org.eclipse.core.commands"/>
29+
<plugin id="org.eclipse.core.contenttype"/>
30+
<plugin id="org.eclipse.core.databinding"/>
31+
<plugin id="org.eclipse.core.databinding.beans"/>
32+
<plugin id="org.eclipse.core.databinding.observable"/>
33+
<plugin id="org.eclipse.core.databinding.property"/>
34+
<plugin id="org.eclipse.core.expressions"/>
35+
<plugin id="org.eclipse.core.filesystem"/>
36+
<plugin id="org.eclipse.core.filesystem.aix.ppc" fragment="true"/>
37+
<plugin id="org.eclipse.core.filesystem.hpux.ia64_32" fragment="true"/>
38+
<plugin id="org.eclipse.core.filesystem.linux.ppc" fragment="true"/>
39+
<plugin id="org.eclipse.core.filesystem.linux.x86" fragment="true"/>
40+
<plugin id="org.eclipse.core.filesystem.linux.x86_64" fragment="true"/>
41+
<plugin id="org.eclipse.core.filesystem.macosx" fragment="true"/>
42+
<plugin id="org.eclipse.core.filesystem.solaris.sparc" fragment="true"/>
43+
<plugin id="org.eclipse.core.filesystem.win32.x86" fragment="true"/>
44+
<plugin id="org.eclipse.core.filesystem.win32.x86_64" fragment="true"/>
45+
<plugin id="org.eclipse.core.jobs"/>
46+
<plugin id="org.eclipse.core.resources"/>
47+
<plugin id="org.eclipse.core.resources.win32.x86" fragment="true"/>
48+
<plugin id="org.eclipse.core.runtime"/>
49+
<plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
50+
<plugin id="org.eclipse.e4.core.commands"/>
51+
<plugin id="org.eclipse.e4.core.contexts"/>
52+
<plugin id="org.eclipse.e4.core.di"/>
53+
<plugin id="org.eclipse.e4.core.di.extensions"/>
54+
<plugin id="org.eclipse.e4.core.services"/>
55+
<plugin id="org.eclipse.e4.ui.bindings"/>
56+
<plugin id="org.eclipse.e4.ui.css.core"/>
57+
<plugin id="org.eclipse.e4.ui.css.swt"/>
58+
<plugin id="org.eclipse.e4.ui.css.swt.theme"/>
59+
<plugin id="org.eclipse.e4.ui.di"/>
60+
<plugin id="org.eclipse.e4.ui.model.workbench"/>
61+
<plugin id="org.eclipse.e4.ui.services"/>
62+
<plugin id="org.eclipse.e4.ui.widgets"/>
63+
<plugin id="org.eclipse.e4.ui.workbench"/>
64+
<plugin id="org.eclipse.e4.ui.workbench.addons.swt"/>
65+
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt"/>
66+
<plugin id="org.eclipse.e4.ui.workbench.renderers.swt.cocoa"/>
67+
<plugin id="org.eclipse.e4.ui.workbench.swt"/>
68+
<plugin id="org.eclipse.e4.ui.workbench3"/>
69+
<plugin id="org.eclipse.emf.common"/>
70+
<plugin id="org.eclipse.emf.databinding"/>
71+
<plugin id="org.eclipse.emf.ecore"/>
72+
<plugin id="org.eclipse.emf.ecore.change"/>
73+
<plugin id="org.eclipse.emf.ecore.xmi"/>
74+
<plugin id="org.eclipse.equinox.app"/>
75+
<plugin id="org.eclipse.equinox.common"/>
76+
<plugin id="org.eclipse.equinox.concurrent"/>
77+
<plugin id="org.eclipse.equinox.ds"/>
78+
<plugin id="org.eclipse.equinox.event"/>
79+
<plugin id="org.eclipse.equinox.preferences"/>
80+
<plugin id="org.eclipse.equinox.registry"/>
81+
<plugin id="org.eclipse.equinox.util"/>
82+
<plugin id="org.eclipse.jface"/>
83+
<plugin id="org.eclipse.jface.databinding"/>
84+
<plugin id="org.eclipse.osgi"/>
85+
<plugin id="org.eclipse.osgi.compatibility.state" fragment="true"/>
86+
<plugin id="org.eclipse.osgi.services"/>
87+
<plugin id="org.eclipse.swt"/>
88+
<plugin id="org.eclipse.swt.carbon.macosx" fragment="true"/>
89+
<plugin id="org.eclipse.swt.cocoa.macosx" fragment="true"/>
90+
<plugin id="org.eclipse.swt.cocoa.macosx.x86_64" fragment="true"/>
91+
<plugin id="org.eclipse.swt.gtk.linux.ppc" fragment="true"/>
92+
<plugin id="org.eclipse.swt.gtk.linux.ppc64" fragment="true"/>
93+
<plugin id="org.eclipse.swt.gtk.linux.s390" fragment="true"/>
94+
<plugin id="org.eclipse.swt.gtk.linux.s390x" fragment="true"/>
95+
<plugin id="org.eclipse.swt.gtk.linux.x86" fragment="true"/>
96+
<plugin id="org.eclipse.swt.gtk.linux.x86_64" fragment="true"/>
97+
<plugin id="org.eclipse.swt.gtk.solaris.sparc" fragment="true"/>
98+
<plugin id="org.eclipse.swt.gtk.solaris.x86" fragment="true"/>
99+
<plugin id="org.eclipse.swt.motif.aix.ppc" fragment="true"/>
100+
<plugin id="org.eclipse.swt.motif.hpux.ia64_32" fragment="true"/>
101+
<plugin id="org.eclipse.swt.motif.linux.x86" fragment="true"/>
102+
<plugin id="org.eclipse.swt.motif.solaris.sparc" fragment="true"/>
103+
<plugin id="org.eclipse.swt.photon.qnx.x86" fragment="true"/>
104+
<plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
105+
<plugin id="org.eclipse.swt.win32.win32.x86_64" fragment="true"/>
106+
<plugin id="org.w3c.css.sac"/>
107+
<plugin id="org.w3c.dom.events"/>
108+
<plugin id="org.w3c.dom.smil"/>
109+
<plugin id="org.w3c.dom.svg"/>
110+
</plugins>
111+
112+
113+
</product>

com.vogella.e4.model.persistence/css/default.css

Whitespace-only changes.
642 Bytes
Loading

0 commit comments

Comments
 (0)