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);
}
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();
}
}
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);
}
Aggregations