Skip to content

Commit

Permalink
FBP-73. Improve injector
Browse files Browse the repository at this point in the history
  • Loading branch information
valb3r committed Jul 22, 2023
1 parent 25b299f commit 756e006
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions activiti-intellij-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ sourceSets {
}

intellij {
version = "IC-2021.3"
version = intellijPlatform
pluginName = 'activiti-bpmn-plugin'
updateSinceUntilBuild = false
plugins = ["java"]
plugins = intellijPlatformPlugins
}

runPluginVerifier {
ideVersions = ["IU-2021.3"]
ideVersions = ["IU-2021.3", "IC-2021.3"]
}

verifyPlugin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ abstract class DefaultDelegateExpressionUiInjector: MultiHostInjector {

private fun injectSpel(context: PsiLanguageInjectionHost, registrar: MultiHostRegistrar) {
val text = context.text
val language = Language.getRegisteredLanguages().firstOrNull { it.id == "SpEL" } ?:
Language.getRegisteredLanguages().firstOrNull { it.id == "JAVA" } ?: return
val language = Language.getRegisteredLanguages().firstOrNull { it.id == "SpEL" } ?: return
registrar.startInjecting(language)
if (context.text.contains(spelStart) && context.text.endsWith(spelEnd)) {
registrar.addPlace("", "", context, TextRange(3, text.length - 2))
Expand Down
2 changes: 1 addition & 1 deletion camunda-intellij-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ intellij {
}

runPluginVerifier {
ideVersions = ["IU-2021.3"]
ideVersions = ["IU-2021.3", "IC-2021.3"]
}

verifyPlugin {
Expand Down
2 changes: 1 addition & 1 deletion flowable-intellij-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ intellij {
}

runPluginVerifier {
ideVersions = ["IU-2021.3"]
ideVersions = ["IU-2021.3", "IC-2021.3"]
}

verifyPlugin {
Expand Down

0 comments on commit 756e006

Please sign in to comment.