blob: 1b793985a0989d2674503fbd6ecc4401796dd524 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*******************************************************************************
* Copyright (c) 2002, 2004 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* QNX Software Systems - Initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.debug.mi.core.cdi.event;
import org.eclipse.cdt.debug.core.cdi.event.ICDIDisconnectedEvent;
import org.eclipse.cdt.debug.core.cdi.model.ICDIObject;
import org.eclipse.cdt.debug.mi.core.cdi.Session;
import org.eclipse.cdt.debug.mi.core.cdi.model.Target;
import org.eclipse.cdt.debug.mi.core.event.MIDetachedEvent;
/**
*/
public class DisconnectedEvent implements ICDIDisconnectedEvent {
ICDIObject source;
public DisconnectedEvent(Session session, MIDetachedEvent detach) {
Target target = session.getTarget(detach.getMISession());
source = target;
}
/**
* @see org.eclipse.cdt.debug.core..ICDIEvent#getSource()
*/
public ICDIObject getSource() {
return source;
}
}
|