File tree Expand file tree Collapse file tree 6 files changed +16
-5
lines changed
src/main/kotlin/spp/jetbrains/marker/source/mark/api/component/jcef
src/main/kotlin/spp/jetbrains/sourcemarker Expand file tree Collapse file tree 6 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,5 @@ kotlin.stdlib.default.dependency = true
2424apolloVersion =3.0.0
2525vertxVersion =4.2.4
2626slf4jVersion =1.7.33
27- jacksonVersion =2.12.5
27+ jacksonVersion =2.13.1
28+ joorVersion =0.9.13
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ val kotlinVersion = ext.get("kotlinVersion")
77val pluginGroup: String by project
88val projectVersion: String by project
99val slf4jVersion: String by project
10+ val joorVersion: String by project
1011
1112publishing {
1213 publications {
@@ -28,6 +29,7 @@ repositories {
2829dependencies {
2930 val intellijVersion = " 213.6777.52"
3031
32+ compileOnly(" org.jooq:joor:$joorVersion " )
3133 compileOnly(" com.github.sourceplusplus.protocol:protocol:$projectVersion " )
3234 compileOnly(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinVersion " )
3335 compileOnly(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ import com.intellij.ui.jcef.JBCefClient
2525import kotlinx.coroutines.GlobalScope
2626import kotlinx.coroutines.delay
2727import kotlinx.coroutines.launch
28+ import org.joor.Reflect
29+ import org.joor.ReflectException
2830import spp.jetbrains.marker.source.mark.api.component.api.SourceMarkComponent
2931import spp.jetbrains.marker.source.mark.api.component.jcef.config.SourceMarkJcefComponentConfiguration
3032import java.awt.Dimension
@@ -68,9 +70,12 @@ class SourceMarkJcefComponent(
6870
6971 // periodically update zoom level
7072 GlobalScope .launch {
71- while (browser != null ) {
73+ while (browser != null ) {
7274 delay(50 )
73- browser?.zoomLevel = configuration.zoomLevel
75+ try {
76+ browser?.let { Reflect .on(it).call(" setZoomLevel" , configuration.zoomLevel) }
77+ } catch (ignore: ReflectException ) {
78+ }
7479 }
7580 }
7681
Original file line number Diff line number Diff line change 44
55## [ Unreleased]
66### Added
7+ - Ability to configure plugin via ` .spp/spp-plugin.yml ` file
78
89### Changed
910
1213### Removed
1314
1415### Fixed
16+ - Backwards compatibility issues
1517
1618### Security
1719
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ plugins {
88 id(" maven-publish" )
99}
1010
11+ val joorVersion: String by project
1112val jacksonVersion: String by project
1213val vertxVersion: String by project
1314val kotlinVersion = ext.get(" kotlinVersion" )
@@ -66,6 +67,7 @@ dependencies {
6667 implementation(" com.github.sourceplusplus.protocol:protocol:$projectVersion " )
6768 }
6869
70+ implementation(" org.jooq:joor:$joorVersion " )
6971 implementation(" com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion " )
7072 implementation(" org.apache.commons:commons-text:1.9" )
7173 implementation(" com.github.sh5i:git-stein:v0.5.0" )
@@ -74,7 +76,6 @@ dependencies {
7476 implementation(" io.vertx:vertx-lang-kotlin:$vertxVersion " )
7577 implementation(" io.vertx:vertx-lang-kotlin-coroutines:$vertxVersion " )
7678 implementation(" io.vertx:vertx-web:$vertxVersion " )
77- // implementation("io.vertx:vertx-service-discovery:$vertxVersion")
7879 implementation(files(" .ext/vertx-service-discovery-4.0.3-SNAPSHOT.jar" ))
7980 implementation(" io.vertx:vertx-service-proxy:$vertxVersion " )
8081 implementation(" io.vertx:vertx-tcp-eventbus-bridge:$vertxVersion " )
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ object SourceMarkerPlugin {
168168 DatabindCodec .mapper().registerModule(GuavaModule ())
169169 DatabindCodec .mapper().registerModule(Jdk8Module ())
170170 DatabindCodec .mapper().registerModule(JavaTimeModule ())
171- DatabindCodec .mapper().registerModule(KotlinModule ())
171+ DatabindCodec .mapper().registerModule(KotlinModule . Builder ().build ())
172172 DatabindCodec .mapper().enable(SerializationFeature .WRITE_ENUMS_USING_TO_STRING )
173173 DatabindCodec .mapper().enable(DeserializationFeature .READ_ENUMS_USING_TO_STRING )
174174
You can’t perform that action at this time.
0 commit comments