blob: 9e96f434c3ef27972060a5391e57679a759c0b76 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
/*******************************************************************************
* Copyright (c) 2000, 2005 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.core.model;
/**
* Represents the status of a C/C++ debug model element.
*/
public interface ICDebugElementStatus {
/**
* Status severity constant (value 0) indicating this status represents
* the nominal case.
*/
public static final int OK = 0;
/**
* Status severity constant (value 1) indicating indicating this status
* represents a warning.
*/
public static final int WARNING = 1;
/**
* Status severity constant (value 2) indicating indicating this status
* represents an error.
*/
public static final int ERROR = 2;
/**
* Returns whether this status indicates everything is okay
* (neither warning, nor error).
*
* @return <code>true</code> if this status has severity
* <code>OK</code>, and <code>false</code> otherwise
*/
boolean isOK();
/**
* Returns the severity. The severities are as follows (in descending order):
* <ul>
* <li><code>ERROR</code> - an error</li>
* <li><code>WARNING</code> - a warning</li>
* <li><code>OK</code> - everything is just fine</li>
* </ul>
*
* @return the severity: one of <code>OK</code>, <code>ERROR</code>,
* or <code>WARNING</code>
*/
int getSeverity();
/**
* Returns the message describing the outcome.
*
* @return a message
*/
String getMessage();
}
|