1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.debug.mi.core.cdi.model;
13
import org.eclipse.cdt.debug.core.cdi.CDIException;
14
import org.eclipse.cdt.debug.core.cdi.model.ICDISignal;
15
import org.eclipse.cdt.debug.mi.core.cdi.Session;
16
import org.eclipse.cdt.debug.mi.core.cdi.SignalManager;
17
import org.eclipse.cdt.debug.mi.core.output.MISigHandle;
21
public class Signal extends CObject implements ICDISignal {
25
public Signal(Target target, MISigHandle s) {
30
public void setMISignal(MISigHandle s) {
34
public MISigHandle getMISignal() {
39
* @see org.eclipse.cdt.debug.core.cdi.ICDISignal#getMeaning()
41
public String getDescription() {
42
return sig.getDescription();
46
* @see org.eclipse.cdt.debug.core.cdi.ICDISignal#getName()
48
public String getName() {
53
* @see org.eclipse.cdt.debug.core.cdi.ICDISignal#handle()
55
public void handle(boolean ignore, boolean stop) throws CDIException {
56
SignalManager mgr = ((Session)getTarget().getSession()).getSignalManager();
57
mgr.handle(this, ignore, stop);
61
* @see org.eclipse.cdt.debug.core.cdi.ICDISignal#isIgnore()
63
public boolean isIgnore() {
68
* @see org.eclipse.cdt.debug.core.cdi.ICDISignal#isStopSet()
70
public boolean isStopSet() {
75
* Continue program giving it signal specified by the argument.
77
public void signal() throws CDIException {
78
getTarget().resume(this);