mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
[platform ide] API cleanup: remove unused deprecated API scheduled for removal (IJPL-178044)
GitOrigin-RevId: 1abd842e119f3b7e0814d9f75b5d379db47590e0
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2c9f11f674
commit
1661f90d44
@@ -293,7 +293,6 @@ c:com.intellij.openapi.editor.ex.EditorSettingsExternalizable
|
||||
- sf:BLINKING_RANGE:com.intellij.ide.ui.UINumericRange
|
||||
- sf:PROP_BREADCRUMBS_PER_LANGUAGE:java.lang.String
|
||||
- sf:PROP_DOC_COMMENT_RENDERING:java.lang.String
|
||||
- sf:PROP_VIRTUAL_SPACE:java.lang.String
|
||||
- sf:STRIP_TRAILING_SPACES_CHANGED:java.lang.String
|
||||
- sf:STRIP_TRAILING_SPACES_NONE:java.lang.String
|
||||
- sf:STRIP_TRAILING_SPACES_WHOLE:java.lang.String
|
||||
|
||||
@@ -6,7 +6,6 @@ import org.jetbrains.annotations.ApiStatus;
|
||||
/**
|
||||
* A type of the rule. Rules can trigger recursive invocation of other rules of the same type.
|
||||
* <ul>
|
||||
* <li><b>{@link GetDataRuleType#FAST}</b> - a fast rule that can be invoked on UI thread</li>
|
||||
* <li><b>{@link GetDataRuleType#PROVIDER}</b> - a classic rule invoked on a single level data provider</li>
|
||||
* <li><b>{@link GetDataRuleType#CONTEXT}</b> - a classic rule invoked on the full context data provider</li>
|
||||
* </ul>
|
||||
@@ -26,12 +25,5 @@ public enum GetDataRuleType {
|
||||
/**
|
||||
* a rule that operates on the full data-context level
|
||||
*/
|
||||
CONTEXT,
|
||||
|
||||
/**
|
||||
* same as {@link #PROVIDER} but can also be invoked on the UI thread
|
||||
* @deprecated Use {@link com.intellij.openapi.actionSystem.UiDataRule} instead.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
FAST
|
||||
CONTEXT
|
||||
}
|
||||
|
||||
@@ -30,11 +30,6 @@ import java.util.stream.Collectors;
|
||||
|
||||
@State(name = "EditorSettings", storages = @Storage("editor.xml"), category = SettingsCategory.CODE, perClient = true)
|
||||
public class EditorSettingsExternalizable implements PersistentStateComponent<EditorSettingsExternalizable.OptionSet> {
|
||||
/**
|
||||
* @deprecated Use {@link PropNames#PROP_IS_VIRTUAL_SPACE} instead
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static final @NonNls String PROP_VIRTUAL_SPACE = PropNames.PROP_IS_VIRTUAL_SPACE;
|
||||
/**
|
||||
* @deprecated Use {@link PropNames#PROP_BREADCRUMBS_PER_LANGUAGE} instead
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,6 @@ f:com.intellij.CommonBundle
|
||||
- s:getYesForAllButtonText():java.lang.String
|
||||
- s:message(java.lang.String,java.lang.Object[]):java.lang.String
|
||||
- s:message(java.util.ResourceBundle,java.lang.String,java.lang.Object[]):java.lang.String
|
||||
- s:messageOfNull(java.util.ResourceBundle,java.lang.String,java.lang.Object[]):java.lang.String
|
||||
- s:messageOrDefault(java.util.ResourceBundle,java.lang.String,java.lang.String,java.lang.Object[]):java.lang.String
|
||||
- s:messagePointer(java.lang.String,java.lang.Object[]):java.util.function.Supplier
|
||||
- s:settingsAction():java.lang.String
|
||||
@@ -558,7 +557,6 @@ f:com.intellij.notification.NotificationGroup
|
||||
- <init>(java.lang.String,com.intellij.notification.NotificationDisplayType,Z,java.lang.String,javax.swing.Icon,java.lang.String,com.intellij.openapi.extensions.PluginId):V
|
||||
- b:<init>(java.lang.String,com.intellij.notification.NotificationDisplayType,Z,java.lang.String,javax.swing.Icon,java.lang.String,com.intellij.openapi.extensions.PluginId,I,kotlin.jvm.internal.DefaultConstructorMarker):V
|
||||
- sf:balloonGroup(java.lang.String):com.intellij.notification.NotificationGroup
|
||||
- sf:balloonGroup(java.lang.String,com.intellij.openapi.extensions.PluginId):com.intellij.notification.NotificationGroup
|
||||
- sf:balloonGroup(java.lang.String,java.lang.String):com.intellij.notification.NotificationGroup
|
||||
- sf:createIdWithTitle(java.lang.String,java.lang.String):java.lang.String
|
||||
- f:createNotification():com.intellij.notification.Notification
|
||||
@@ -594,7 +592,6 @@ f:com.intellij.notification.NotificationGroup
|
||||
- sf:toolWindowGroup(java.lang.String,java.lang.String,Z,com.intellij.openapi.extensions.PluginId):com.intellij.notification.NotificationGroup
|
||||
f:com.intellij.notification.NotificationGroup$Companion
|
||||
- f:balloonGroup(java.lang.String):com.intellij.notification.NotificationGroup
|
||||
- f:balloonGroup(java.lang.String,com.intellij.openapi.extensions.PluginId):com.intellij.notification.NotificationGroup
|
||||
- f:balloonGroup(java.lang.String,java.lang.String):com.intellij.notification.NotificationGroup
|
||||
- f:createIdWithTitle(java.lang.String,java.lang.String):java.lang.String
|
||||
- f:findRegisteredGroup(java.lang.String):com.intellij.notification.NotificationGroup
|
||||
|
||||
@@ -53,14 +53,6 @@ public final class CommonBundle {
|
||||
return BundleBase.messageOrDefault(bundle, key, null, params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link AbstractBundle#messageOrNull(ResourceBundle, String, Object...)}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static @Nullable @Nls String messageOfNull(@NotNull ResourceBundle bundle, @NotNull String key, Object @NotNull ... params) {
|
||||
return AbstractBundle.messageOrNull(bundle, key, params);
|
||||
}
|
||||
|
||||
public static @NotNull @Button String getCancelButtonText() {
|
||||
return message("button.cancel");
|
||||
}
|
||||
|
||||
@@ -105,13 +105,6 @@ class NotificationGroup private constructor(val displayId: String,
|
||||
findRegisteredNotificationGroup(displayId)
|
||||
?: NotificationGroup(displayId = displayId, displayType = NotificationDisplayType.BALLOON, title = title, registerGroup = true)
|
||||
|
||||
@JvmStatic
|
||||
@Deprecated("Use com.intellij.notification.impl.NotificationGroupEP and com.intellij.notification.NotificationGroupManager")
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
fun balloonGroup(displayId: String, pluginId: PluginId): NotificationGroup =
|
||||
findRegisteredNotificationGroup(displayId)
|
||||
?: NotificationGroup(displayId, NotificationDisplayType.BALLOON, pluginId = pluginId, registerGroup = true)
|
||||
|
||||
@JvmStatic
|
||||
@Deprecated("Use com.intellij.notification.impl.NotificationGroupEP and com.intellij.notification.NotificationGroupManager")
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
|
||||
@@ -921,7 +921,6 @@ a:com.intellij.ide.ui.LafManager
|
||||
- a:resetPreferredEditorColorScheme():V
|
||||
- a:setAutodetect(Z):V
|
||||
- a:setCurrentLookAndFeel(com.intellij.ide.ui.laf.UIThemeLookAndFeelInfo,Z):V
|
||||
- setCurrentLookAndFeel(javax.swing.UIManager$LookAndFeelInfo):V
|
||||
- setCurrentUIThemeLookAndFeel(com.intellij.ide.ui.laf.UIThemeLookAndFeelInfo):V
|
||||
- a:setPreferredDarkLaf(com.intellij.ide.ui.laf.UIThemeLookAndFeelInfo):V
|
||||
- a:setPreferredLightLaf(com.intellij.ide.ui.laf.UIThemeLookAndFeelInfo):V
|
||||
@@ -1434,7 +1433,6 @@ f:com.intellij.openapi.actionSystem.EmptyAction
|
||||
- s:createEmptyAction(java.lang.String,javax.swing.Icon,Z):com.intellij.openapi.actionSystem.AnAction
|
||||
- getActionUpdateThread():com.intellij.openapi.actionSystem.ActionUpdateThread
|
||||
- s:registerWithShortcutSet(java.lang.String,com.intellij.openapi.actionSystem.ShortcutSet,javax.swing.JComponent):com.intellij.openapi.actionSystem.AnAction
|
||||
- s:setupAction(com.intellij.openapi.actionSystem.AnAction,java.lang.String,javax.swing.JComponent):V
|
||||
- update(com.intellij.openapi.actionSystem.AnActionEvent):V
|
||||
- s:wrap(com.intellij.openapi.actionSystem.AnAction):com.intellij.openapi.actionSystem.AnAction
|
||||
c:com.intellij.openapi.actionSystem.EmptyAction$MyDelegatingAction
|
||||
@@ -1713,9 +1711,6 @@ c:com.intellij.openapi.actionSystem.ex.TooltipLinkProvider$TooltipLink
|
||||
- f:tooltip:java.lang.String
|
||||
- <init>(java.lang.String,java.lang.Runnable):V
|
||||
f:com.intellij.openapi.actionSystem.remoting.PermissionsKt
|
||||
a:com.intellij.openapi.application.ApplicationStarterEx
|
||||
- com.intellij.openapi.application.ApplicationStarter
|
||||
- <init>():V
|
||||
a:com.intellij.openapi.command.CommandAdapter
|
||||
- com.intellij.openapi.command.CommandListener
|
||||
- <init>():V
|
||||
@@ -3479,11 +3474,9 @@ Fc:com.intellij.openapi.ui.Messages
|
||||
- sf:CANCEL:I
|
||||
- sf:CANCEL_BUTTON:java.lang.String
|
||||
- sf:NO:I
|
||||
- sf:NO_BUTTON:java.lang.String
|
||||
- sf:OK:I
|
||||
- sf:OK_BUTTON:java.lang.String
|
||||
- sf:YES:I
|
||||
- sf:YES_BUTTON:java.lang.String
|
||||
- <init>():V
|
||||
- s:canShowMacSheetPanel():Z
|
||||
- s:configureMessagePaneUi(javax.swing.JTextPane,java.lang.String):javax.swing.JTextPane
|
||||
@@ -3793,7 +3786,6 @@ c:com.intellij.openapi.ui.TextFieldWithBrowseButton$NoPathCompletion
|
||||
c:com.intellij.openapi.ui.ThreeComponentsSplitter
|
||||
- javax.swing.JPanel
|
||||
- <init>():V
|
||||
- <init>(com.intellij.openapi.Disposable):V
|
||||
- <init>(Z):V
|
||||
- <init>(Z,Z):V
|
||||
- b:<init>(Z,Z,I,kotlin.jvm.internal.DefaultConstructorMarker):V
|
||||
@@ -5383,7 +5375,6 @@ f:com.intellij.ui.GuiUtils
|
||||
- s:removePotentiallyLeakingReferences(java.awt.Container):V
|
||||
- s:replaceJSplitPaneWithIDEASplitter(javax.swing.JComponent):V
|
||||
- s:replaceJSplitPaneWithIDEASplitter(javax.swing.JComponent,Z):V
|
||||
- s:runOrInvokeAndWait(java.lang.Runnable):V
|
||||
- s:showComponents(Z,java.awt.Component[]):V
|
||||
c:com.intellij.ui.HighlightableCellRenderer
|
||||
- com.intellij.ui.HighlightableComponent
|
||||
@@ -8795,7 +8786,6 @@ a:com.intellij.ui.treeStructure.SimpleNode
|
||||
- p:<init>(com.intellij.openapi.project.Project):V
|
||||
- p:<init>(com.intellij.openapi.project.Project,com.intellij.ide.util.treeView.NodeDescriptor):V
|
||||
- p:<init>(com.intellij.ui.treeStructure.SimpleNode):V
|
||||
- f:addColoredFragment(java.lang.String,com.intellij.ui.SimpleTextAttributes):V
|
||||
- p:doUpdate(com.intellij.ide.projectView.PresentationData):V
|
||||
- f:equals(java.lang.Object):Z
|
||||
- getChildAt(I):com.intellij.ui.treeStructure.SimpleNode
|
||||
@@ -9353,7 +9343,6 @@ c:com.intellij.util.net.HttpConfigurable
|
||||
- com.intellij.openapi.Disposable
|
||||
- com.intellij.openapi.components.PersistentStateComponent
|
||||
- AUTHENTICATION_CANCELLED:Z
|
||||
- CHECK_CONNECTION_URL:java.lang.String
|
||||
- KEEP_PROXY_PASSWORD:Z
|
||||
- LAST_ERROR:java.lang.String
|
||||
- PAC_URL:java.lang.String
|
||||
@@ -9641,7 +9630,6 @@ f:com.intellij.util.net.ssl.UntrustedCertificateStrategyWithReason
|
||||
- hashCode():I
|
||||
f:com.intellij.util.text.DateFormatUtil
|
||||
- sf:DAY:J
|
||||
- sf:DAY_FACTOR:J
|
||||
- sf:HOUR:J
|
||||
- sf:MINUTE:J
|
||||
- sf:MONTH:J
|
||||
|
||||
@@ -920,7 +920,6 @@ com.intellij.ui.tabs.JBTabs
|
||||
- a:findInfo(java.awt.event.MouseEvent):com.intellij.ui.tabs.TabInfo
|
||||
- a:findInfo(java.lang.Object):com.intellij.ui.tabs.TabInfo
|
||||
- a:getComponent():javax.swing.JComponent
|
||||
- a:getDataProvider():com.intellij.openapi.actionSystem.DataProvider
|
||||
- getDropArea():java.awt.Rectangle
|
||||
- a:getIndexOf(com.intellij.ui.tabs.TabInfo):I
|
||||
- a:getPresentation():com.intellij.ui.tabs.JBTabsPresentation
|
||||
@@ -936,7 +935,6 @@ com.intellij.ui.tabs.JBTabs
|
||||
- a:requestFocus():V
|
||||
- a:resetDropOver(com.intellij.ui.tabs.TabInfo):V
|
||||
- a:select(com.intellij.ui.tabs.TabInfo,Z):com.intellij.openapi.util.ActionCallback
|
||||
- a:setDataProvider(com.intellij.openapi.actionSystem.DataProvider):com.intellij.ui.tabs.JBTabs
|
||||
- a:setNavigationActionBinding(java.lang.String,java.lang.String):V
|
||||
- a:setPopupGroup(com.intellij.openapi.actionSystem.ActionGroup,java.lang.String,Z):com.intellij.ui.tabs.JBTabs
|
||||
- a:setPopupGroup(java.util.function.Supplier,java.lang.String,Z):com.intellij.ui.tabs.JBTabs
|
||||
|
||||
@@ -50,14 +50,6 @@ public abstract class LafManager {
|
||||
@ApiStatus.Internal
|
||||
public abstract @NotNull JComponent createSettingsToolbar();
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link LafManager#setCurrentUIThemeLookAndFeel(UIThemeLookAndFeelInfo)}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public void setCurrentLookAndFeel(@NotNull UIManager.LookAndFeelInfo lookAndFeelInfo) {
|
||||
setCurrentLookAndFeel((UIThemeLookAndFeelInfo)lookAndFeelInfo, false);
|
||||
}
|
||||
|
||||
public void setCurrentUIThemeLookAndFeel(@NotNull UIThemeLookAndFeelInfo lookAndFeelInfo) {
|
||||
setCurrentLookAndFeel(lookAndFeelInfo, false);
|
||||
}
|
||||
|
||||
@@ -58,12 +58,6 @@ public final class EmptyAction extends AnAction {
|
||||
return ActionUpdateThread.BGT;
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link ActionUtil#mergeFrom} and {@link AnAction#registerCustomShortcutSet} directly */
|
||||
@Deprecated(forRemoval = true)
|
||||
public static void setupAction(@NotNull AnAction action, @NotNull String id, @Nullable JComponent component) {
|
||||
ActionUtil.mergeFrom(action, id).registerCustomShortcutSet(component, null);
|
||||
}
|
||||
|
||||
/** @deprecated Use {@link ActionUtil#wrap(String)} and {@link AnAction#registerCustomShortcutSet} directly. */
|
||||
@Deprecated(forRemoval = true)
|
||||
public static @NotNull AnAction registerWithShortcutSet(@NotNull String id, @NotNull ShortcutSet shortcutSet, @NotNull JComponent component) {
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.application;
|
||||
|
||||
/** @deprecated override {@link ApplicationStarter} instead */
|
||||
@Deprecated(forRemoval = true)
|
||||
public abstract class ApplicationStarterEx implements ApplicationStarter {
|
||||
}
|
||||
@@ -114,14 +114,6 @@ public class Messages {
|
||||
@SuppressWarnings("HardCodedStringLiteral") @Deprecated
|
||||
public static final String OK_BUTTON = "OK";
|
||||
|
||||
/** @deprecated Use {@link #getYesButton()} instead */
|
||||
@SuppressWarnings("HardCodedStringLiteral") @Deprecated(forRemoval = true)
|
||||
public static final String YES_BUTTON = "&Yes";
|
||||
|
||||
/** @deprecated Use {@link #getNoButton()} instead */
|
||||
@SuppressWarnings("HardCodedStringLiteral") @Deprecated(forRemoval = true)
|
||||
public static final String NO_BUTTON = "&No";
|
||||
|
||||
/** @deprecated Use {@link #getCancelButton()} instead */
|
||||
@SuppressWarnings("HardCodedStringLiteral") @Deprecated
|
||||
public static final String CANCEL_BUTTON = "Cancel";
|
||||
|
||||
@@ -17,7 +17,6 @@ import com.intellij.ui.UIBundle
|
||||
import com.intellij.ui.scale.JBUIScale.scale
|
||||
import com.intellij.util.EventDispatcher
|
||||
import com.intellij.util.ui.*
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import java.awt.*
|
||||
import java.awt.event.ComponentEvent
|
||||
import java.awt.event.ComponentListener
|
||||
@@ -220,10 +219,6 @@ open class ThreeComponentsSplitter @JvmOverloads constructor(vertical: Boolean =
|
||||
}
|
||||
}
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated("Use {@link #ThreeComponentsSplitter()}")
|
||||
constructor(@Suppress("UNUSED_PARAMETER") parentDisposable: Disposable) : this(false)
|
||||
|
||||
var dividerWidth: Int = if (onePixelDividers) 1 else 7
|
||||
set(width) {
|
||||
if (width < 0) {
|
||||
|
||||
@@ -27,7 +27,6 @@ import javax.swing.table.TableColumnModel;
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import java.beans.PropertyChangeListener;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public final class GuiUtils {
|
||||
@@ -207,15 +206,6 @@ public final class GuiUtils {
|
||||
return UIUtil.colorToHex(color);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link Application#invokeAndWait}
|
||||
*/
|
||||
@SuppressWarnings("RedundantThrows")
|
||||
@Deprecated(forRemoval = true)
|
||||
public static void runOrInvokeAndWait(@NotNull Runnable runnable) throws InvocationTargetException, InterruptedException {
|
||||
ApplicationManager.getApplication().invokeAndWait(runnable);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use ModalityUiUtil instead
|
||||
*/
|
||||
|
||||
@@ -3,8 +3,6 @@ package com.intellij.ui.tabs;
|
||||
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.actionSystem.ActionGroup;
|
||||
import com.intellij.openapi.actionSystem.DataProvider;
|
||||
import com.intellij.openapi.actionSystem.DataSink;
|
||||
import com.intellij.openapi.util.ActionCallback;
|
||||
import com.intellij.openapi.util.ActiveRunnable;
|
||||
import com.intellij.ui.DropAreaAware;
|
||||
@@ -47,15 +45,6 @@ public interface JBTabs extends DropAreaAware {
|
||||
@NotNull
|
||||
JBTabsPresentation getPresentation();
|
||||
|
||||
/** Use {@link com.intellij.openapi.actionSystem.DataContext} API instead */
|
||||
@Deprecated(forRemoval = true)
|
||||
@Nullable
|
||||
DataProvider getDataProvider();
|
||||
|
||||
/** Override {@link com.intellij.openapi.actionSystem.UiDataProvider#uiDataSnapshot(DataSink)} instead */
|
||||
@Deprecated(forRemoval = true)
|
||||
JBTabs setDataProvider(@NotNull DataProvider dataProvider);
|
||||
|
||||
@NotNull
|
||||
List<TabInfo> getTabs();
|
||||
|
||||
|
||||
@@ -253,7 +253,6 @@ open class JBTabsImpl internal constructor(
|
||||
|
||||
@JvmField
|
||||
internal val separatorWidth: Int = JBUI.scale(1)
|
||||
private var dataProvider: DataProvider? = null
|
||||
private val deferredToRemove = WeakHashMap<Component, Component>()
|
||||
|
||||
final override val tabsPosition: JBTabsPosition
|
||||
@@ -3118,7 +3117,6 @@ open class JBTabsImpl internal constructor(
|
||||
}
|
||||
|
||||
override fun uiDataSnapshot(sink: DataSink) {
|
||||
DataSink.uiDataSnapshot(sink, dataProvider)
|
||||
sink[QuickActionProvider.KEY] = this@JBTabsImpl
|
||||
sink[MorePopupAware.KEY] = this@JBTabsImpl
|
||||
sink[JBTabsEx.NAVIGATION_ACTIONS_KEY] = this@JBTabsImpl
|
||||
@@ -3131,15 +3129,6 @@ open class JBTabsImpl internal constructor(
|
||||
val navigationActions: ActionGroup
|
||||
get() = myNavigationActions
|
||||
|
||||
@Suppress("removal", "OVERRIDE_DEPRECATION")
|
||||
override fun getDataProvider(): DataProvider? = dataProvider
|
||||
|
||||
@Suppress("removal", "OVERRIDE_DEPRECATION")
|
||||
override fun setDataProvider(dataProvider: DataProvider): JBTabsImpl {
|
||||
this.dataProvider = dataProvider
|
||||
return this
|
||||
}
|
||||
|
||||
private class DefaultDecorator : UiDecorator {
|
||||
override fun getDecoration(): UiDecoration {
|
||||
return UiDecoration(
|
||||
|
||||
@@ -122,15 +122,6 @@ public abstract class SimpleNode extends PresentableNodeDescriptor<Object> imple
|
||||
getTemplatePresentation().clearText();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #getTemplatePresentation()} to set constant presentation right in node's constructor
|
||||
* or update presentation dynamically by defining {@link #update(PresentationData)}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public final void addColoredFragment(String aText, SimpleTextAttributes aAttributes) {
|
||||
getTemplatePresentation().addText(new ColoredFragment(aText, null, aAttributes));
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates properties of the node's presentation.
|
||||
* <p>
|
||||
|
||||
@@ -87,9 +87,6 @@ public class HttpConfigurable implements PersistentStateComponent<HttpConfigurab
|
||||
/** @deprecated without replacement */
|
||||
@Deprecated(forRemoval = true) public transient String LAST_ERROR;
|
||||
|
||||
/** @deprecated belongs to UI, for removal without a replacement */
|
||||
@Deprecated(forRemoval = true) public transient String CHECK_CONNECTION_URL = "http://";
|
||||
|
||||
/** @deprecated use {@link ProxyAuthentication#isPromptedAuthenticationCancelled(String, int)} with StaticProxy configuration
|
||||
* from {@link ProxySettings#getProxyConfiguration()} */
|
||||
@Deprecated(forRemoval = true) public transient volatile boolean AUTHENTICATION_CANCELLED;
|
||||
|
||||
@@ -52,8 +52,6 @@ public final class DateFormatUtil {
|
||||
@Deprecated(forRemoval = true) public static final long MONTH = 30 * DAY;
|
||||
/** @deprecated use {@link java.util.concurrent.TimeUnit#toMillis} */
|
||||
@Deprecated(forRemoval = true) public static final long YEAR = 365 * DAY;
|
||||
/** @deprecated use {@link java.util.concurrent.TimeUnit#toMillis} */
|
||||
@Deprecated(forRemoval = true) public static final long DAY_FACTOR = DAY;
|
||||
|
||||
public static final String TIME_SHORT_12H = "h:mm\u202Fa";
|
||||
public static final String TIME_SHORT_24H = "HH:mm";
|
||||
|
||||
@@ -2192,9 +2192,7 @@ c:com.intellij.ide.actions.ToggleDistractionFreeModeAction
|
||||
- <init>():V
|
||||
- actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent):V
|
||||
- getActionUpdateThread():com.intellij.openapi.actionSystem.ActionUpdateThread
|
||||
- s:getStandardTabPlacement():I
|
||||
- s:isDistractionFreeModeEnabled():Z
|
||||
- s:shouldMinimizeCustomHeader():Z
|
||||
- update(com.intellij.openapi.actionSystem.AnActionEvent):V
|
||||
f:com.intellij.ide.actions.TogglePresentationModeAction
|
||||
- com.intellij.openapi.actionSystem.AnAction
|
||||
@@ -3115,13 +3113,6 @@ c:com.intellij.ide.navigationToolbar.DefaultNavBarExtension
|
||||
- getParent(com.intellij.psi.PsiElement):com.intellij.psi.PsiElement
|
||||
- getPresentableText(java.lang.Object):java.lang.String
|
||||
- processChildren(java.lang.Object,java.lang.Object,com.intellij.util.Processor):Z
|
||||
f:com.intellij.ide.navigationToolbar.NavBarRootPaneExtension
|
||||
- <init>():V
|
||||
a:com.intellij.ide.navigationToolbar.NavBarRootPaneExtension$NavBarWrapperPanel
|
||||
- javax.swing.JPanel
|
||||
- com.intellij.ide.ui.UISettingsListener
|
||||
- <init>(java.awt.LayoutManager):V
|
||||
- p:getComponentGraphics(java.awt.Graphics):java.awt.Graphics
|
||||
f:com.intellij.ide.passwordSafe.impl.providers.EncryptionUtil
|
||||
- sf:SECRET_KEY_SIZE_BYTES:I
|
||||
- s:decryptText(B[],B[]):com.intellij.credentialStore.OneTimeString
|
||||
@@ -10046,7 +10037,6 @@ a:com.intellij.openapi.vfs.newvfs.persistent.PersistentFS
|
||||
- s:isWritable(I):Z
|
||||
- a:listPersisted(com.intellij.openapi.vfs.VirtualFile):java.lang.String[]
|
||||
- a:mayHaveChildren(I):Z
|
||||
- processEvents(java.util.List):V
|
||||
- a:releaseContent(I):V
|
||||
- a:storeUnlinkedContent(B[]):I
|
||||
@:com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$Attributes
|
||||
@@ -15152,18 +15142,6 @@ f:com.intellij.util.IJSwingUtilities
|
||||
- s:hasFocus2(java.awt.Component):Z
|
||||
- s:moveMousePointerOn(java.awt.Component):V
|
||||
- s:updateComponentTreeUI(java.awt.Component):V
|
||||
f:com.intellij.util.JdkBundle
|
||||
- s:createBoot():com.intellij.util.JdkBundle
|
||||
- s:createBundle(java.io.File):com.intellij.util.JdkBundle
|
||||
- s:createBundled():com.intellij.util.JdkBundle
|
||||
- getBundleVersion():com.intellij.util.lang.JavaVersion
|
||||
- getHome():java.io.File
|
||||
- getLocation():java.io.File
|
||||
- getVMExecutable():java.io.File
|
||||
- isBoot():Z
|
||||
- isBundled():Z
|
||||
- isJdk():Z
|
||||
- isOperational():Z
|
||||
f:com.intellij.util.PopupUtilsKt
|
||||
- sf:getBestBalloonPosition(com.intellij.openapi.actionSystem.DataContext):com.intellij.ui.awt.RelativePoint
|
||||
- sf:getBestPopupPosition(com.intellij.openapi.actionSystem.DataContext):com.intellij.ui.awt.RelativePoint
|
||||
|
||||
@@ -34,7 +34,6 @@ f:com.intellij.codeInsight.inline.completion.InlineCompletionEvent$DocumentChang
|
||||
f:com.intellij.codeInsight.inline.completion.InlineCompletionEvent$LookupCancelled
|
||||
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent
|
||||
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent$InlineLookupEvent
|
||||
- <init>(com.intellij.codeInsight.lookup.LookupEvent):V
|
||||
- getEvent():com.intellij.codeInsight.lookup.LookupEvent
|
||||
f:com.intellij.codeInsight.inline.completion.InlineCompletionEvent$LookupChange
|
||||
- com.intellij.codeInsight.inline.completion.InlineCompletionEvent
|
||||
|
||||
@@ -5,7 +5,6 @@ import com.intellij.codeInsight.inline.completion.session.InlineCompletionSessio
|
||||
import com.intellij.codeInsight.inline.completion.suggestion.InlineCompletionSuggestionUpdateManager
|
||||
import com.intellij.codeInsight.lookup.LookupElement
|
||||
import com.intellij.codeInsight.lookup.LookupEvent
|
||||
import com.intellij.injected.editor.EditorWindow
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys
|
||||
import com.intellij.openapi.actionSystem.DataContext
|
||||
import com.intellij.openapi.application.runReadAction
|
||||
@@ -228,15 +227,7 @@ interface InlineCompletionEvent {
|
||||
@ApiStatus.Experimental
|
||||
override val editor: Editor,
|
||||
override val event: LookupEvent
|
||||
) : InlineLookupEvent, Builtin {
|
||||
|
||||
@Deprecated("It should not be created outside of the platform.")
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
constructor(event: LookupEvent) : this(
|
||||
runReadAction { event.lookup!!.editor },
|
||||
event
|
||||
)
|
||||
}
|
||||
) : InlineLookupEvent, Builtin
|
||||
|
||||
sealed interface InlineLookupEvent : InlineCompletionEvent, Builtin {
|
||||
|
||||
|
||||
@@ -120,22 +120,6 @@ public class ToggleDistractionFreeModeAction extends DumbAwareAction implements
|
||||
// @formatter:on
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link DistractionFreeModeController}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static boolean shouldMinimizeCustomHeader() {
|
||||
return DistractionFreeModeController.shouldMinimizeCustomHeader();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link DistractionFreeModeController}
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
public static int getStandardTabPlacement() {
|
||||
return DistractionFreeModeController.getStandardTabPlacement();
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link DistractionFreeModeController}
|
||||
*/
|
||||
|
||||
@@ -760,15 +760,6 @@ fun Project.executeOnPooledThread(coroutineScope: CoroutineScope, task: Runnable
|
||||
coroutineScope.launch { blockingContext { task.run() } }
|
||||
}
|
||||
|
||||
@Suppress("DeprecatedCallableAddReplaceWith")
|
||||
@Internal
|
||||
@ScheduledForRemoval
|
||||
@Deprecated(message = "temporary solution for old code in java", level = DeprecationLevel.ERROR)
|
||||
fun Project.executeOnPooledIoThread(task: Runnable) {
|
||||
@Suppress("DEPRECATION")
|
||||
(this as ComponentManagerEx).getCoroutineScope().launch(Dispatchers.IO) { blockingContext { task.run() } }
|
||||
}
|
||||
|
||||
private fun getActiveWindow(): Window? {
|
||||
val window = KeyboardFocusManager.getCurrentKeyboardFocusManager().activeWindow
|
||||
if (window is DisposableWindow && window.isWindowDisposed) return null
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.ide.navigationToolbar
|
||||
|
||||
import com.intellij.ide.ui.UISettingsListener
|
||||
import com.intellij.util.ui.JBSwingUtilities
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import java.awt.Graphics
|
||||
import java.awt.LayoutManager
|
||||
import javax.swing.JPanel
|
||||
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated(message = "Moved to `com.intellij.platform.navbar.frontend.NavBarRootPaneExtension`", level = DeprecationLevel.ERROR)
|
||||
class NavBarRootPaneExtension {
|
||||
|
||||
// used externally
|
||||
@ApiStatus.ScheduledForRemoval
|
||||
@Deprecated(message = "Use `JPanel` instead", level = DeprecationLevel.ERROR)
|
||||
abstract class NavBarWrapperPanel(layout: LayoutManager?) : JPanel(layout), UISettingsListener {
|
||||
override fun getComponentGraphics(graphics: Graphics): Graphics {
|
||||
return JBSwingUtilities.runGlobalCGTransform(this, super.getComponentGraphics(graphics))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,9 +6,7 @@ import com.intellij.openapi.vfs.DiskQueryRelay;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.vfs.newvfs.ManagingFS;
|
||||
import com.intellij.openapi.vfs.newvfs.NewVirtualFileSystem;
|
||||
import com.intellij.openapi.vfs.newvfs.RefreshQueue;
|
||||
import com.intellij.openapi.vfs.newvfs.events.ChildInfo;
|
||||
import com.intellij.openapi.vfs.newvfs.events.VFileEvent;
|
||||
import org.intellij.lang.annotations.MagicConstant;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -114,12 +112,6 @@ public abstract class PersistentFS extends ManagingFS {
|
||||
|
||||
public abstract int getCurrentContentId(@NotNull VirtualFile file);
|
||||
|
||||
/** @deprecated bypasses async listeners and is too low-level in general; avoid */
|
||||
@Deprecated(forRemoval = true)
|
||||
public void processEvents(@NotNull List<? extends @NotNull VFileEvent> events) {
|
||||
RefreshQueue.getInstance().processEvents(false, events);
|
||||
}
|
||||
|
||||
// 'true' if the FS persisted at least one child, or it has never been queried for children
|
||||
public abstract boolean mayHaveChildren(int id);
|
||||
}
|
||||
|
||||
@@ -1,152 +0,0 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.util;
|
||||
|
||||
import com.intellij.execution.ExecutionException;
|
||||
import com.intellij.execution.configurations.GeneralCommandLine;
|
||||
import com.intellij.execution.process.ProcessOutput;
|
||||
import com.intellij.execution.util.ExecUtil;
|
||||
import com.intellij.openapi.application.PathManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.projectRoots.JdkUtil;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.util.lang.JavaVersion;
|
||||
import com.intellij.util.system.CpuArch;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.jps.model.java.JdkVersionDetector;
|
||||
import org.jetbrains.jps.model.java.JdkVersionDetector.JdkVersionInfo;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* No longer used in the platform. Most of the functionality is covered by {@link SystemProperties#getJavaHome()},
|
||||
* {@link PathManager#getBundledRuntimePath()}, and {@link JdkVersionDetector}.
|
||||
*/
|
||||
@Deprecated(forRemoval = true)
|
||||
@SuppressWarnings("ALL")
|
||||
public final class JdkBundle {
|
||||
private static final String BUNDLED_JDK_DIR_NAME = "jbr";
|
||||
|
||||
private final File myLocation;
|
||||
private final JdkVersionInfo myVersionInfo;
|
||||
private final boolean myBoot;
|
||||
private final boolean myBundled;
|
||||
private final boolean myJdk;
|
||||
|
||||
private JdkBundle(File location, JdkVersionInfo versionInfo, boolean boot, boolean bundled, boolean jdk) {
|
||||
myLocation = location;
|
||||
myVersionInfo = versionInfo;
|
||||
myBoot = boot;
|
||||
myBundled = bundled;
|
||||
myJdk = jdk;
|
||||
}
|
||||
|
||||
public @NotNull File getLocation() {
|
||||
return myLocation;
|
||||
}
|
||||
|
||||
public @NotNull JavaVersion getBundleVersion() {
|
||||
return myVersionInfo.version;
|
||||
}
|
||||
|
||||
public boolean isBoot() {
|
||||
return myBoot;
|
||||
}
|
||||
|
||||
public boolean isBundled() {
|
||||
return myBundled;
|
||||
}
|
||||
|
||||
public boolean isJdk() {
|
||||
return myJdk;
|
||||
}
|
||||
|
||||
public @NotNull File getHome() {
|
||||
return getVMExecutable().getParentFile().getParentFile();
|
||||
}
|
||||
|
||||
public @NotNull File getVMExecutable() {
|
||||
File home = myLocation;
|
||||
if (SystemInfo.isMac) {
|
||||
File contents = new File(home, "Contents/Home");
|
||||
if (contents.isDirectory()) {
|
||||
home = contents;
|
||||
}
|
||||
}
|
||||
File javaPath = new File(home, SystemInfo.isWindows ? "bin\\java.exe" : "bin/java");
|
||||
if (!javaPath.isFile()) {
|
||||
javaPath = new File(home, SystemInfo.isWindows ? "jre\\bin\\java.exe" : "jre/bin/java");
|
||||
}
|
||||
return javaPath;
|
||||
}
|
||||
|
||||
public boolean isOperational() {
|
||||
if (myBoot) return true;
|
||||
|
||||
File javaPath = getVMExecutable();
|
||||
if (SystemInfo.isUnix && !javaPath.canExecute()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
ProcessOutput output = ExecUtil.execAndGetOutput(new GeneralCommandLine(javaPath.getPath(), "-version"));
|
||||
return output.getExitCode() == 0;
|
||||
}
|
||||
catch (ExecutionException e) {
|
||||
Logger.getInstance(JdkBundle.class).debug(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static @NotNull JdkBundle createBoot() {
|
||||
File home = new File(SystemProperties.getJavaHome());
|
||||
JdkBundle bundle = createBundle(home, true);
|
||||
assert bundle != null : home;
|
||||
return bundle;
|
||||
}
|
||||
|
||||
public static @Nullable JdkBundle createBundled() {
|
||||
return createBundle(new File(PathManager.getHomePath(), BUNDLED_JDK_DIR_NAME), false);
|
||||
}
|
||||
|
||||
public static @Nullable JdkBundle createBundle(@NotNull File bundleHome) {
|
||||
return createBundle(bundleHome, false);
|
||||
}
|
||||
|
||||
private static JdkBundle createBundle(File bundleHome, boolean boot) {
|
||||
if ("jre".equals(bundleHome.getName())) {
|
||||
File jdk = bundleHome.getParentFile();
|
||||
if (new File(jdk, "lib").isDirectory()) {
|
||||
bundleHome = jdk;
|
||||
}
|
||||
}
|
||||
|
||||
File actualHome = bundleHome;
|
||||
if (SystemInfo.isMac) {
|
||||
if (actualHome.getName().equals("Home") && actualHome.getParentFile().getName().equals("Contents")) {
|
||||
bundleHome = actualHome.getParentFile().getParentFile();
|
||||
}
|
||||
else {
|
||||
File contents = new File(bundleHome, "Contents/Home");
|
||||
if (contents.isDirectory()) {
|
||||
actualHome = contents;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
JdkVersionInfo versionInfo;
|
||||
if (boot) {
|
||||
versionInfo = new JdkVersionInfo(CurrentJavaVersion.currentJavaVersion(), null, CpuArch.CURRENT, null);
|
||||
}
|
||||
else {
|
||||
versionInfo = JdkVersionDetector.getInstance().detectJdkVersionInfo(actualHome.getPath());
|
||||
}
|
||||
if (versionInfo != null) {
|
||||
boolean bundled = PathManager.isUnderHomeDirectory(bundleHome.getPath());
|
||||
boolean jdk = JdkUtil.checkForJdk(actualHome.toPath());
|
||||
return new JdkBundle(bundleHome, versionInfo, boot, bundled, jdk);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -243,7 +243,6 @@ c:com.intellij.execution.process.KillableProcessHandler
|
||||
- com.intellij.execution.process.OSProcessHandler
|
||||
- com.intellij.execution.KillableProcess
|
||||
- <init>(com.intellij.execution.configurations.GeneralCommandLine):V
|
||||
- <init>(com.intellij.execution.configurations.GeneralCommandLine,Z):V
|
||||
- p:<init>(java.lang.Process,com.intellij.execution.configurations.GeneralCommandLine):V
|
||||
- <init>(java.lang.Process,java.lang.String):V
|
||||
- <init>(java.lang.Process,java.lang.String,java.nio.charset.Charset):V
|
||||
|
||||
@@ -44,13 +44,6 @@ public class KillableProcessHandler extends OSProcessHandler implements Killable
|
||||
super(process, commandLine.getCommandLineString(), commandLine.getCharset());
|
||||
}
|
||||
|
||||
/** @deprecated the mediator is retired; use {@link #KillableProcessHandler(GeneralCommandLine)} instead */
|
||||
@Deprecated(forRemoval = true)
|
||||
@SuppressWarnings("unused")
|
||||
public KillableProcessHandler(@NotNull GeneralCommandLine commandLine, boolean withMediator) throws ExecutionException {
|
||||
this(commandLine);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@code commandLine} must not be empty (for correct thread attribution in the stacktrace)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user