当前位置: 首页>>代码示例>>Java>>正文


Java DebuggerSession.isPaused方法代码示例

本文整理汇总了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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:InspectAction.java

示例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;
  }
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:24,代码来源:RunToCursorActionHandler.java

示例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));
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:20,代码来源:FramesPanel.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:17,代码来源:HotSwapUIImpl.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:JvmSmartStepIntoActionHandler.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:HotSwapUIImpl.java

示例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;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:14,代码来源:AbstractSteppingActionHandler.java

示例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;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:11,代码来源:EvaluateActionHandler.java

示例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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:QuickEvaluateActionHandler.java

示例10: isPaused

import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
@Override
public boolean isPaused() {
  final DebuggerSession debuggerSession = getDebugSession();
  return debuggerSession != null && debuggerSession.isPaused();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:JavaAwareTestConsoleProperties.java

示例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;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:6,代码来源:ShowExecutionPointActionHandler.java

示例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();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:ResumeActionHandler.java

示例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();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:QuickEvaluateActionHandler.java

示例14: isPaused

import com.intellij.debugger.impl.DebuggerSession; //导入方法依赖的package包/类
@Override
public boolean isPaused()
{
	final DebuggerSession debuggerSession = getDebugSession();
	return debuggerSession != null && debuggerSession.isPaused();
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:7,代码来源:JavaAwareTestConsoleProperties.java


注:本文中的com.intellij.debugger.impl.DebuggerSession.isPaused方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。