From 49254fc914904ba5444b555168b44d75001067f5 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Mon, 4 Dec 2017 21:36:47 +0300 Subject: [PATCH] remove help button from PyEdu debugger TW --- .../com/jetbrains/python/edu/debugger/PyEduDebugRunner.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugRunner.java b/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugRunner.java index c10fc757104f..c795684f3aad 100644 --- a/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugRunner.java +++ b/python/educational-python/src/com/jetbrains/python/edu/debugger/PyEduDebugRunner.java @@ -9,7 +9,6 @@ import com.intellij.execution.runners.ExecutionEnvironment; import com.intellij.execution.ui.ExecutionConsole; import com.intellij.execution.ui.RunnerLayoutUi; import com.intellij.execution.ui.actions.CloseAction; -import com.intellij.ide.actions.ContextHelpAction; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.editor.Document; @@ -129,6 +128,8 @@ public class PyEduDebugRunner extends PyDebugRunner { } }; content.setActions(new DefaultActionGroup(action), ActionPlaces.DEBUGGER_TOOLBAR, view.getPreferredFocusableComponent()); + //TODO: return proper helpID + content.setHelpId(executor.getHelpId()); } patchLeftToolbar(session, ui); } @@ -146,8 +147,6 @@ public class PyEduDebugRunner extends PyDebugRunner { Executor executor = PyEduDebugExecutor.getInstance(); newLeftToolbar.add(new CloseAction(executor, session.getRunContentDescriptor(), session.getProject())); - //TODO: return proper helpID - newLeftToolbar.add(new ContextHelpAction(executor.getHelpId())); ui.getOptions().setLeftToolbar(newLeftToolbar, ActionPlaces.DEBUGGER_TOOLBAR); }