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


Java DebugEvent.SUSPEND属性代码示例

本文整理汇总了Java中org.eclipse.debug.core.DebugEvent.SUSPEND属性的典型用法代码示例。如果您正苦于以下问题:Java DebugEvent.SUSPEND属性的具体用法?Java DebugEvent.SUSPEND怎么用?Java DebugEvent.SUSPEND使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.debug.core.DebugEvent的用法示例。


在下文中一共展示了DebugEvent.SUSPEND属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: handleDebugEvent

protected void handleDebugEvent(DebugEvent debugEvent) {
	updateActions();
	switch (debugEvent.getKind()) {
		case DebugEvent.TERMINATE :
			setViewerInput(null);
			break;
		case DebugEvent.SUSPEND :
			break;
		case DebugEvent.RESUME :
			break;
	}
	Display.getDefault().asyncExec(() -> {
		if (debugEvent.getSource() != null) {
			sessionDropdown.refresh();
			targets.removeIf(dt -> dt.isTerminated());
		}
	});
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:18,代码来源:SimulationView.java

示例2: handleDebugEvents

public void handleDebugEvents(DebugEvent[] events) {
  for (DebugEvent event : events) {
    switch (event.getKind()) {
      case DebugEvent.TERMINATE:
        if (event.getSource().equals(getDebugTarget())) {
          DebugPlugin.getDefault().getExpressionManager().removeExpression(this);
        }
        break;
      case DebugEvent.SUSPEND:
        if (event.getDetail() != DebugEvent.EVALUATION_IMPLICIT &&
            event.getSource() instanceof IDebugElement) {
          IDebugElement source = (IDebugElement) event.getSource();
          if (source.getDebugTarget().equals(getDebugTarget())) {
            DebugPlugin.getDefault().fireDebugEventSet(new DebugEvent[] {
                new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT) });
          }
        }
        break;
    }
  }
}
 
开发者ID:jbosstools,项目名称:chromedevtools,代码行数:21,代码来源:JsInspectExpression.java

示例3: handleDebugEvents

@Override
public void handleDebugEvents(final DebugEvent[] events)
{
  // allow views to be selectively enabled/disabled
  if (!this.isEnabled())
  {
    return;
  }
  // dispatch an async update for at most one event
  DebugEvent updateEvent = null;
  for (final DebugEvent event : events)
  {
    if (event.getKind() == DebugEvent.RESUME || event.getKind() == DebugEvent.SUSPEND
        || event.getKind() == DebugEvent.TERMINATE || event.getKind() == DebugEvent.STATE)
    {
      updateEvent = event;
      break;
    }
  }
  if (updateEvent != null)
  {
    updateActionBar();
  }
}
 
开发者ID:UBPL,项目名称:jive,代码行数:24,代码来源:AbstractJiveView.java

示例4: handleDebugEvents

public void handleDebugEvents(DebugEvent[] events) {
	for (DebugEvent debugEvent : events) {
		if ((debugEvent.getSource() instanceof SCTDebugTarget))
			switch (debugEvent.getKind()) {
				case DebugEvent.TERMINATE :
					if (allTargetsTerminated())
						schedulePerspectiveSwitchJob(ID_PERSPECTIVE_SCT_MODELING);
					break;
				case DebugEvent.SUSPEND :
					break;
				case DebugEvent.RESUME :
					break;
			}
	}
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:15,代码来源:SCTPerspectiveManager.java

示例5: handleDebugEvent

protected void handleDebugEvent(DebugEvent debugEvent) {
	switch (debugEvent.getKind()) {
	case DebugEvent.TERMINATE:
		Display.getDefault().asyncExec(new Runnable() {
			public void run() {
				debugTarget = null;
			}
		});
		break;
	case DebugEvent.SUSPEND:
		break;
	case DebugEvent.RESUME:
		break;
	}
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:15,代码来源:HighlightingSubmachineDecorationProvider.java

示例6: handleDebugEvent

/**
 * Handles {@link DebugEvent.SUSPEND} and {@link DebugEvent.RESUME} events
 * based on the input event's properties.
 */
private void handleDebugEvent(DebugEvent event) {
	if (event.getKind() == DebugEvent.SUSPEND) {
		handleSuspendEvent(event);
	} else if (event.getKind() == DebugEvent.RESUME) {
		handleResumeEvent(event);
	}
}
 
开发者ID:TestRoots,项目名称:watchdog,代码行数:11,代码来源:DebugEventListener.java

示例7: setSuspended

@Override
public void setSuspended(boolean suspended) {
    if (suspended != virtualConsoleThread.isSuspended()) {
        final int state;
        if (suspended) {
            state = DebugEvent.SUSPEND;
            virtualConsoleThread.setSuspended(true, createFrames());
        } else {
            state = DebugEvent.RESUME;
            virtualConsoleThread.setSuspended(false, null);
        }
        fireEvent(new DebugEvent(virtualConsoleThread, state, DebugEvent.CLIENT_REQUEST));
    }
}
 
开发者ID:fabioz,项目名称:Pydev,代码行数:14,代码来源:PyDebugTargetConsole.java


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