Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

33: Add an Eclipse Product with EMF Codegen applications #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
*.iml
server/ecore-backend-server/target/
server/target/
target/
target/
bin/
17 changes: 17 additions & 0 deletions server/backend-app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>backend-app</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions server/backend-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ecore GLSP Backend App

This folder contains the Eclipse Plug-ins for the Ecore GLSP Backend product. It provides an entry point for all Eclipse Applications involved in the Ecore GLSP Backend (GenModel creation, Code generation...)
7 changes: 7 additions & 0 deletions server/backend-app/ecore.glsp.backend.app/.classpath
Original file line number Diff line number Diff line change
@@ -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-11"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
</classpath>
28 changes: 28 additions & 0 deletions server/backend-app/ecore.glsp.backend.app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ecore.glsp.backend.app</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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Ecore GLSP Backend
Bundle-SymbolicName: ecore.glsp.backend.app;singleton:=true
Bundle-Version: 1.0.0.qualifier
Automatic-Module-Name: ecore.glsp.backend.app
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Bundle: org.eclipse.equinox.app
5 changes: 5 additions & 0 deletions server/backend-app/ecore.glsp.backend.app/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
output.. = bin/
bin.includes = META-INF/,\
.,\
plugin.xml
source.. = src/
17 changes: 17 additions & 0 deletions server/backend-app/ecore.glsp.backend.app/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
application="org.eclipse.emf.codegen.CodeGen"
name="Ecore GLSP Backend">
<property
name="appName"
value="Ecore GLSP Backend">
</property>
</product>
</extension>

</plugin>
16 changes: 16 additions & 0 deletions server/backend-app/ecore.glsp.backend.app/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.eclipsesource.glsp</groupId>
<artifactId>ecore-backend-apps</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>ecore.glsp.backend.app</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>

</project>
17 changes: 17 additions & 0 deletions server/backend-app/ecore.glsp.codegen.feature/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ecore.glsp.codegen.feature</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.pde.FeatureBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.FeatureNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin.includes = feature.xml
125 changes: 125 additions & 0 deletions server/backend-app/ecore.glsp.codegen.feature/feature.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="ecore.glsp.codegen.feature"
label="Ecore GLSP Codegen"
version="1.0.0.qualifier">

<description url="http://www.example.com/description">
[Enter Feature Description here.]
</description>

<copyright url="http://www.example.com/copyright">
[Enter Copyright Description here.]
</copyright>

<license url="http://www.example.com/license">
[Enter License Description here.]
</license>

<includes
id="org.eclipse.emf.common"
version="0.0.0"/>

<includes
id="org.eclipse.emf.ecore"
version="0.0.0"/>

<includes
id="org.eclipse.emf.codegen.ecore"
version="0.0.0"/>

<includes
id="org.eclipse.core.runtime.feature"
version="0.0.0"/>

<includes
id="org.eclipse.emf.codegen"
version="0.0.0"/>

<requires>
<import plugin="org.eclipse.equinox.app"/>
</requires>

<plugin
id="ecore.glsp.backend.app"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jdt.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jdt.launching"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.resources"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.filesystem"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.apache.ant"
download-size="0"
install-size="0"
version="0.0.0"/>

<plugin
id="org.eclipse.ant.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.debug.core"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.text"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.core.commands"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.jdt.debug"
download-size="0"
install-size="0"
version="0.0.0"/>

<plugin
id="com.ibm.icu"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>
16 changes: 16 additions & 0 deletions server/backend-app/ecore.glsp.codegen.feature/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.eclipsesource.glsp</groupId>
<artifactId>ecore-backend-apps</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>ecore.glsp.codegen.feature</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-feature</packaging>

</project>
11 changes: 11 additions & 0 deletions server/backend-app/ecore.glsp.codegen.product/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ecore.glsp.codegen.product</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<?pde version="3.5"?>

<product name="Ecore GLSP Backend" uid="ecore.glsp.codegen" id="ecore.glsp.backend.app.product" application="org.eclipse.emf.codegen.CodeGen" version="1.0.0" useFeatures="true" includeLaunchers="true">


<configIni use="default">
</configIni>

<launcherArgs>
<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts
</vmArgsMac>
</launcherArgs>

<windowImages/>


<launcher name="ecore_glsp_backend">
<win useIco="false">
<bmp/>
</win>
</launcher>


<vm>
</vm>


<plugins>
</plugins>

<features>
<feature id="ecore.glsp.codegen.feature"/>
</features>

<configurations>
<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="0" />
<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.event" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />
<plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
</configurations>

<preferencesInfo>
<targetfile overwrite="false"/>
</preferencesInfo>

<cssInfo>
</cssInfo>

</product>
34 changes: 34 additions & 0 deletions server/backend-app/ecore.glsp.codegen.product/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.eclipsesource.glsp</groupId>
<artifactId>ecore-backend-apps</artifactId>
<version>1.0.0</version>
</parent>

<artifactId>ecore.glsp.codegen.product</artifactId>
<version>1.0.0</version>
<packaging>eclipse-repository</packaging>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Loading