mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
select all name with dots in rename dialog (IDEA-67916)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user