API changes

GitOrigin-RevId: 0083fb392bde71c5408ea68e9641d0218cc5f77d
This commit is contained in:
Alexey Korovin
2024-10-09 14:04:07 +02:00
committed by intellij-monorepo-bot
parent b55bf5d472
commit 0f51ee667b
15 changed files with 87 additions and 1 deletions

View File

@@ -5,7 +5,9 @@ import com.intellij.openapi.actionSystem.ActionManager
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.ui.IdeUICustomization
import org.jetbrains.annotations.ApiStatus
@ApiStatus.Internal
class IdeCustomizableActionHelper(private val action: AnAction) {
private val id by lazy { ActionManager.getInstance().getId(action)!! }

View File

@@ -322,6 +322,8 @@ f:com.intellij.icons.AllIcons$Debugger
- sf:ForceStepInto:javax.swing.Icon
- sf:ForceStepOver:javax.swing.Icon
- sf:Frame:javax.swing.Icon
- sf:Freeze:javax.swing.Icon
- sf:FreezeAll:javax.swing.Icon
- sf:KillProcess:javax.swing.Icon
- sf:LambdaBreakpoint:javax.swing.Icon
- sf:MultipleBreakpoints:javax.swing.Icon
@@ -337,6 +339,8 @@ f:com.intellij.icons.AllIcons$Debugger
- sf:Selfreference:javax.swing.Icon
- sf:ShowCurrentFrame:javax.swing.Icon
- sf:SmartStepInto:javax.swing.Icon
- sf:Thaw:javax.swing.Icon
- sf:ThawAll:javax.swing.Icon
- sf:ThreadAtBreakpoint:javax.swing.Icon
- sf:ThreadCurrent:javax.swing.Icon
- sf:ThreadFrozen:javax.swing.Icon

View File

@@ -16,6 +16,8 @@ a:com.intellij.xdebugger.evaluation.XDebuggerEditorsProvider
*:com.intellij.xdebugger.frame.XDropFrameHandler
- a:canDrop(com.intellij.xdebugger.frame.XStackFrame):Z
- a:drop(com.intellij.xdebugger.frame.XStackFrame):V
a:com.intellij.xdebugger.frame.XExecutionStack
- *sf:SELECTED_STACKS:com.intellij.openapi.actionSystem.DataKey
*:com.intellij.xdebugger.frame.XStringValueModifier
- a:stringToXExpression(java.lang.String):com.intellij.xdebugger.XExpression
*:com.intellij.xdebugger.ui.TextValueVisualizer

View File

@@ -19,6 +19,11 @@ import java.util.List;
* 'Debug' tool window
*/
public abstract class XExecutionStack {
/**
* Data constant which contains a set of selected stacks on a view. Used to support actions that work on a group of stacks/threads.
*/
@ApiStatus.Experimental
public static final DataKey<List<XExecutionStack>> SELECTED_STACKS = DataKey.create("XExecutionStacks");
public static final XExecutionStack[] EMPTY_ARRAY = new XExecutionStack[0];

View File

@@ -1,5 +1,53 @@
*:com.intellij.xdebugger.attach.XAttachRecentItemsMatcher
- a:getMatchingAttachItems(com.intellij.xdebugger.impl.actions.AttachToProcessActionBase$RecentItem,java.util.List,Z,com.intellij.openapi.project.Project,com.intellij.openapi.util.UserDataHolder):java.util.List
*:com.intellij.xdebugger.impl.ThreadsActionsProvider
- getFreezeActiveThreadHandler():com.intellij.xdebugger.impl.actions.DebuggerActionHandler
- getFreezeInactiveThreadsAmongSelectedHandler():com.intellij.xdebugger.impl.actions.DebuggerActionHandler
- getFreezeInactiveThreadsHandler():com.intellij.xdebugger.impl.actions.DebuggerActionHandler
- getFreezeSelectedThreads():com.intellij.xdebugger.impl.actions.DebuggerActionHandler
- getThawActiveThreadHandler():com.intellij.xdebugger.impl.actions.DebuggerActionHandler
- getThawAllThreadsHandler():com.intellij.xdebugger.impl.actions.DebuggerActionHandler
- getThawSelectedThreads():com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*c:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- com.intellij.xdebugger.impl.actions.DebuggerActionHandler
- sf:FreezeActiveThread:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- sf:FreezeInactiveThreads:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- sf:FreezeInactiveThreadsAmongSelected:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- sf:FreezeSelectedThreads:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- sf:ThawActiveThread:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- sf:ThawAllThreads:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- sf:ThawSelectedThreads:com.intellij.xdebugger.impl.actions.DebuggerThreadActionHandler
- isEnabled(com.intellij.openapi.project.Project,com.intellij.openapi.actionSystem.AnActionEvent):Z
- isHidden(com.intellij.openapi.project.Project,com.intellij.openapi.actionSystem.AnActionEvent):Z
- perform(com.intellij.openapi.project.Project,com.intellij.openapi.actionSystem.AnActionEvent):V
*c:com.intellij.xdebugger.impl.actions.FreezeActiveThreadAction
- com.intellij.xdebugger.impl.actions.XDebuggerActionBase
- <init>():V
- p:getHandler(com.intellij.xdebugger.impl.DebuggerSupport):com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*c:com.intellij.xdebugger.impl.actions.FreezeInactiveThreadsAction
- com.intellij.xdebugger.impl.actions.XDebuggerActionBase
- <init>():V
- p:getHandler(com.intellij.xdebugger.impl.DebuggerSupport):com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*c:com.intellij.xdebugger.impl.actions.FreezeInactiveThreadsAmongSelectedAction
- com.intellij.xdebugger.impl.actions.XDebuggerActionBase
- <init>():V
- p:getHandler(com.intellij.xdebugger.impl.DebuggerSupport):com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*c:com.intellij.xdebugger.impl.actions.FreezeSelectedThreadsAction
- com.intellij.xdebugger.impl.actions.XDebuggerActionBase
- <init>():V
- p:getHandler(com.intellij.xdebugger.impl.DebuggerSupport):com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*c:com.intellij.xdebugger.impl.actions.ThawActiveThreadAction
- com.intellij.xdebugger.impl.actions.XDebuggerActionBase
- <init>():V
- p:getHandler(com.intellij.xdebugger.impl.DebuggerSupport):com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*c:com.intellij.xdebugger.impl.actions.ThawAllThreadsAction
- com.intellij.xdebugger.impl.actions.XDebuggerActionBase
- <init>():V
- p:getHandler(com.intellij.xdebugger.impl.DebuggerSupport):com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*c:com.intellij.xdebugger.impl.actions.ThawSelectedThreadsAction
- com.intellij.xdebugger.impl.actions.XDebuggerActionBase
- <init>():V
- p:getHandler(com.intellij.xdebugger.impl.DebuggerSupport):com.intellij.xdebugger.impl.actions.DebuggerActionHandler
*e:com.intellij.xdebugger.impl.dfaassist.DfaHint
- java.lang.Enum
- sf:AIOOBE:com.intellij.xdebugger.impl.dfaassist.DfaHint

View File

@@ -21,10 +21,12 @@ import com.intellij.openapi.project.Project;
import com.intellij.xdebugger.XDebugSession;
import com.intellij.xdebugger.impl.ThreadsActionsProvider;
import com.intellij.xdebugger.impl.ui.DebuggerUIUtil;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import java.util.function.Function;
@ApiStatus.Experimental
public class DebuggerThreadActionHandler extends DebuggerActionHandler {
public static final DebuggerThreadActionHandler FreezeActiveThread = new DebuggerThreadActionHandler(provider -> provider.getFreezeActiveThreadHandler());

View File

@@ -16,8 +16,10 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public class FreezeActiveThreadAction extends XDebuggerIdeCustomizableAction {
@Override
@NotNull

View File

@@ -16,8 +16,10 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public class FreezeInactiveThreadsAction extends XDebuggerIdeCustomizableAction {
@Override
@NotNull

View File

@@ -16,8 +16,10 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public class FreezeInactiveThreadsAmongSelectedAction extends XDebuggerIdeCustomizableAction {
@Override
@NotNull

View File

@@ -16,8 +16,10 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public class FreezeSelectedThreadsAction extends XDebuggerIdeCustomizableAction {
@Override
@NotNull

View File

@@ -16,8 +16,10 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public class ThawActiveThreadAction extends XDebuggerIdeCustomizableAction {
@Override
@NotNull

View File

@@ -16,8 +16,10 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public class ThawAllThreadsAction extends XDebuggerIdeCustomizableAction {
@Override
@NotNull

View File

@@ -16,8 +16,10 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
@ApiStatus.Experimental
public class ThawSelectedThreadsAction extends XDebuggerIdeCustomizableAction {
@Override
@NotNull

View File

@@ -3,7 +3,9 @@ package com.intellij.xdebugger.impl.actions
import com.intellij.ide.IdeCustomizableActionHelper
import com.intellij.openapi.actionSystem.AnActionEvent
import org.jetbrains.annotations.ApiStatus
@ApiStatus.Internal
abstract class XDebuggerIdeCustomizableAction : XDebuggerActionBase() {
private val customizableActionHelper by lazy { IdeCustomizableActionHelper(this) }

View File

@@ -16,6 +16,7 @@ import com.intellij.util.ui.UIUtil
import com.intellij.xdebugger.XDebuggerBundle
import com.intellij.xdebugger.frame.XExecutionStack
import com.intellij.xdebugger.frame.XExecutionStack.AdditionalDisplayInfo
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.annotations.Nls
import org.jetbrains.annotations.Nullable
import java.awt.Component
@@ -30,7 +31,13 @@ class XDebuggerThreadsList(private val renderer: ListCellRenderer<StackInfo>
) : JBList<StackInfo>(CollectionListModel()), UiDataProvider {
private var mySelectedFrame: StackInfo? = null
private var stackUnderMouse: StackInfo? = null
/**
* Deprecated.
* Use [com.intellij.xdebugger.frame.XExecutionStack.SELECTED_STACKS] data key to get a set of selected stacks from the data context.
*/
@ApiStatus.Obsolete
public var stackUnderMouse: StackInfo? = null
private set
val elementCount: Int
get() = model.size