本文整理汇总了Java中com.intellij.debugger.impl.DebuggerSession.isPaused方法的典型用法代码示例。如果您正苦于以下问题:Java DebuggerSession.isPaused方法的具体用法?Java DebuggerSession.isPaused怎么用?Java DebuggerSession.isPaused使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.debugger.impl.DebuggerSession
的用法示例。
在下文中一共展示了DebuggerSession.isPaused方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: canInspect
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
private boolean canInspect(ValueDescriptorImpl descriptor, DebuggerContextImpl context) {
DebuggerSession session = context.getDebuggerSession();
if (session == null || !session.isPaused()) return false;
boolean isField = descriptor instanceof FieldDescriptorImpl;
if(descriptor instanceof WatchItemDescriptor) {
Modifier modifier = ((WatchItemDescriptor)descriptor).getModifier();
if(modifier == null || !modifier.canInspect()) return false;
isField = modifier instanceof Field;
}
if (isField) { // check if possible
if (!context.getDebugProcess().canWatchFieldModification()) {
Messages.showMessageDialog(
context.getProject(),
DebuggerBundle.message("error.modification.watchpoints.not.supported"),
ActionsBundle.actionText(DebuggerActions.INSPECT),
Messages.getInformationIcon()
);
return false;
}
}
return true;
}
示例2: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
public boolean isEnabled(final @NotNull Project project, final AnActionEvent event) {
Editor editor = event.getData(PlatformDataKeys.EDITOR);
if (editor == null) {
return false;
}
PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
FileTypeManager fileTypeManager = FileTypeManager.getInstance();
if (file == null) {
return false;
}
final VirtualFile virtualFile = file.getVirtualFile();
FileType fileType = virtualFile != null ? virtualFile.getFileType() : null;
if (DebuggerUtils.supportsJVMDebugging(fileType) || DebuggerUtils.supportsJVMDebugging(file)) {
DebuggerSession debuggerSession = DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession();
return debuggerSession != null && debuggerSession.isPaused();
}
return false;
}
示例3: doRebuild
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
private void doRebuild(boolean refreshOnly) {
final DebuggerContextImpl context = getContext();
final DebuggerSession session = context.getDebuggerSession();
final boolean paused = session != null && session.isPaused();
if (!paused || !refreshOnly) {
myThreadsCombo.removeAllItems();
synchronized (myFramesList) {
myFramesLastUpdateTime = getNextStamp();
myFramesList.getModel().clear();
}
}
if (paused) {
final DebugProcessImpl process = context.getDebugProcess();
if (process != null) {
process.getManagerThread().schedule(new RefreshFramePanelCommand(refreshOnly && myThreadsCombo.getItemCount() != 0));
}
}
}
示例4: shouldDisplayHangWarning
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
private boolean shouldDisplayHangWarning(DebuggerSettings settings, List<DebuggerSession> sessions)
{
if(!settings.HOTSWAP_HANG_WARNING_ENABLED)
{
return false;
}
// todo: return false if yourkit agent is inactive
for(DebuggerSession session : sessions)
{
if(session.isPaused())
{
return true;
}
}
return false;
}
示例5: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
public boolean isEnabled(@NotNull final Project project, final AnActionEvent event) {
final DebuggerContextImpl context = (DebuggerManagerEx.getInstanceEx(project)).getContext();
DebuggerSession debuggerSession = context.getDebuggerSession();
final boolean isPaused = debuggerSession != null && debuggerSession.isPaused();
final SuspendContextImpl suspendContext = context.getSuspendContext();
final boolean hasCurrentThread = suspendContext != null && suspendContext.getThread() != null;
return isPaused && hasCurrentThread;
}
示例6: shouldDisplayHangWarning
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
private boolean shouldDisplayHangWarning(DebuggerSettings settings, List<DebuggerSession> sessions) {
if (!settings.HOTSWAP_HANG_WARNING_ENABLED) {
return false;
}
// todo: return false if yourkit agent is inactive
for (DebuggerSession session : sessions) {
if (session.isPaused()) {
return true;
}
}
return false;
}
示例7: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
public boolean isEnabled(@NotNull final Project project, final AnActionEvent event) {
final DebuggerContextImpl context = getContext(project);
if (context == null) {
return false;
}
DebuggerSession debuggerSession = context.getDebuggerSession();
final boolean isPaused = debuggerSession != null && debuggerSession.isPaused();
final SuspendContextImpl suspendContext = context.getSuspendContext();
final boolean hasCurrentThread = suspendContext != null && suspendContext.getThread() != null;
return isPaused && hasCurrentThread;
}
示例8: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
public boolean isEnabled(@NotNull final Project project, final AnActionEvent event) {
DebuggerContextImpl context = DebuggerAction.getDebuggerContext(event.getDataContext());
if(context != null) {
DebuggerSession debuggerSession = context.getDebuggerSession();
return debuggerSession != null && debuggerSession.isPaused();
}
return false;
}
示例9: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
@Override
public boolean isEnabled(@NotNull final Project project) {
DebuggerSession debuggerSession = DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession();
return debuggerSession != null && debuggerSession.isPaused();
}
示例10: isPaused
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
@Override
public boolean isPaused() {
final DebuggerSession debuggerSession = getDebugSession();
return debuggerSession != null && debuggerSession.isPaused();
}
示例11: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
public boolean isEnabled(@NotNull final Project project, final AnActionEvent event) {
DebuggerSession debuggerSession = (DebuggerManagerEx.getInstanceEx(project)).getContext().getDebuggerSession();
return debuggerSession != null && debuggerSession.isPaused() &&
debuggerSession.getContextManager().getContext().getSuspendContext().getThread() != null;
}
示例12: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
public boolean isEnabled(@NotNull final Project project, final AnActionEvent event) {
DebuggerSession debuggerSession = (DebuggerManagerEx.getInstanceEx(project)).getContext().getDebuggerSession();
return debuggerSession != null && debuggerSession.isPaused();
}
示例13: isEnabled
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
public boolean isEnabled(@NotNull final Project project) {
DebuggerSession debuggerSession = DebuggerManagerEx.getInstanceEx(project).getContext().getDebuggerSession();
return debuggerSession != null && debuggerSession.isPaused();
}
示例14: isPaused
import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
@Override
public boolean isPaused()
{
final DebuggerSession debuggerSession = getDebugSession();
return debuggerSession != null && debuggerSession.isPaused();
}