From c8f50b3f799b404d70074800c8162f62ef008952 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 12 Apr 2011 11:04:48 +0200 Subject: [PATCH] select all name with dots in rename dialog (IDEA-67916) --- .../src/com/intellij/refactoring/ui/NameSuggestionsField.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/refactoring/ui/NameSuggestionsField.java b/platform/lang-impl/src/com/intellij/refactoring/ui/NameSuggestionsField.java index 22994aeced58..ccdf4202f269 100644 --- a/platform/lang-impl/src/com/intellij/refactoring/ui/NameSuggestionsField.java +++ b/platform/lang-impl/src/com/intellij/refactoring/ui/NameSuggestionsField.java @@ -118,7 +118,7 @@ public class NameSuggestionsField extends JPanel { public void run() { Editor editor = getEditor(); if (editor == null) return; - final int pos = editor.getDocument().getText().indexOf('.'); + final int pos = editor.getDocument().getText().lastIndexOf('.'); if (pos > 0) { editor.getSelectionModel().setSelection(0, pos); editor.getCaretModel().moveToOffset(pos);