mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-13562 New Project: there is no focus in project location
This commit is contained in:
+6
-1
@@ -289,7 +289,12 @@ public class ProjectSettingsStepBase extends AbstractActionWithPanel implements
|
||||
protected final LabeledComponent<TextFieldWithBrowseButton> createLocationComponent() {
|
||||
myLocationField = new TextFieldWithBrowseButton();
|
||||
myProjectDirectory = findSequentNonExistingUntitled();
|
||||
myLocationField.setText(myProjectDirectory.toString());
|
||||
final String projectLocation = myProjectDirectory.toString();
|
||||
myLocationField.setText(projectLocation);
|
||||
final int index = projectLocation.lastIndexOf(File.separator);
|
||||
if (index > 0) {
|
||||
myLocationField.getTextField().select(index + 1, projectLocation.length());
|
||||
}
|
||||
|
||||
final FileChooserDescriptor descriptor = FileChooserDescriptorFactory.createSingleFolderDescriptor();
|
||||
myLocationField.addBrowseFolderListener("Select base directory", "Select base directory for the Project",
|
||||
|
||||
Reference in New Issue
Block a user