mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show in conflicts view only usages which are not safe to delete (IDEA-154982)
This commit is contained in:
@@ -219,7 +219,9 @@ public class SafeDeleteProcessor extends BaseRefactoringProcessor {
|
||||
final int exitCode = dialog.getExitCode();
|
||||
prepareSuccessful(); // dialog is always dismissed;
|
||||
if (exitCode == UnsafeUsagesDialog.VIEW_USAGES_EXIT_CODE) {
|
||||
showUsages(usages);
|
||||
showUsages(Arrays.stream(usages)
|
||||
.filter(usage -> usage instanceof SafeDeleteReferenceUsageInfo &&
|
||||
!((SafeDeleteReferenceUsageInfo)usage).isSafeDelete()).toArray(UsageInfo[]::new));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user