Skip to content

Commit

Permalink
update to KLighD 3.0.2, add MrTree Interactive features to language
Browse files Browse the repository at this point in the history
server.
  • Loading branch information
NiklasRentzCAU committed May 7, 2024
1 parent 9e96370 commit e7af75e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<elk-version>0.9.1</elk-version>
<gson-version>2.10.1</gson-version>
<guice-version>7.0.0</guice-version>
<klighd-version>3.0.1.v20240410</klighd-version>
<klighd-version>3.0.2.v20240507</klighd-version>
<lsp4j-version>0.22.0</lsp4j-version>
<tycho-version>2.7.3</tycho-version>
<xtend-version>2.33.0</xtend-version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* http://rtsys.informatik.uni-kiel.de/kieler
*
* Copyright 2019, 2020 by
* Copyright 2019-2024 by
* + Kiel University
* + Department of Computer Science
* + Real-Time and Embedded Systems Group
Expand All @@ -14,6 +14,7 @@ package de.cau.cs.kieler.pragmatics.language.server

import de.cau.cs.kieler.klighd.lsp.KGraphLanguageClient
import de.cau.cs.kieler.klighd.lsp.interactive.layered.LayeredInteractiveLanguageServerExtension
import de.cau.cs.kieler.klighd.lsp.interactive.mrtree.MrTreeInteractiveLanguageServerExtension
import de.cau.cs.kieler.klighd.lsp.interactive.rectpacking.RectpackingInteractiveLanguageServerExtension
import de.cau.cs.kieler.klighd.lsp.launch.AbstractLsCreator

Expand All @@ -29,11 +30,14 @@ class PragmaticsLsCreator extends AbstractLsCreator {

RectpackingInteractiveLanguageServerExtension rectPack

MrTreeInteractiveLanguageServerExtension mrTree

override getLanguageServerExtensions() {
constraints = injector.getInstance(LayeredInteractiveLanguageServerExtension)
rectPack = injector.getInstance(RectpackingInteractiveLanguageServerExtension)
mrTree = injector.getInstance(MrTreeInteractiveLanguageServerExtension)
val iLanguageServerExtensions = newArrayList(
injector.getInstance(PragmaticsRegistrationLanguageServerExtension), constraints, rectPack
injector.getInstance(PragmaticsRegistrationLanguageServerExtension), constraints, rectPack, mrTree
)
return iLanguageServerExtensions
}
Expand All @@ -46,6 +50,7 @@ class PragmaticsLsCreator extends AbstractLsCreator {
super.onConnect()
constraints.client = languageClient
rectPack.client = languageClient
mrTree.client = languageClient
}

}

0 comments on commit e7af75e

Please sign in to comment.