diff options
Diffstat (limited to 'platform/platform-impl/src/com/intellij/openapi/editor/textarea/TextComponentCaret.java')
-rw-r--r-- | platform/platform-impl/src/com/intellij/openapi/editor/textarea/TextComponentCaret.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/platform-impl/src/com/intellij/openapi/editor/textarea/TextComponentCaret.java b/platform/platform-impl/src/com/intellij/openapi/editor/textarea/TextComponentCaret.java index 92ef12c46558..48ba57e150cf 100644 --- a/platform/platform-impl/src/com/intellij/openapi/editor/textarea/TextComponentCaret.java +++ b/platform/platform-impl/src/com/intellij/openapi/editor/textarea/TextComponentCaret.java @@ -151,6 +151,12 @@ public class TextComponentCaret extends UserDataHolderBase implements Caret { } @Override + public void setSelection(int startOffset, int endOffset, boolean updateSystemSelection) { + // updating system selection is not supported currently for TextComponentEditor + setSelection(startOffset, endOffset); + } + + @Override public void setSelection(int startOffset, @Nullable VisualPosition endPosition, int endOffset) { getSelectionModel().setSelection(startOffset, endPosition, endOffset); } @@ -161,6 +167,13 @@ public class TextComponentCaret extends UserDataHolderBase implements Caret { } @Override + public void setSelection(@Nullable VisualPosition startPosition, int startOffset, @Nullable VisualPosition endPosition, int endOffset, + boolean updateSystemSelection) { + // updating system selection is not supported currently for TextComponentEditor + setSelection(startPosition, startOffset, endPosition, endOffset); + } + + @Override public void removeSelection() { getSelectionModel().removeSelection(); } |