Skip to content

Commit 2474d44

Browse files
authored
fix: corrected deprecated usage of ModuleLister.moduleAdded (#732) (#740)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent c78cfb3 commit 2474d44

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/validate_IJ_versions.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
IJ: [ 2022.3, 2023.1, 2023.2, 2023.3, 2024.1, 2024.2, 2024.3 ]
12+
IJ: [ 2023.1, 2023.2, 2023.3, 2024.1, 2024.2, 2024.3 ]
1313

1414
steps:
1515
- name: Checkout Code

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ platformBundledPlugins=com.intellij.java, org.jetbrains.plugins.yaml, org.jetbra
1414
platformPlugins=com.redhat.devtools.intellij.telemetry:1.2.1.62, com.redhat.devtools.intellij.kubernetes:1.4.0.4
1515

1616
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
17-
pluginSinceBuild=223
17+
pluginSinceBuild=231
1818

1919
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
2020
kotlin.stdlib.default.dependency=false

src/main/java/org/jboss/tools/intellij/openshift/tree/application/ApplicationsRootNode.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,14 @@ protected void loadProjectModel(OdoFacade odo, Project project) {
181181
}
182182

183183
@Override
184-
public void moduleAdded(@NotNull Project project, @NotNull Module module) {
185-
addContext(getOdo().getNow(null), ProjectUtils.getModuleRoot(module));
184+
public void modulesAdded(@NotNull Project project, @NotNull List<? extends Module> modules) {
185+
Odo odo = getOdo().getNow(null);
186+
if (odo == null) {
187+
return;
188+
}
189+
modules.forEach(module ->
190+
addContext(odo, ProjectUtils.getModuleRoot(module))
191+
);
186192
}
187193

188194
@Override

0 commit comments

Comments
 (0)