mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Step Into My Code (PY-15500): fix broken Force Step Into in IDEA and shortcut test
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
<add-to-group group-id="MarkRootGroup"/>
|
||||
</action>
|
||||
|
||||
<action overrides="true" id="ForceStepInto" class="com.intellij.openapi.actionSystem.EmptyAction"/>
|
||||
<action id="ForceStepInto" class="com.intellij.openapi.actionSystem.EmptyAction"/>
|
||||
|
||||
<group id="TypeHierarchyPopupMenu">
|
||||
</group>
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<add-to-group group-id="ToolsMenu" anchor="last"/>
|
||||
</action>
|
||||
|
||||
<action overrides="true" id="ForceStepInto" class="com.jetbrains.python.debugger.PyForceStepIntoAction"/>
|
||||
<action id="ForceStepInto" class="com.jetbrains.python.debugger.PyForceStepIntoAction"/>
|
||||
</actions>
|
||||
|
||||
</idea-plugin>
|
||||
@@ -731,10 +731,10 @@
|
||||
</action>
|
||||
|
||||
<action id="StepIntoMyCode" class="com.jetbrains.python.debugger.PyStepIntoMyCodeAction" icon="PythonIcons.Python.Debug.StepIntoMyCode"
|
||||
text="Step Into My Code" description="Step to the next line executed ignoring libraries">
|
||||
text="Step Into My Code" description="Step to the next line executed ignoring libraries"
|
||||
use-shortcut-of="ForceStepInto">
|
||||
<add-to-group group-id="DebugMainMenu" relative-to-action="StepInto" anchor="after"/>
|
||||
<add-to-group group-id="XDebugger.ToolWindow.TopToolbar" relative-to-action="StepInto" anchor="after"/>
|
||||
<keyboard-shortcut keymap="$default" first-keystroke="alt shift F7"/>
|
||||
</action>
|
||||
|
||||
<group id="PyPackagingMenu" text="Packaging">
|
||||
|
||||
@@ -21,13 +21,10 @@ import com.intellij.execution.configurations.RunConfiguration;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.xdebugger.impl.DebuggerSupport;
|
||||
import com.intellij.xdebugger.impl.actions.DebuggerActionHandler;
|
||||
import com.intellij.xdebugger.impl.actions.XDebuggerActionBase;
|
||||
import com.intellij.xdebugger.impl.actions.ForceStepIntoAction;
|
||||
import com.jetbrains.python.run.AbstractPythonRunConfiguration;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class PyForceStepIntoAction extends XDebuggerActionBase {
|
||||
public class PyForceStepIntoAction extends ForceStepIntoAction {
|
||||
@Override
|
||||
protected boolean isEnabled(AnActionEvent e) {
|
||||
Project project = e.getData(CommonDataKeys.PROJECT);
|
||||
@@ -43,10 +40,4 @@ public class PyForceStepIntoAction extends XDebuggerActionBase {
|
||||
|
||||
return super.isEnabled(e);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected DebuggerActionHandler getHandler(@NotNull DebuggerSupport debuggerSupport) {
|
||||
return debuggerSupport.getForceStepIntoHandler();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user