Skip to content

Commit

Permalink
updated to Eclipse 2023-12 release and ELK 0.9.0. Replaced all
Browse files Browse the repository at this point in the history
injections with com.google.inject (which in turn aliases jakarta.inject)
  • Loading branch information
NiklasRentzCAU committed Feb 22, 2024
1 parent 01eae36 commit 7e65524
Show file tree
Hide file tree
Showing 20 changed files with 61 additions and 53 deletions.
8 changes: 4 additions & 4 deletions build/de.cau.cs.kieler.klighd.repository/category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@
<bundle id="de.cau.cs.kieler.klighd.lsp" version="2.3.1.qualifier"/>
<bundle id="de.cau.cs.kieler.klighd.lsp.source" version="2.3.1.qualifier"/>

<repository-reference location="https://download.eclipse.org/releases/2023-09/" enabled="true" />
<repository-reference location="https://download.eclipse.org/releases/2023-12/" enabled="true" />
<repository-reference location="https://download.eclipse.org/modeling/mdt/uml2/updates/5.4/" enabled="true" />
<repository-reference location="https://download.eclipse.org/elk/updates/releases/0.8.1/" enabled="true" />
<repository-reference location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.32.0/" enabled="true" />
<repository-reference location="https://download.eclipse.org/elk/updates/releases/0.9.0/" enabled="true" />
<repository-reference location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.33.0/" enabled="true" />
<repository-reference location="https://xtext.github.io/download/updates/releases/2.1.1/" enabled="true" />
<repository-reference location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.29.0" enabled="true" />
<repository-reference location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.30.0" enabled="true" />
<repository-reference location="https://rtsys.informatik.uni-kiel.de/~kieler/updatesite/sprotty/0.9.0/" enabled="true" />
</site>
8 changes: 4 additions & 4 deletions build/de.cau.cs.kieler.klighd.repository/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
<configuration>
<associateSites>
<!-- Eclipse -->
<associateSite>https://download.eclipse.org/releases/2023-09/</associateSite>
<associateSite>https://download.eclipse.org/releases/2023-12/</associateSite>
<!-- UML2 Tools (Meta Model Implemenetation, ...) -->
<associateSite>https://download.eclipse.org/modeling/mdt/uml2/updates/5.4/</associateSite>
<!-- Eclipse Layout Kernel -->
<!-- associateSite>http://build.eclipse.org/modeling/elk/updates/nightly/</associateSite -->
<associateSite>https://download.eclipse.org/elk/updates/releases/0.8.1/</associateSite>>
<associateSite>https://download.eclipse.org/elk/updates/releases/0.9.0/</associateSite>>
<!-- Xtext -->
<associateSite>https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.32.0/</associateSite>>
<associateSite>https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.33.0/</associateSite>>
<associateSite>https://xtext.github.io/download/updates/releases/2.1.1/</associateSite>>
<!-- Eclipse Orbit for Google Guave, Apache Batik, ... -->
<associateSite>https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.29.0</associateSite>
<associateSite>https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.30.0</associateSite>
<!-- Sprotty ... -->
<associateSite>https://rtsys.informatik.uni-kiel.de/~kieler/updatesite/sprotty/0.9.0/</associateSite>
</associateSites>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
<unit id="org.apache.batik.svggen" version="0.0.0"/>
<repository location="https://download.eclipse.org/releases/2023-09/"/>
<repository location="https://download.eclipse.org/releases/2023-12/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.uml2.uml.feature.group" version="0.0.0"/>
Expand All @@ -25,19 +25,18 @@
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.32.0/"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.33.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
<repository location="https://xtext.github.io/download/updates/releases/2.1.1/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="jakarta.servlet-api" version="0.0.0"/>
<unit id="com.google.inject" version="0.0.0"/>
<unit id="com.google.guava" version="0.0.0"/>
<unit id="org.hamcrest.library" version="1.3.0.v20230809-1000"/>
<unit id="org.hamcrest.core" version="1.3.0.v20230809-1000"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.29.0"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.30.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.sprotty" version="0.0.0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
<unit id="org.apache.batik.svggen" version="0.0.0"/>
<repository location="https://download.eclipse.org/releases/2023-09/"/>
<repository location="https://download.eclipse.org/releases/2023-12/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.uml2.uml.feature.group" version="0.0.0"/>
Expand All @@ -25,7 +25,7 @@
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.32.0/"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.33.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
Expand All @@ -36,12 +36,11 @@
<repository location="https://kieler.github.io/KLighD/v1.1.1/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="jakarta.servlet-api" version="0.0.0"/>
<unit id="com.google.inject" version="0.0.0"/>
<unit id="com.google.guava" version="0.0.0"/>
<unit id="org.hamcrest.library" version="1.3.0.v20230809-1000"/>
<unit id="org.hamcrest.core" version="1.3.0.v20230809-1000"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.29.0"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.30.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.sprotty" version="0.0.0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
<unit id="org.apache.batik.svggen" version="0.0.0"/>
<repository location="https://download.eclipse.org/releases/2023-09/"/>
<repository location="https://download.eclipse.org/releases/2023-12/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.uml2.uml.feature.group" version="0.0.0"/>
Expand All @@ -21,11 +21,11 @@
<unit id="org.eclipse.elk.sdk.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.elk.ui.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.elk.ui.feature.source.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/elk/updates/releases/0.8.1/"/>
<repository location="https://download.eclipse.org/elk/updates/releases/0.9.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.32.0/"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.33.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
Expand All @@ -36,12 +36,11 @@
<repository location="https://kieler.github.io/KLighD/v1.1.1/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="jakarta.servlet-api" version="0.0.0"/>
<unit id="com.google.inject" version="0.0.0"/>
<unit id="com.google.guava" version="0.0.0"/>
<unit id="org.hamcrest.library" version="1.3.0.v20230809-1000"/>
<unit id="org.hamcrest.core" version="1.3.0.v20230809-1000"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.29.0"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.30.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.sprotty" version="0.0.0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<unit id="org.eclipse.emf.ecore.xcore.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
<unit id="org.apache.batik.svggen" version="0.0.0"/>
<repository location="https://download.eclipse.org/releases/2023-09/"/>
<repository location="https://download.eclipse.org/releases/2023-12/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.uml2.uml.feature.group" version="0.0.0"/>
Expand All @@ -21,23 +21,22 @@
<unit id="org.eclipse.elk.sdk.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.elk.ui.feature.feature.group" version="0.0.0"/>
<unit id="org.eclipse.elk.ui.feature.source.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/elk/updates/releases/0.8.1/"/>
<repository location="https://download.eclipse.org/elk/updates/releases/0.9.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.32.0/"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.33.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="de.itemis.xtext.antlr.sdk.feature.group" version="2.1.1.v201405091103"/>
<repository location="https://xtext.github.io/download/updates/releases/2.1.1/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="jakarta.servlet-api" version="0.0.0"/>
<unit id="com.google.inject" version="0.0.0"/>
<unit id="com.google.guava" version="0.0.0"/>
<unit id="org.hamcrest.library" version="1.3.0.v20230809-1000"/>
<unit id="org.hamcrest.core" version="1.3.0.v20230809-1000"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.29.0"/>
<repository location="https://download.eclipse.org/tools/orbit/simrel/orbit-aggregation/release/4.30.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.sprotty" version="0.0.0"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;

