Search in sources :

Example 1 with TraceChangedEventData

use of org.erlide.backend.debug.model.TraceChangedEventData in project erlide_eclipse by erlang.

the class DebuggerTraceView method handleDebugEvents.

@Override
public void handleDebugEvents(final DebugEvent[] events) {
    for (final DebugEvent event : events) {
        if (event.getKind() == DebugEvent.MODEL_SPECIFIC && event.getDetail() == ErlangDebugTarget.TRACE_CHANGED) {
            final Object source = event.getSource();
            if (source instanceof ErlangDebugTarget) {
                final TraceChangedEventData data = (TraceChangedEventData) event.getData();
                traceChanged(data, source);
            }
        }
    }
}
Also used : ErlangDebugTarget(org.erlide.backend.debug.model.ErlangDebugTarget) TraceChangedEventData(org.erlide.backend.debug.model.TraceChangedEventData) DebugEvent(org.eclipse.debug.core.DebugEvent) OtpErlangObject(com.ericsson.otp.erlang.OtpErlangObject)

Aggregations

OtpErlangObject (com.ericsson.otp.erlang.OtpErlangObject)1 DebugEvent (org.eclipse.debug.core.DebugEvent)1 ErlangDebugTarget (org.erlide.backend.debug.model.ErlangDebugTarget)1 TraceChangedEventData (org.erlide.backend.debug.model.TraceChangedEventData)1