select all name with dots in rename dialog (IDEA-67916)

This commit is contained in:
anna
2011-04-12 12:39:51 +02:00
parent 5b0daf6a60
commit c8f50b3f79
@@ -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);