Search in sources :

Example 1 with JavaDebugProcess

use of com.intellij.debugger.engine.JavaDebugProcess in project intellij-community by JetBrains.

the class CustomizeContextViewAction method update.

@Override
public void update(AnActionEvent e) {
    e.getPresentation().setText(ActionsBundle.actionText(DebuggerActions.CUSTOMIZE_VIEWS));
    Project project = getEventProject(e);
    if (project != null) {
        final XDebugSession currentSession = XDebuggerManager.getInstance(project).getCurrentSession();
        if (currentSession != null) {
            e.getPresentation().setEnabledAndVisible(currentSession.getDebugProcess() instanceof JavaDebugProcess);
            return;
        }
    }
    e.getPresentation().setEnabledAndVisible(false);
}
Also used : Project(com.intellij.openapi.project.Project) XDebugSession(com.intellij.xdebugger.XDebugSession) JavaDebugProcess(com.intellij.debugger.engine.JavaDebugProcess)

Example 2 with JavaDebugProcess

use of com.intellij.debugger.engine.JavaDebugProcess in project intellij-community by JetBrains.

the class DebuggerAction method refreshViews.

public static void refreshViews(@Nullable XDebugSession session) {
    if (session != null) {
        XDebugProcess process = session.getDebugProcess();
        if (process instanceof JavaDebugProcess) {
            ((JavaDebugProcess) process).saveNodeHistory();
        }
        session.rebuildViews();
    }
}
Also used : XDebugProcess(com.intellij.xdebugger.XDebugProcess) JavaDebugProcess(com.intellij.debugger.engine.JavaDebugProcess)

Example 3 with JavaDebugProcess

use of com.intellij.debugger.engine.JavaDebugProcess in project intellij-community by JetBrains.

the class ShowTypesAction method update.

@Override
public void update(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    if (project != null) {
        XDebugSession session = XDebuggerManager.getInstance(project).getCurrentSession();
        if (session != null && session.getDebugProcess() instanceof JavaDebugProcess) {
            e.getPresentation().setEnabledAndVisible(true);
            super.update(e);
            return;
        }
    }
    e.getPresentation().setEnabledAndVisible(false);
}
Also used : Project(com.intellij.openapi.project.Project) XDebugSession(com.intellij.xdebugger.XDebugSession) JavaDebugProcess(com.intellij.debugger.engine.JavaDebugProcess)

Aggregations

JavaDebugProcess (com.intellij.debugger.engine.JavaDebugProcess)3 Project (com.intellij.openapi.project.Project)2 XDebugSession (com.intellij.xdebugger.XDebugSession)2 XDebugProcess (com.intellij.xdebugger.XDebugProcess)1