-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: ensure actions are updated on EDT thread
- Update BaseChangeSplitLayoutAction, ZenUmlEditorOnlyLayoutChangeAction, and ShowSequenceAction to specify EDT thread for action updates - Add getActionUpdateThread() method to each action class, returning ActionUpdateThread.EDT - This change ensures that action updates are performed on the Event Dispatch Thread, improving performance and avoiding potential threading issues
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...intellij/plugins/markdown/ui/actions/editorLayout/ZenUmlEditorOnlyLayoutChangeAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
package org.intellij.plugins.markdown.ui.actions.editorLayout; | ||
|
||
import com.intellij.openapi.actionSystem.ActionUpdateThread; | ||
import org.intellij.plugins.markdown.ui.split.SplitFileEditor; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class ZenUmlEditorOnlyLayoutChangeAction extends BaseChangeSplitLayoutAction { | ||
protected ZenUmlEditorOnlyLayoutChangeAction() { | ||
super(SplitFileEditor.SplitEditorLayout.FIRST); | ||
} | ||
|
||
@Override | ||
@NotNull | ||
public ActionUpdateThread getActionUpdateThread() { | ||
return ActionUpdateThread.EDT; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters