mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
deprecate createActions — LanguageConsoleImpl is not intended to be extended (actually, it is not used in our code, but we keep method to ensure backward compatibility)
This commit is contained in:
@@ -261,6 +261,8 @@ public class LanguageConsoleImpl implements Disposable, TypeSafeDataProvider {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//noinspection deprecation
|
||||
for (AnAction action : createActions()) {
|
||||
action.registerCustomShortcutSet(action.getShortcutSet(), myConsoleEditor.getComponent());
|
||||
}
|
||||
@@ -272,6 +274,10 @@ public class LanguageConsoleImpl implements Disposable, TypeSafeDataProvider {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Deprecated
|
||||
/**
|
||||
* @deprecated LanguageConsoleImpl is not intended to be extended
|
||||
*/
|
||||
protected AnAction[] createActions() {
|
||||
return AnAction.EMPTY_ARRAY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user