org.eclipse.debug.core.Launch.isTerminated()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中org.eclipse.debug.core.Launch.isTerminated()方法的一些代码示例,展示了Launch.isTerminated()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Launch.isTerminated()方法的具体详情如下:
包路径:org.eclipse.debug.core.Launch
类名称:Launch
方法名:isTerminated

Launch.isTerminated介绍

暂无

代码示例

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.debug.core

@Override
public void handleDebugEvents(DebugEvent[] events) {
  for (int i = 0; i < events.length; i++) {
    DebugEvent event = events[i];
    if (event.getKind() == DebugEvent.TERMINATE) {
      Object object = event.getSource();
      ILaunch launch = null;
      if (object instanceof IProcess) {
        launch = ((IProcess)object).getLaunch();
      } else if (object instanceof IDebugTarget) {
        launch = ((IDebugTarget)object).getLaunch();
      }
      if (this.equals(launch)) {
        if (isTerminated()) {
          fireTerminate();
        }
      }
    }
  }
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.launching

if (!launch.isTerminated()) {
  launch.terminate();

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching

if (!launch.isTerminated()) {
  launch.terminate();

相关文章