mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[service-view] fix evaluating root contributor for drag source
GitOrigin-RevId: 5cd8a61b5448bc57e8e4afab9dd8828fe9427749
This commit is contained in:
committed by
intellij-monorepo-bot
parent
53d976c226
commit
f0800b05a3
@@ -110,13 +110,13 @@ class ServiceViewDragHelper {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static ServiceViewContributor getTheOnlyContributor(List<ServiceViewItem> nodes) {
|
||||
static ServiceViewContributor getTheOnlyContributor(List<ServiceViewItem> nodes) {
|
||||
ServiceViewContributor result = null;
|
||||
for (ServiceViewItem node : nodes) {
|
||||
if (result == null) {
|
||||
result = node.getContributor();
|
||||
result = node.getRootContributor();
|
||||
}
|
||||
else if (result != node.getContributor()) {
|
||||
else if (result != node.getRootContributor()) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user