Java Code Examples for org.eclipse.debug.core.DebugEvent#RESUME

The following examples show how to use org.eclipse.debug.core.DebugEvent#RESUME . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SimulationView.java    From statecharts with Eclipse Public License 1.0 6 votes vote down vote up
@Override
protected void handleDebugEvent(DebugEvent debugEvent) {
	updateActions();
	switch (debugEvent.getKind()) {
	case DebugEvent.TERMINATE:
		setExecutionContextInput(null);
		Display.getDefault().asyncExec(() -> {
			sessionViewerInputChanged(null);
			if (clock != null && !clock.isDisposed()) {
				clock.updateTimestamp(0);
			}
		});
		raiseEventThreadGroup.interrupt();
		break;
	case DebugEvent.SUSPEND:
		Display.getDefault().asyncExec(() -> {
			simulationSessionViewer.refresh();
		});
		break;
	case DebugEvent.RESUME:
		Display.getDefault().asyncExec(() -> {
			simulationSessionViewer.refresh();
		});
		break;
	}
}
 
Example 2
Source File: SCTPerspectiveManager.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
public void handleDebugEvents(DebugEvent[] events) {
	for (DebugEvent debugEvent : events) {
		if ((debugEvent.getSource().getClass().equals(SCTDebugTarget.class)))
			switch (debugEvent.getKind()) {
				case DebugEvent.TERMINATE :
					if (allTargetsTerminated())
						schedulePerspectiveSwitchJob(ID_PERSPECTIVE_SCT_MODELING);
					break;
				case DebugEvent.SUSPEND :
					break;
				case DebugEvent.RESUME :
					break;
			}
	}
}
 
Example 3
Source File: HighlightingSubmachineDecorationProvider.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
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;
	}
}
 
Example 4
Source File: PyDebugTargetConsole.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@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));
    }
}