mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Support PlatformDataKeys.SELECTED_ITEMS in project view
reference: OC-16334 Rework AppCode project view actions to work correctly with standard project and scope views
This commit is contained in:
@@ -1157,6 +1157,11 @@ public class ProjectViewImpl extends ProjectView implements PersistentStateCompo
|
||||
return selectedElements.isEmpty() ? null : selectedElements.toArray(new NamedLibraryElement[selectedElements.size()]);
|
||||
}
|
||||
|
||||
if (PlatformDataKeys.SELECTED_ITEMS.is(dataId)) {
|
||||
final AbstractProjectViewPane viewPane = getCurrentProjectViewPane();
|
||||
return viewPane == null ? null : viewPane.getSelectedElements();
|
||||
}
|
||||
|
||||
if (QuickActionProvider.KEY.is(dataId)) {
|
||||
return ProjectViewImpl.this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user