mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-11-23 15:44:48 +01:00
fix: run actions on EDT thread
no clue what that is but intellij seems to want it
This commit is contained in:
parent
d48954abfc
commit
ecdba4ae01
9 changed files with 54 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.buffer;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
|
@ -101,4 +102,9 @@ public class BufferAttachAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isInWorkspace());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.buffer;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
|
@ -27,4 +28,9 @@ public class BufferCreateAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isInWorkspace());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.buffer;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
|
@ -27,4 +28,9 @@ public class BufferDeleteAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isInWorkspace());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.buffer;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
|
@ -46,4 +47,9 @@ public class BufferDetachAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isInWorkspace());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.buffer;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
|
@ -76,4 +77,9 @@ public class BufferShareAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isInWorkspace());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.buffer;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
|
@ -67,4 +68,9 @@ public class BufferSyncAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isInWorkspace());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.workspace;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
|
@ -32,4 +33,9 @@ public class WorkspaceCreateAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isConnected());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.workspace;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
|
@ -36,4 +37,9 @@ public class WorkspaceDeleteAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isConnected());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package mp.code.intellij.actions.workspace;
|
||||
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
|
@ -52,4 +53,9 @@ public class WorkspaceInviteAction extends AnAction {
|
|||
public void update(@NotNull AnActionEvent e) {
|
||||
e.getPresentation().setEnabled(CodeMP.isConnected());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull ActionUpdateThread getActionUpdateThread() {
|
||||
return ActionUpdateThread.EDT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue