Skip to content

Commit

Permalink
update to new workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Dietrich <[email protected]>
  • Loading branch information
cdietrich committed Feb 27, 2024
1 parent 28165ae commit bbe2533
Show file tree
Hide file tree
Showing 19 changed files with 604 additions and 642 deletions.
52 changes: 27 additions & 25 deletions org.xtext.example.mydsl.tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.xtext.example.mydsl.tests
Bundle-Vendor: My Company
Bundle-Version: 1.0.0.qualifier
Bundle-SymbolicName: org.xtext.example.mydsl.tests; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.xtext.example.mydsl,
org.xtext.example.mydsl.ui,
org.eclipse.core.runtime,
org.eclipse.ui.workbench;resolution:=optional,
org.objectweb.asm;bundle-version="[9.0.0,10.0.0)";resolution:=optional,
org.eclipse.xtext.junit4;bundle-version="2.24.0",
org.eclipse.xtext.xbase.lib;bundle-version="2.24.0"
Import-Package: org.apache.log4j,
org.junit;version="4.5.0",
org.junit.runner;version="4.5.0",
org.junit.runner.manipulation;version="4.5.0",
org.junit.runner.notification;version="4.5.0",
org.junit.runners;version="4.5.0",
org.junit.runners.model;version="4.5.0",
org.hamcrest.core
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.xtext.example.mydsl
Automatic-Module-Name: org.xtext.example.mydsl.tests
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.xtext.example.mydsl.tests
Bundle-Vendor: My Company
Bundle-Version: 1.0.0.qualifier
Bundle-SymbolicName: org.xtext.example.mydsl.tests; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.xtext.example.mydsl,
org.xtext.example.mydsl.ui,
org.eclipse.core.runtime,
org.eclipse.ui.workbench;resolution:=optional,
org.objectweb.asm;bundle-version="[9.0.0,10.0.0)";resolution:=optional,
org.eclipse.xtext.junit4;bundle-version="2.24.0",
org.eclipse.xtext.xbase.lib;bundle-version="2.24.0",
org.eclipse.xtext.xbase.testing,
org.eclipse.xtext.testing
Import-Package: org.apache.log4j,
org.junit;version="4.5.0",
org.junit.runner;version="4.5.0",
org.junit.runner.manipulation;version="4.5.0",
org.junit.runner.notification;version="4.5.0",
org.junit.runners;version="4.5.0",
org.junit.runners.model;version="4.5.0",
org.hamcrest.core
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.xtext.example.mydsl.tests;x-internal=true
Automatic-Module-Name: org.xtext.example.mydsl.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* generated by Xtext 2.31.0
*/
package org.xtext.example.mydsl.tests

import com.google.inject.Inject
import org.eclipse.xtext.testing.InjectWith
import org.eclipse.xtext.testing.XtextRunner
import org.eclipse.xtext.testing.util.ParseHelper
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.xtext.example.mydsl.myDsl.Model

@RunWith(XtextRunner)
@InjectWith(MyDslInjectorProvider)
class MyDslParsingTest {
@Inject
ParseHelper<Model> parseHelper

@Test
def void loadModel() {
val result = parseHelper.parse('''
Hello Xtext!
''')
Assert.assertNotNull(result)
val errors = result.eResource.errors
Assert.assertTrue('''Unexpected errors: «errors.join(", ")»''', errors.isEmpty)
}
}

This file was deleted.

58 changes: 30 additions & 28 deletions org.xtext.example.mydsl.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.xtext.example.mydsl.ui
Bundle-Vendor: My Company
Bundle-Version: 1.0.0.qualifier
Bundle-SymbolicName: org.xtext.example.mydsl.ui; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.xtext.example.mydsl;visibility:=reexport,
org.eclipse.xtext.ui,
org.eclipse.ui.editors;bundle-version="3.5.0",
org.eclipse.ui.ide;bundle-version="3.5.0",
org.eclipse.xtext.ui.shared,
org.eclipse.ui,
org.eclipse.xtext.builder,
org.antlr.runtime,
org.eclipse.xtext.ui.codetemplates.ui,
org.eclipse.compare,
org.eclipse.xtext.xbase.lib
Import-Package: org.apache.log4j,
org.eclipse.xtext.xbase.lib
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.xtext.example.mydsl.ui.quickfix,
org.xtext.example.mydsl.ui.contentassist,
org.xtext.example.mydsl.ui.contentassist.antlr,
org.xtext.example.mydsl.ui.internal,
org.xtext.example.mydsl.ui.contentassist.antlr.internal
Bundle-Activator: org.xtext.example.mydsl.ui.internal.MyDslActivator
Automatic-Module-Name: org.xtext.example.mydsl.ui
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.xtext.example.mydsl.ui
Bundle-Vendor: My Company
Bundle-Version: 1.0.0.qualifier
Bundle-SymbolicName: org.xtext.example.mydsl.ui; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.xtext.example.mydsl;visibility:=reexport,
org.eclipse.xtext.ui,
org.eclipse.ui.editors;bundle-version="3.5.0",
org.eclipse.ui.ide;bundle-version="3.5.0",
org.eclipse.xtext.ui.shared,
org.eclipse.ui,
org.eclipse.xtext.builder,
org.antlr.runtime;bundle-version="[3.2.0,3.2.1)",
org.eclipse.xtext.ui.codetemplates.ui,
org.eclipse.compare,
org.eclipse.xtext.xbase.lib
Import-Package: org.apache.log4j,
org.eclipse.xtext.xbase.lib
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.xtext.example.mydsl.ui.quickfix,
org.xtext.example.mydsl.ui.contentassist,
org.xtext.example.mydsl.ui.contentassist.antlr,
org.xtext.example.mydsl.ui.internal,
org.xtext.example.mydsl.ui.contentassist.antlr.internal,
org.xtext.example.mydsl.ide.contentassist.antlr,
org.xtext.example.mydsl.ide.contentassist.antlr.internal
Bundle-Activator: org.xtext.example.mydsl.ui.internal.MyDslActivator
Automatic-Module-Name: org.xtext.example.mydsl.ui
Loading

0 comments on commit bbe2533

Please sign in to comment.