mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
minor fixes
This commit is contained in:
@@ -78,7 +78,7 @@ public class JavaScratchConfigurable extends SettingsEditor<JavaScratchConfigura
|
||||
toSelect = LocalFileSystem.getInstance().findFileByPath(scratchesRoot);
|
||||
}
|
||||
final VirtualFile file =
|
||||
FileChooser.chooseFile(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor(), myScratchPathField, project, toSelect);
|
||||
FileChooser.chooseFile(FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor(), myScratchPathField.getComponent(), project, toSelect);
|
||||
if (file != null) {
|
||||
setVFileToEditor(file);
|
||||
}
|
||||
@@ -138,12 +138,7 @@ public class JavaScratchConfigurable extends SettingsEditor<JavaScratchConfigura
|
||||
}
|
||||
|
||||
private void setVFileToEditor(VirtualFile file) {
|
||||
if (file != null) {
|
||||
myScratchPathField.getComponent().setText(FileUtil.toSystemDependentName(file.getPath()));
|
||||
}
|
||||
else {
|
||||
myScratchPathField.setText("");
|
||||
}
|
||||
myScratchPathField.getComponent().setText(file != null? FileUtil.toSystemDependentName(file.getPath()): "");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user