Skip to content

Commit 0e93a9a

Browse files
committed
fix: default update thread for actions is EDT (#218)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent e139d89 commit 0e93a9a

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

.github/workflows/IJ.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
IJ: [IC-2021.1, IC-2021.2, IC-2021.3, IC-2022.1, IC-2022.2, IC-2022.3, IC-2023.1, IC-2023.2]
17+
IJ: [IC-2022.3, IC-2023.1, IC-2023.2, IC-2024.1]
1818

1919
steps:
2020
- uses: actions/checkout@v2

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v2
18-
- name: Set up JDK 11
18+
- name: Set up JDK 17
1919
uses: actions/setup-java@v1
2020
with:
21-
java-version: 11
21+
java-version: 17
2222
- name: Grant execute permission for gradlew
2323
run: chmod +x gradlew
2424
- name: Build with Gradle
@@ -33,10 +33,10 @@ jobs:
3333

3434
steps:
3535
- uses: actions/checkout@v2
36-
- name: Set up JDK 11
36+
- name: Set up JDK 17
3737
uses: actions/setup-java@v1
3838
with:
39-
java-version: 11
39+
java-version: 17
4040
- name: Grant execute permission for gradlew
4141
run: chmod +x gradlew
4242
- name: Build with Gradle
@@ -51,10 +51,10 @@ jobs:
5151

5252
steps:
5353
- uses: actions/checkout@v2
54-
- name: Set up JDK 11
54+
- name: Set up JDK 17
5555
uses: actions/setup-java@v1
5656
with:
57-
java-version: 11
57+
java-version: 17
5858
- name: Grant execute permission for gradlew
5959
run: chmod +x gradlew
6060
- name: Build with Gradle

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Set up JDK 11
11+
- name: Set up JDK 17
1212
uses: actions/setup-java@v1
1313
with:
1414
java-version: 11

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
node('rhel7'){
44
def recipientList = '[email protected]'
55

6-
def javaHome = tool 'openjdk-11'
6+
def javaHome = tool 'openjdk-17'
77
env.JAVA_HOME = "${javaHome}"
88

99
try {

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ideaVersion=IC-2021.1
1+
ideaVersion=IC-2022.3
22
projectVersion=1.9.4-SNAPSHOT
33
nexusUser=invalid
44
nexusPassword=invalid

src/main/java/com/redhat/devtools/intellij/common/actions/StructureTreeAction.java

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
package com.redhat.devtools.intellij.common.actions;
1212

1313
import com.intellij.ide.util.treeView.NodeDescriptor;
14+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
15+
import org.jetbrains.annotations.NotNull;
1416

1517
import javax.swing.tree.DefaultMutableTreeNode;
1618

@@ -37,4 +39,9 @@ public static <T> T getElement(Object selected) {
3739
protected Object adjust(Object selected) {
3840
return getElement(selected);
3941
}
42+
43+
@Override
44+
public @NotNull ActionUpdateThread getActionUpdateThread() {
45+
return ActionUpdateThread.EDT;
46+
}
4047
}

0 commit comments

Comments
 (0)