mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-15 11:12:59 +07:00
move: do not show source root chooser for one root projects
This commit is contained in:
+1
-1
@@ -168,7 +168,7 @@ public abstract class DestinationFolderComboBox extends ComboboxWithBrowseButton
|
||||
}
|
||||
final PsiDirectory selectedPsiDirectory = selectedItem.getDirectory();
|
||||
VirtualFile selectedDestination = selectedPsiDirectory.getVirtualFile();
|
||||
if (showChooserWhenDefault && selectedDestination == myInitialTargetDirectory.getVirtualFile()) {
|
||||
if (showChooserWhenDefault && selectedDestination == myInitialTargetDirectory.getVirtualFile() && mySourceRoots.length > 1) {
|
||||
selectedDestination = MoveClassesOrPackagesUtil.chooseSourceRoot(targetPackage, mySourceRoots, myInitialTargetDirectory);
|
||||
}
|
||||
if (selectedDestination == null) return null;
|
||||
|
||||
Reference in New Issue
Block a user