Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit b112733

Browse files
committed
fix: execute in BGT to avoid freezing EDT (#963)
Signed-off-by: Andre Dietisheim <[email protected]>
1 parent c78cfb3 commit b112733

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/jboss/tools/intellij/openshift/actions/project/CreateProjectAction.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
package org.jboss.tools.intellij.openshift.actions.project;
1212

1313
import com.intellij.notification.Notification;
14+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
1415
import com.intellij.openapi.actionSystem.AnActionEvent;
1516
import com.intellij.openapi.progress.ProgressIndicator;
1617
import com.intellij.openapi.project.Project;
@@ -148,4 +149,10 @@ private boolean isLoggedIn(Object node) {
148149
private boolean isRoot(Object node) {
149150
return node instanceof ApplicationsRootNode;
150151
}
152+
153+
@Override
154+
public @NotNull ActionUpdateThread getActionUpdateThread() {
155+
return ActionUpdateThread.BGT;
156+
}
157+
151158
}

0 commit comments

Comments
 (0)