mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 22:31:24 +00:00
refactor: remove success notification upon insert at caret action
This commit is contained in:
parent
c417ccadac
commit
a81bfa1005
2 changed files with 3 additions and 8 deletions
|
|
@ -36,7 +36,7 @@ public class InsertAtCaretAction extends TrackableAction {
|
|||
return;
|
||||
}
|
||||
|
||||
insertTextAtCaret(mainEditor, locationOnScreen);
|
||||
insertTextAtCaret(mainEditor);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
@ -54,16 +54,11 @@ public class InsertAtCaretAction extends TrackableAction {
|
|||
.orElse(null);
|
||||
}
|
||||
|
||||
private void insertTextAtCaret(Editor mainEditor, @Nullable Point locationOnScreen) {
|
||||
private void insertTextAtCaret(Editor mainEditor) {
|
||||
runUndoTransparentWriteAction(() -> {
|
||||
mainEditor.getDocument().insertString(
|
||||
mainEditor.getCaretModel().getOffset(),
|
||||
editor.getDocument().getText());
|
||||
if (locationOnScreen != null) {
|
||||
OverlayUtil.showInfoBalloon(
|
||||
"Text successfully inserted at the current cursor position.",
|
||||
locationOnScreen);
|
||||
}
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue