~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to results/plugins/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Signal.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
7
 
 *
8
 
 * Contributors:
9
 
 *     QNX Software Systems - Initial API and implementation
10
 
 *******************************************************************************/
11
 
package org.eclipse.cdt.debug.mi.core.cdi.model;
12
 
 
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;
18
 
 
19
 
/**
20
 
 */
21
 
public class Signal extends CObject implements ICDISignal {
22
 
 
23
 
        MISigHandle sig;
24
 
 
25
 
        public Signal(Target target, MISigHandle s) {
26
 
                super(target);
27
 
                sig = s;
28
 
        }
29
 
                
30
 
        public void setMISignal(MISigHandle s) {
31
 
                sig = s;
32
 
        }
33
 
 
34
 
        public MISigHandle getMISignal() {
35
 
                return sig;
36
 
        }
37
 
 
38
 
        /**
39
 
         * @see org.eclipse.cdt.debug.core.cdi.ICDISignal#getMeaning()
40
 
         */
41
 
        public String getDescription() {
42
 
                return sig.getDescription();
43
 
        }
44
 
 
45
 
        /**
46
 
         * @see org.eclipse.cdt.debug.core.cdi.ICDISignal#getName()
47
 
         */
48
 
        public String getName() {
49
 
                return sig.getName();
50
 
        }
51
 
 
52
 
        /**
53
 
         * @see org.eclipse.cdt.debug.core.cdi.ICDISignal#handle()
54
 
         */
55
 
        public void handle(boolean ignore, boolean stop) throws CDIException {
56
 
                SignalManager mgr = ((Session)getTarget().getSession()).getSignalManager();
57
 
                mgr.handle(this, ignore, stop);
58
 
        }
59
 
 
60
 
        /**
61
 
         * @see org.eclipse.cdt.debug.core.cdi.ICDISignal#isIgnore()
62
 
         */
63
 
        public boolean isIgnore() {
64
 
                return !sig.isPass();
65
 
        }
66
 
 
67
 
        /**
68
 
         * @see org.eclipse.cdt.debug.core.cdi.ICDISignal#isStopSet()
69
 
         */
70
 
        public boolean isStopSet() {
71
 
                return sig.isStop();
72
 
        }
73
 
 
74
 
        /**
75
 
         * Continue program giving it signal specified by the argument.
76
 
         */
77
 
        public void signal() throws CDIException {
78
 
                getTarget().resume(this);
79
 
        }
80
 
}