IDEA-124497 Debugger: "Resume/Pause Program" in menu "Run" is active active

This commit is contained in:
Egor.Ushakov
2016-09-30 12:17:13 +03:00
parent b13ebb2003
commit 41703acb37
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
package com.intellij.xdebugger.impl.actions;
import com.intellij.execution.actions.ChooseDebugConfigurationPopupAction;
import com.intellij.openapi.actionSystem.ActionPlaces;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.DumbService;
@@ -26,6 +25,8 @@ import com.intellij.xdebugger.XDebuggerManager;
import com.intellij.xdebugger.impl.DebuggerSupport;
import org.jetbrains.annotations.NotNull;
import java.awt.event.KeyEvent;
/**
* @author nik
*/
@@ -39,7 +40,8 @@ public class ResumeAction extends XDebuggerActionBase implements DumbAware {
if (session != null && !session.isStopped()) {
return session.isPaused();
}
return !ActionPlaces.DEBUGGER_TOOLBAR.equals(e.getPlace());
// disable visual representation but leave the shortcut action enabled
return e.getInputEvent() instanceof KeyEvent;
}
@Override