mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
drop BackgroundableDataProvider
GitOrigin-RevId: 97284b0ae7f0d090cb6e1656a23fdd9261202fee
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4a7b645f8c
commit
8a8f1c7862
@@ -1265,10 +1265,6 @@ c:com.intellij.openapi.actionSystem.AnActionEventVisitor
|
||||
f:com.intellij.openapi.actionSystem.AnActionResult
|
||||
- isIgnored():Z
|
||||
- isPerformed():Z
|
||||
com.intellij.openapi.actionSystem.BackgroundableDataProvider
|
||||
- com.intellij.openapi.actionSystem.DataProvider
|
||||
- a:createBackgroundDataProvider():com.intellij.openapi.actionSystem.DataProvider
|
||||
- getData(java.lang.String):java.lang.Object
|
||||
c:com.intellij.openapi.actionSystem.CommonDataKeys
|
||||
- sf:CARET:com.intellij.openapi.actionSystem.DataKey
|
||||
- sf:EDITOR:com.intellij.openapi.actionSystem.DataKey
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.actionSystem;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/** @deprecated Use {@link PlatformCoreDataKeys#BGT_DATA_PROVIDER} instead */
|
||||
@Deprecated(forRemoval = true)
|
||||
public interface BackgroundableDataProvider extends DataProvider {
|
||||
|
||||
/**
|
||||
* Called on UI thread, should be fast: just get the information from Swing components needed to create the actual asynchronous data provider.
|
||||
* @return a data provider that might be called in a background thread (so shouldn't access any Swing hierarchy).
|
||||
*/
|
||||
@Nullable
|
||||
DataProvider createBackgroundDataProvider();
|
||||
|
||||
@Override
|
||||
default @Nullable Object getData(@NotNull String dataId) {
|
||||
DataProvider async = createBackgroundDataProvider();
|
||||
return async == null ? null : async.getData(dataId);
|
||||
}
|
||||
}
|
||||
@@ -146,11 +146,6 @@ public class DataManagerImpl extends DataManager {
|
||||
else if (component instanceof JComponent) {
|
||||
dataProvider = getDataProvider((JComponent)component);
|
||||
}
|
||||
|
||||
if (dataProvider instanceof BackgroundableDataProvider) {
|
||||
dataProvider = ((BackgroundableDataProvider)dataProvider).createBackgroundDataProvider();
|
||||
}
|
||||
|
||||
return dataProvider;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user