From f5b6d4bd53f65178749df3d783c4f28dd680c687 Mon Sep 17 00:00:00 2001 From: Camille Letavernier Date: Wed, 26 Feb 2020 16:06:54 +0100 Subject: [PATCH] 33: Add an Eclipse Product with EMF Codegen applications - The product can be built and then used in the Ecore GLSP Theia Backend to trigger Genmodel creation & code generation --- .gitignore | 5 +- server/backend-app/.project | 17 +++ server/backend-app/README.md | 3 + .../ecore.glsp.backend.app/.classpath | 7 + .../ecore.glsp.backend.app/.project | 28 ++++ .../.settings/org.eclipse.jdt.core.prefs | 7 + .../META-INF/MANIFEST.MF | 8 ++ .../ecore.glsp.backend.app/build.properties | 5 + .../ecore.glsp.backend.app/plugin.xml | 17 +++ .../ecore.glsp.backend.app/pom.xml | 16 +++ .../ecore.glsp.codegen.feature/.project | 17 +++ .../build.properties | 1 + .../ecore.glsp.codegen.feature/feature.xml | 125 ++++++++++++++++++ .../ecore.glsp.codegen.feature/pom.xml | 16 +++ .../ecore.glsp.codegen.product/.project | 11 ++ .../ecore.glsp.codegen.product | 52 ++++++++ .../ecore.glsp.codegen.product/pom.xml | 34 +++++ server/backend-app/pom.xml | 64 +++++++++ server/backend-app/targetplatform/.project | 17 +++ server/backend-app/targetplatform/pom.xml | 16 +++ .../targetplatform/targetplatform.target | 16 +++ .../targetplatform/targetplatform.tpd | 10 ++ server/pom.xml | 3 +- 23 files changed, 492 insertions(+), 3 deletions(-) create mode 100644 server/backend-app/.project create mode 100644 server/backend-app/README.md create mode 100644 server/backend-app/ecore.glsp.backend.app/.classpath create mode 100644 server/backend-app/ecore.glsp.backend.app/.project create mode 100644 server/backend-app/ecore.glsp.backend.app/.settings/org.eclipse.jdt.core.prefs create mode 100644 server/backend-app/ecore.glsp.backend.app/META-INF/MANIFEST.MF create mode 100644 server/backend-app/ecore.glsp.backend.app/build.properties create mode 100644 server/backend-app/ecore.glsp.backend.app/plugin.xml create mode 100644 server/backend-app/ecore.glsp.backend.app/pom.xml create mode 100644 server/backend-app/ecore.glsp.codegen.feature/.project create mode 100644 server/backend-app/ecore.glsp.codegen.feature/build.properties create mode 100644 server/backend-app/ecore.glsp.codegen.feature/feature.xml create mode 100644 server/backend-app/ecore.glsp.codegen.feature/pom.xml create mode 100644 server/backend-app/ecore.glsp.codegen.product/.project create mode 100644 server/backend-app/ecore.glsp.codegen.product/ecore.glsp.codegen.product create mode 100644 server/backend-app/ecore.glsp.codegen.product/pom.xml create mode 100644 server/backend-app/pom.xml create mode 100644 server/backend-app/targetplatform/.project create mode 100644 server/backend-app/targetplatform/pom.xml create mode 100644 server/backend-app/targetplatform/targetplatform.target create mode 100644 server/backend-app/targetplatform/targetplatform.tpd diff --git a/.gitignore b/.gitignore index 6bbccfc..3a7425c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea *.iml -server/ecore-backend-server/target/ -server/target/ +target/ +target/ +bin/ diff --git a/server/backend-app/.project b/server/backend-app/.project new file mode 100644 index 0000000..aafda1a --- /dev/null +++ b/server/backend-app/.project @@ -0,0 +1,17 @@ + + + backend-app + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/server/backend-app/README.md b/server/backend-app/README.md new file mode 100644 index 0000000..8f788d2 --- /dev/null +++ b/server/backend-app/README.md @@ -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...) diff --git a/server/backend-app/ecore.glsp.backend.app/.classpath b/server/backend-app/ecore.glsp.backend.app/.classpath new file mode 100644 index 0000000..e801ebf --- /dev/null +++ b/server/backend-app/ecore.glsp.backend.app/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/server/backend-app/ecore.glsp.backend.app/.project b/server/backend-app/ecore.glsp.backend.app/.project new file mode 100644 index 0000000..6b72e8a --- /dev/null +++ b/server/backend-app/ecore.glsp.backend.app/.project @@ -0,0 +1,28 @@ + + + ecore.glsp.backend.app + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/server/backend-app/ecore.glsp.backend.app/.settings/org.eclipse.jdt.core.prefs b/server/backend-app/ecore.glsp.backend.app/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..cd95f14 --- /dev/null +++ b/server/backend-app/ecore.glsp.backend.app/.settings/org.eclipse.jdt.core.prefs @@ -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 diff --git a/server/backend-app/ecore.glsp.backend.app/META-INF/MANIFEST.MF b/server/backend-app/ecore.glsp.backend.app/META-INF/MANIFEST.MF new file mode 100644 index 0000000..e32f9bc --- /dev/null +++ b/server/backend-app/ecore.glsp.backend.app/META-INF/MANIFEST.MF @@ -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 diff --git a/server/backend-app/ecore.glsp.backend.app/build.properties b/server/backend-app/ecore.glsp.backend.app/build.properties new file mode 100644 index 0000000..7a22e3e --- /dev/null +++ b/server/backend-app/ecore.glsp.backend.app/build.properties @@ -0,0 +1,5 @@ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml +source.. = src/ diff --git a/server/backend-app/ecore.glsp.backend.app/plugin.xml b/server/backend-app/ecore.glsp.backend.app/plugin.xml new file mode 100644 index 0000000..ca083a1 --- /dev/null +++ b/server/backend-app/ecore.glsp.backend.app/plugin.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + diff --git a/server/backend-app/ecore.glsp.backend.app/pom.xml b/server/backend-app/ecore.glsp.backend.app/pom.xml new file mode 100644 index 0000000..46eb82b --- /dev/null +++ b/server/backend-app/ecore.glsp.backend.app/pom.xml @@ -0,0 +1,16 @@ + + 4.0.0 + + + com.eclipsesource.glsp + ecore-backend-apps + 1.0.0 + + + ecore.glsp.backend.app + 1.0.0-SNAPSHOT + eclipse-plugin + + \ No newline at end of file diff --git a/server/backend-app/ecore.glsp.codegen.feature/.project b/server/backend-app/ecore.glsp.codegen.feature/.project new file mode 100644 index 0000000..a2e72d1 --- /dev/null +++ b/server/backend-app/ecore.glsp.codegen.feature/.project @@ -0,0 +1,17 @@ + + + ecore.glsp.codegen.feature + + + + + + org.eclipse.pde.FeatureBuilder + + + + + + org.eclipse.pde.FeatureNature + + diff --git a/server/backend-app/ecore.glsp.codegen.feature/build.properties b/server/backend-app/ecore.glsp.codegen.feature/build.properties new file mode 100644 index 0000000..64f93a9 --- /dev/null +++ b/server/backend-app/ecore.glsp.codegen.feature/build.properties @@ -0,0 +1 @@ +bin.includes = feature.xml diff --git a/server/backend-app/ecore.glsp.codegen.feature/feature.xml b/server/backend-app/ecore.glsp.codegen.feature/feature.xml new file mode 100644 index 0000000..fd14a30 --- /dev/null +++ b/server/backend-app/ecore.glsp.codegen.feature/feature.xml @@ -0,0 +1,125 @@ + + + + + [Enter Feature Description here.] + + + + [Enter Copyright Description here.] + + + + [Enter License Description here.] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/server/backend-app/ecore.glsp.codegen.feature/pom.xml b/server/backend-app/ecore.glsp.codegen.feature/pom.xml new file mode 100644 index 0000000..6ebbdf1 --- /dev/null +++ b/server/backend-app/ecore.glsp.codegen.feature/pom.xml @@ -0,0 +1,16 @@ + + 4.0.0 + + + com.eclipsesource.glsp + ecore-backend-apps + 1.0.0 + + + ecore.glsp.codegen.feature + 1.0.0-SNAPSHOT + eclipse-feature + + \ No newline at end of file diff --git a/server/backend-app/ecore.glsp.codegen.product/.project b/server/backend-app/ecore.glsp.codegen.product/.project new file mode 100644 index 0000000..301ac91 --- /dev/null +++ b/server/backend-app/ecore.glsp.codegen.product/.project @@ -0,0 +1,11 @@ + + + ecore.glsp.codegen.product + + + + + + + + diff --git a/server/backend-app/ecore.glsp.codegen.product/ecore.glsp.codegen.product b/server/backend-app/ecore.glsp.codegen.product/ecore.glsp.codegen.product new file mode 100644 index 0000000..3b624de --- /dev/null +++ b/server/backend-app/ecore.glsp.codegen.product/ecore.glsp.codegen.product @@ -0,0 +1,52 @@ + + + + + + + + + + + -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/server/backend-app/ecore.glsp.codegen.product/pom.xml b/server/backend-app/ecore.glsp.codegen.product/pom.xml new file mode 100644 index 0000000..50cf2fd --- /dev/null +++ b/server/backend-app/ecore.glsp.codegen.product/pom.xml @@ -0,0 +1,34 @@ + + 4.0.0 + + + com.eclipsesource.glsp + ecore-backend-apps + 1.0.0 + + + ecore.glsp.codegen.product + 1.0.0 + eclipse-repository + + + + + org.eclipse.tycho + tycho-p2-director-plugin + ${tycho-version} + + + materialize-products + + materialize-products + + + + + + + + \ No newline at end of file diff --git a/server/backend-app/pom.xml b/server/backend-app/pom.xml new file mode 100644 index 0000000..8b24535 --- /dev/null +++ b/server/backend-app/pom.xml @@ -0,0 +1,64 @@ + + 4.0.0 + com.eclipsesource.glsp + ecore-backend-apps + pom + 1.0.0 + + + 1.6.0 + + + + targetplatform + ecore.glsp.backend.app + ecore.glsp.codegen.product + ecore.glsp.codegen.feature + + + + + + org.eclipse.tycho + target-platform-configuration + ${tycho-version} + + + + com.eclipsesource.glsp + targetplatform + 1.0 + + + + + linux + gtk + x86_64 + + + win32 + win32 + x86_64 + + + macosx + cocoa + x86_64 + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + + + diff --git a/server/backend-app/targetplatform/.project b/server/backend-app/targetplatform/.project new file mode 100644 index 0000000..d341baf --- /dev/null +++ b/server/backend-app/targetplatform/.project @@ -0,0 +1,17 @@ + + + targetplatform + + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + + org.eclipse.xtext.ui.shared.xtextNature + + diff --git a/server/backend-app/targetplatform/pom.xml b/server/backend-app/targetplatform/pom.xml new file mode 100644 index 0000000..c326582 --- /dev/null +++ b/server/backend-app/targetplatform/pom.xml @@ -0,0 +1,16 @@ + + 4.0.0 + + + com.eclipsesource.glsp + ecore-backend-apps + 1.0.0 + + + targetplatform + 1.0 + eclipse-target-definition + + \ No newline at end of file diff --git a/server/backend-app/targetplatform/targetplatform.target b/server/backend-app/targetplatform/targetplatform.target new file mode 100644 index 0000000..2313ea4 --- /dev/null +++ b/server/backend-app/targetplatform/targetplatform.target @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/server/backend-app/targetplatform/targetplatform.tpd b/server/backend-app/targetplatform/targetplatform.tpd new file mode 100644 index 0000000..dfb8e31 --- /dev/null +++ b/server/backend-app/targetplatform/targetplatform.tpd @@ -0,0 +1,10 @@ +target "Ecore GLSP Codegen" with requirements source + +location "http://download.eclipse.org/releases/2019-12" { + org.eclipse.emf.ecore.feature.group [2.20.0,3.0.0) + org.eclipse.emf.common.feature.group [2.17.0,3.0.0) + org.eclipse.emf.codegen.ecore.feature.group [2.20.0,3.0.0) + org.eclipse.core.runtime.feature.feature.group [1.2.700,2.0.0) + org.eclipse.emf.codegen.feature.group [2.19.0,3.0.0) + org.eclipse.equinox.executable.feature.group [3.8.600,4.0.0) +} diff --git a/server/pom.xml b/server/pom.xml index fbee07d..0b557de 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -13,5 +13,6 @@ ecore-backend-server ecore-glsp + backend-app - \ No newline at end of file +