import jakarta.inject.Inject;

import org.eclipse.elk.core.data.LayoutAlgorithmData;
import org.eclipse.elk.core.data.LayoutMetaDataService;
import org.eclipse.elk.core.data.LayoutOptionData;
Expand All @@ -46,6 +44,8 @@
import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
import org.eclipse.xtext.util.Strings;

import com.google.inject.Inject;

import de.cau.cs.kieler.kgraph.text.KGraphResource;
import de.cau.cs.kieler.kgraph.text.services.KGraphGrammarAccess;
import de.cau.cs.kieler.klighd.kgraph.PersistentEntry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

import java.util.regex.Pattern;

import jakarta.inject.Inject;

import org.eclipse.xtext.conversion.IValueConverter;
import org.eclipse.xtext.conversion.ValueConverter;
import org.eclipse.xtext.conversion.ValueConverterException;
Expand All @@ -32,6 +30,8 @@
import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.xtext.util.Strings;

import com.google.inject.Inject;


/**
* Value converter for the KGraph grammar.
Expand Down
3 changes: 2 additions & 1 deletion plugins/de.cau.cs.kieler.klighd.ide/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Bundle-Name: KIELER Lightweight Diagrams Ide Components
Bundle-SymbolicName: de.cau.cs.kieler.klighd.ide;singleton:=true
Bundle-Version: 2.3.1.qualifier
Automatic-Module-Name: de.cau.cs.kieler.klighd.ide
Require-Bundle: de.cau.cs.kieler.klighd;visibility:=reexport,
Require-Bundle: com.google.inject,
de.cau.cs.kieler.klighd;visibility:=reexport,
de.cau.cs.kieler.klighd.kgraph,
org.eclipse.xtext.xbase,
de.cau.cs.kieler.klighd.krendering.extensions,
Expand Down
5 changes: 5 additions & 0 deletions plugins/de.cau.cs.kieler.klighd.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
<url>https://github.com/kieler/KLighD</url>

<dependencies>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>${guice-version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>de.cau.cs.kieler.klighd</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package de.cau.cs.kieler.klighd.ide.syntheses

import com.google.common.collect.HashBasedTable
import com.google.common.collect.Table
import com.google.inject.Inject
import de.cau.cs.kieler.klighd.KlighdConstants
import de.cau.cs.kieler.klighd.SynthesisOption
import de.cau.cs.kieler.klighd.kgraph.KNode
Expand All @@ -39,7 +40,6 @@ import de.cau.cs.kieler.klighd.ide.syntheses.action.EcoreModelExpandDetailsActio
import de.cau.cs.kieler.klighd.util.KlighdProperties
import java.util.List
import java.util.Map
import jakarta.inject.Inject
import org.eclipse.elk.alg.layered.options.EdgeStraighteningStrategy
import org.eclipse.elk.alg.layered.options.FixedAlignment
import org.eclipse.elk.alg.layered.options.LayeredOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package de.cau.cs.kieler.klighd.ide.syntheses

import com.google.inject.Inject
import de.cau.cs.kieler.klighd.ide.model.MessageModel
import de.cau.cs.kieler.klighd.ide.syntheses.MessageModelSynthesis
import de.cau.cs.kieler.klighd.kgraph.KNode
Expand All @@ -27,7 +28,6 @@ import de.cau.cs.kieler.klighd.krendering.extensions.KRenderingExtensions
import de.cau.cs.kieler.klighd.syntheses.AbstractDiagramSynthesis
import de.cau.cs.kieler.klighd.ide.model.ErrorModel
import de.cau.cs.kieler.klighd.ide.syntheses.action.AbstractErrorModelShowExceptionAction
import jakarta.inject.Inject

/**
* Diagram synthesis for a {@link MessageModel}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
*/
package de.cau.cs.kieler.klighd.ide.syntheses

