Skip to content

Commit

Permalink
[#19] Upgrade to Xtext 2.33
Browse files Browse the repository at this point in the history
  • Loading branch information
iperdomo committed Feb 7, 2024
1 parent 33fb92e commit 4d16e1f
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Require-Bundle: org.integratedmodelling.kactors.ui,
org.eclipse.core.runtime,
org.eclipse.xtext.ui.testing,
org.eclipse.ui.workbench;resolution:=optional,
org.eclipse.xtext.junit4
org.eclipse.xtext.junit4,
org.eclipse.xtext.xbase.ui.testing
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.integratedmodelling.kactors.ui.tests;x-internal=true
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.27.0" modelDirectory="/org.integratedmodelling.kactors/src-gen"
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.33.0" modelDirectory="/org.integratedmodelling.kactors/src-gen"
modelPluginID="org.integratedmodelling.kactors" forceOverwrite="true" modelName="Kactors"
updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
complianceLevel="8.0" copyrightFields="false" runtimeVersion="2.20">
complianceLevel="11.0" copyrightFields="false" runtimeVersion="2.29">
<genPackages prefix="Kactors" basePackage="org.integratedmodelling.kactors" disposableProviderFactory="true"
fileExtensions="kactor" ecorePackage="Kactors.ecore#/">
<genEnums typeSafeEnumCompatible="false" ecoreEnum="Kactors.ecore#//UnitOp">
Expand Down
8 changes: 4 additions & 4 deletions kactors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<module>org.integratedmodelling.kactors</module>
<module>org.integratedmodelling.kactors.ide</module>
<module>org.integratedmodelling.kactors.ui</module>
<module>org.integratedmodelling.kactors.web</module>
<!--<module>org.integratedmodelling.kactors.web</module>-->
<module>org.integratedmodelling.kactors.target</module>
<module>org.integratedmodelling.kactors.feature</module>
<module>org.integratedmodelling.kactors.repository</module>
Expand Down Expand Up @@ -262,8 +262,8 @@
<useProjectSettings>false</useProjectSettings>
</configuration>
</plugin>
<!-- to skip running (and compiling) tests use commandline flag: -Dmaven.test.skip
To skip tests, but still compile them, use: -DskipTests To allow all tests
<!-- to skip running (and compiling) tests use commandline flag: -Dmaven.test.skip
To skip tests, but still compile them, use: -DskipTests To allow all tests
in a pom to pass/fail, use commandline flag: -fae (fail at end) -->
<plugin>
<groupId>org.eclipse.tycho</groupId>
Expand Down Expand Up @@ -332,4 +332,4 @@

<dependencies>
</dependencies>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Require-Bundle: org.integratedmodelling.kdl.ui,
org.eclipse.xtext.xbase.junit,
org.eclipse.core.runtime,
org.eclipse.ui.workbench;resolution:=optional,
org.eclipse.xtext.ui.testing
org.eclipse.xtext.ui.testing,
org.eclipse.xtext.xbase.ui.testing
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.integratedmodelling.kdl.ui.tests;x-internal=true
Import-Package: org.hamcrest.core,
Expand Down
4 changes: 2 additions & 2 deletions kdl/org.integratedmodelling.kdl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down Expand Up @@ -232,7 +232,7 @@
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.equinox.common</artifactId>
<version>3.14.100</version>
<version>3.16.200</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
4 changes: 2 additions & 2 deletions kdl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.equinox.common</artifactId>
<version>3.13.0</version>
<version>3.16.200</version>
</dependency>
</dependencies>
</plugin>
Expand Down Expand Up @@ -250,7 +250,7 @@
</configuration>
</plugin>
<plugin>
<!--
<!--
Can be removed after first generator execution
https://bugs.eclipse.org/bugs/show_bug.cgi?id=480097
-->
Expand Down
53 changes: 27 additions & 26 deletions kim/org.integratedmodelling.kim.ui.tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.integratedmodelling.kim.ui.tests
Bundle-Vendor: org.integratedmodelling
Bundle-Version: 0.11.0.qualifier
Bundle-SymbolicName: org.integratedmodelling.kim.ui.tests; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.integratedmodelling.kim.ui,
org.junit;bundle-version="4.7.0",
org.eclipse.xtext.junit4,
org.eclipse.xtext.xbase.junit,
org.eclipse.core.runtime,
org.eclipse.ui.workbench;resolution:=optional,
org.eclipse.xtext.testing,
org.eclipse.xtext.xbase.testing,
org.eclipse.xtext.ui.testing
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.integratedmodelling.kim.ui.tests;x-internal=true
Import-Package: org.hamcrest.core,
org.junit;version="4.5.0",
org.junit.runners.model;version="4.5.0",
org.junit.runner;version="4.5.0",
org.junit.runners;version="4.5.0",
org.junit.runner.manipulation;version="4.5.0",
org.junit.runner.notification;version="4.5.0"
Automatic-Module-Name: org.integratedmodelling.kim.ui.tests
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: org.integratedmodelling.kim.ui.tests
Bundle-Vendor: org.integratedmodelling
Bundle-Version: 0.11.0.qualifier
Bundle-SymbolicName: org.integratedmodelling.kim.ui.tests; singleton:=true
Bundle-ActivationPolicy: lazy
Require-Bundle: org.integratedmodelling.kim.ui,
org.junit;bundle-version="4.7.0",
org.eclipse.xtext.junit4,
org.eclipse.xtext.xbase.junit,
org.eclipse.core.runtime,
org.eclipse.ui.workbench;resolution:=optional,
org.eclipse.xtext.testing,
org.eclipse.xtext.xbase.testing,
org.eclipse.xtext.ui.testing,
org.eclipse.xtext.xbase.ui.testing
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.integratedmodelling.kim.ui.tests;x-internal=true
Import-Package: org.hamcrest.core,
org.junit;version="4.5.0",
org.junit.runners.model;version="4.5.0",
org.junit.runner;version="4.5.0",
org.junit.runners;version="4.5.0",
org.junit.runner.manipulation;version="4.5.0",
org.junit.runner.notification;version="4.5.0"
Automatic-Module-Name: org.integratedmodelling.kim.ui.tests
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
define(["ace/lib/oop", "ace/mode/text", "ace/mode/text_highlight_rules"], function(oop, mText, mTextHighlightRules) {
var HighlightRules = function() {
var keywords = "AD|BC|CE|E|abstract|acceleration|according|adjacent|affects|agent|aggregated|all|amount|and|angle|any|applies|area|as|at|attribute|authority|averaged|away|between|bond|boolean|by|causant|caused|causing|change|changed|charge|children|class|classified|classifies|column|compresent|confers|configuration|contained|container|containing|contains|context|cooccurrent|core|count|covering|creates|decreases|define|defines|definition|deliberative|deniable|describes|discretized|discretizes|disjoint|distance|do|domain|down|duration|during|e|each|emerges|energy|entropy|equals|event|exactly|exclusive|extends|extent|false|finally|follows|for|from|functional|has|identified|identity|if|implies|imports|in|inclusive|increases|inherent|inherits|initialization|instantiation|integrate|interactive|into|is|l|language|learn|least|length|level|linking|links|lookup|magnitude|marks|mass|match|metadata|minus|model|monetary|money|more|most|move|named|namespace|no|not|nothing|number|object|observability|observe|observed|observing|occurrence|of|on|only|optional|or|ordering|otherwise|outside|over|parameters|per|percentage|plus|presence|pressure|priority|private|probability|process|project|proportion|purpose|quality|quantity|rate|ratio|reactive|realm|related|relationship|required|requires|rescaling|resistance|resistivity|resolve|role|root|row|scenario|set|structural|subjective|summed|targeting|temperature|termination|text|then|thing|times|to|total|transition|true|type|uncertainty|unknown|unless|uses|using|value|velocity|version|viscosity|void|volume|weight|where|with|within|without|worldview";
this.$rules = {
"start": [
{token: "comment", regex: "\\/\\/.*$"},
{token: "comment", regex: "\\/\\*", next : "comment"},
{token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},
{token: "string", regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},
{token: "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},
{token: "lparen", regex: "[({]"},
{token: "rparen", regex: "[)}]"},
{token: "keyword", regex: "\\b(?:" + keywords + ")\\b"}
],
"comment": [
{token: "comment", regex: ".*?\\*\\/", next : "start"},
{token: "comment", regex: ".+"}
]
};
};
oop.inherits(HighlightRules, mTextHighlightRules.TextHighlightRules);

var Mode = function() {
this.HighlightRules = HighlightRules;
};
oop.inherits(Mode, mText.Mode);
Mode.prototype.$id = "xtext/k";
Mode.prototype.getCompletions = function(state, session, pos, prefix) {
return [];
}

return {
Mode: Mode
};
});
define(["ace/lib/oop", "ace/mode/text", "ace/mode/text_highlight_rules"], function(oop, mText, mTextHighlightRules) {
var HighlightRules = function() {
var keywords = "AD|BC|CE|E|abstract|acceleration|according|adjacent|affects|agent|aggregated|all|amount|and|angle|any|applies|area|as|at|attribute|authority|averaged|away|between|bond|boolean|by|causant|caused|causing|change|changed|charge|children|class|classified|classifies|column|compresent|confers|configuration|contained|container|containing|contains|context|cooccurrent|core|count|covering|creates|decreases|define|defines|definition|deliberative|deniable|describes|discretized|discretizes|disjoint|distance|do|domain|down|duration|during|e|each|emerges|energy|entropy|equals|event|exactly|exclusive|extends|extent|false|finally|follows|for|from|functional|has|identified|identity|if|implies|imports|in|inclusive|increases|inherent|inherits|initialization|instantiation|integrate|interactive|into|is|l|language|learn|least|length|level|linking|links|lookup|magnitude|marks|mass|match|metadata|minus|model|monetary|money|more|most|move|named|namespace|no|not|nothing|number|object|observability|observe|observed|observing|occurrence|of|on|only|optional|or|ordering|otherwise|outside|over|parameters|per|percentage|plus|presence|pressure|priority|private|probability|process|project|proportion|purpose|quality|quantity|rate|ratio|reactive|realm|related|relationship|required|requires|rescaling|resistance|resistivity|resolve|role|root|row|scenario|set|structural|subjective|summed|targeting|temperature|termination|text|then|thing|times|to|total|transition|true|type|uncertainty|unknown|unless|uses|using|value|velocity|version|viscosity|void|volume|weight|where|with|within|without|worldview";
this.$rules = {
"start": [
{token: "comment", regex: "\\/\\/.*$"},
{token: "comment", regex: "\\/\\*", next : "comment"},
{token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'},
{token: "string", regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},
{token: "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},
{token: "lparen", regex: "[({]"},
{token: "rparen", regex: "[)}]"},
{token: "keyword", regex: "\\b(?:" + keywords + ")\\b"}
],
"comment": [
{token: "comment", regex: ".*?\\*\\/", next : "start"},
{token: "comment", regex: ".+"}
]
};
};
oop.inherits(HighlightRules, mTextHighlightRules.TextHighlightRules);

var Mode = function() {
this.HighlightRules = HighlightRules;
};
oop.inherits(Mode, mText.Mode);
Mode.prototype.$id = "xtext/k";
Mode.prototype.getCompletions = function(state, session, pos, prefix) {
return [];
}

return {
Mode: Mode
};
});
2 changes: 1 addition & 1 deletion kim/org.integratedmodelling.kim/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.equinox.common</artifactId>
<version>3.14.100</version>
<version>3.16.200</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion kim/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.equinox.common</artifactId>
<version>3.13.0</version>
<version>3.16.200</version>
</dependency>
</dependencies>
</plugin>
Expand Down
28 changes: 21 additions & 7 deletions klab.engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</pluginManagement>
</build>
<dependencies>

<!-- testing a possible GraphQL interface for the runtime system
<dependency>
<groupId>io.leangen.graphql</groupId>
Expand Down Expand Up @@ -125,12 +125,22 @@
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-java</artifactId>
<version>3.13.6</version>
<version>3.14.5</version>
</dependency>
<dependency>
<groupId>com.konghq</groupId>
<artifactId>unirest-objectmapper-jackson</artifactId>
<version>3.13.6</version>
<version>4.2.7</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.14.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.14.3</version>
</dependency>

<!-- POI for Excel -->
Expand Down Expand Up @@ -305,7 +315,7 @@
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.hortonmachine</groupId>
<artifactId>hm-gears</artifactId>
Expand Down Expand Up @@ -366,6 +376,10 @@
<groupId>org.eclipse.xtext</groupId>
<artifactId>org.eclipse.xtext.xbase</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down Expand Up @@ -603,7 +617,7 @@
<artifactId>jgrapht-core </artifactId>
<version>1.5.2</version>
</dependency>

<!-- graph I/O -->
<dependency>
<groupId>org.jgrapht</groupId>
Expand Down Expand Up @@ -874,14 +888,14 @@
<artifactId>commons-exec</artifactId>
<version>1.2</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib -->
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>1.9.0</version>
</dependency>

<!-- https://mvnrepository.com/artifact/io.minio/minio -->
<dependency>
<groupId>io.minio</groupId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<tycho-version>2.7.3</tycho-version>
<xtextVersion>2.27.0</xtextVersion>
<mweVersion>2.13.0</mweVersion>
<xtextVersion>2.33.0</xtextVersion>
<mweVersion>2.16.0</mweVersion>
<googleJibVersion>3.3.2</googleJibVersion>
<jib.jvmFlags>-XshowSettings:vm</jib.jvmFlags>

Expand Down

0 comments on commit 4d16e1f

Please sign in to comment.