本文整理汇总了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());
}
});
}
示例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;
}
}
}
示例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();
}
}
示例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;
}
}
}
示例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;
}
}
示例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);
}
}
示例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));
}
}