import com.google.inject.Inject
import de.cau.cs.kieler.klighd.ide.model.MessageModel
import de.cau.cs.kieler.klighd.kgraph.KNode
import de.cau.cs.kieler.klighd.krendering.extensions.KContainerRenderingExtensions
import de.cau.cs.kieler.klighd.krendering.extensions.KNodeExtensions
import de.cau.cs.kieler.klighd.krendering.extensions.KRenderingExtensions
import de.cau.cs.kieler.klighd.syntheses.AbstractDiagramSynthesis
import jakarta.inject.Inject

import static extension de.cau.cs.kieler.klighd.syntheses.DiagramSyntheses.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
*/
package de.cau.cs.kieler.klighd.lsp

import com.google.inject.Inject
import com.google.inject.Provider
import java.util.ArrayList
import java.util.List
import jakarta.inject.Inject
import jakarta.inject.Provider
import org.eclipse.sprotty.xtext.IDiagramServerFactory
import org.eclipse.sprotty.xtext.ls.DiagramServerManager

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package de.cau.cs.kieler.klighd.lsp.interactive.layered

import com.google.inject.Inject
import com.google.inject.Singleton
import de.cau.cs.kieler.klighd.internal.util.KlighdInternalProperties
import de.cau.cs.kieler.klighd.kgraph.KNode
import de.cau.cs.kieler.klighd.lsp.KGraphDiagramState
Expand All @@ -29,7 +30,6 @@ import java.io.ByteArrayOutputStream
import java.util.HashMap
import java.util.List
import java.util.Map
import jakarta.inject.Singleton
import org.eclipse.elk.alg.layered.options.LayeredOptions
import org.eclipse.elk.graph.ElkNode
import org.eclipse.elk.graph.properties.IProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package de.cau.cs.kieler.klighd.lsp.interactive.rectpacking

import com.google.inject.Inject
import com.google.inject.Singleton
import de.cau.cs.kieler.klighd.internal.util.KlighdInternalProperties
import de.cau.cs.kieler.klighd.kgraph.KNode
import de.cau.cs.kieler.klighd.lsp.KGraphDiagramState
Expand All @@ -28,7 +29,6 @@ import java.io.ByteArrayOutputStream
import java.util.Arrays
import java.util.List
import java.util.Map
import jakarta.inject.Singleton
import org.eclipse.elk.alg.rectpacking.options.RectPackingOptions
import org.eclipse.elk.core.options.CoreOptions
import org.eclipse.elk.graph.ElkNode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class KlighdProjectContributor implements IProjectFactoryContributor {
'''
package «projectInfo.transformationPackage»
import jakarta.inject.Inject
import com.google.inject.Inject
import de.cau.cs.kieler.klighd.kgraph.KNode
import de.cau.cs.kieler.klighd.krendering.KRenderingFactory
Expand Down
Loading

0 comments on commit 7e65524

Please sign in to comment.