mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-207762 shorten the code
GitOrigin-RevId: 70b86783070f023d90514d26587e44c680d0b0b0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6ec27aa2e0
commit
d53f2dcacb
@@ -273,12 +273,8 @@ public final class TypedHandler extends TypedActionHandlerBase {
|
||||
}
|
||||
|
||||
private static void setTypedEvent(@NotNull Editor editor, char charTyped, @Nullable TypedEvent.TypedHandlerPhase phase) {
|
||||
if (phase == null) {
|
||||
editor.putUserData(CompletionPhase.AUTO_POPUP_TYPED_EVENT, null);
|
||||
}
|
||||
else {
|
||||
editor.putUserData(CompletionPhase.AUTO_POPUP_TYPED_EVENT, new TypedEvent(charTyped, editor.getCaretModel().getOffset(), phase));
|
||||
}
|
||||
TypedEvent event = phase == null ? null : new TypedEvent(charTyped, editor.getCaretModel().getOffset(), phase);
|
||||
editor.putUserData(CompletionPhase.AUTO_POPUP_TYPED_EVENT, event);
|
||||
}
|
||||
|
||||
@FunctionalInterface
|
||||
|
||||
Reference in New Issue
Block a user