|
Lines 11-35
Link Here
|
| 11 |
package org.eclipse.core.runtime; |
11 |
package org.eclipse.core.runtime; |
| 12 |
|
12 |
|
| 13 |
import org.eclipse.core.internal.runtime.Assert; |
13 |
import org.eclipse.core.internal.runtime.Assert; |
| 14 |
import org.eclipse.core.internal.runtime.Policy; |
|
|
| 15 |
|
14 |
|
| 16 |
/** |
15 |
/** |
| 17 |
* A concrete status implementation, suitable either for |
16 |
* A concrete status implementation, suitable either for |
| 18 |
* instantiating or subclassing. |
17 |
* instantiating or subclassing. |
| 19 |
*/ |
18 |
*/ |
| 20 |
public class Status implements IStatus { |
19 |
public class Status implements IStatus { |
|
|
20 |
|
| 21 |
|
| 21 |
/** |
22 |
/** |
| 22 |
* A standard OK status with an "ok" message. |
23 |
* A standard OK status with an "ok" message. |
| 23 |
* |
24 |
* |
| 24 |
* @since 3.0 |
25 |
* @since 3.0 |
| 25 |
*/ |
26 |
*/ |
| 26 |
public static final IStatus OK_STATUS = new Status(OK, Platform.PI_RUNTIME, OK, Policy.bind("ok"), null); //$NON-NLS-1$ |
27 |
public static final IStatus OK_STATUS = new Status(OK, "org.eclipse.core.runtime", OK, "", null); //$NON-NLS-1$ //$NON-NLS-2$ |
|
|
28 |
//the plug-in id is hard-coded here to prevent this class from depending on Platform |
| 29 |
//This is so the JFace may be decoupled from runtime and this class |
| 30 |
//is coming along (in utility.jar) |
| 31 |
|
| 27 |
/** |
32 |
/** |
| 28 |
* A standard CANCEL status with no message. |
33 |
* A standard CANCEL status with no message. |
| 29 |
* |
34 |
* |
| 30 |
* @since 3.0 |
35 |
* @since 3.0 |
| 31 |
*/ |
36 |
*/ |
| 32 |
public static final IStatus CANCEL_STATUS = new Status(CANCEL, Platform.PI_RUNTIME, 1, "", null); //$NON-NLS-1$ |
37 |
public static final IStatus CANCEL_STATUS = new Status(CANCEL, "org.eclipse.core.runtime", 1, "", null); //$NON-NLS-1$ //$NON-NLS-2$ |
| 33 |
/** |
38 |
/** |
| 34 |
* The severity. One of |
39 |
* The severity. One of |
| 35 |
* <ul> |
40 |
* <ul> |
|
Lines 81-87
Link Here
|
| 81 |
setMessage(message); |
86 |
setMessage(message); |
| 82 |
setException(exception); |
87 |
setException(exception); |
| 83 |
} |
88 |
} |
| 84 |
|
89 |
|
|
|
90 |
|
| 85 |
/* (Intentionally not javadoc'd) |
91 |
/* (Intentionally not javadoc'd) |
| 86 |
* Implements the corresponding method on <code>IStatus</code>. |
92 |
* Implements the corresponding method on <code>IStatus</code>. |
| 87 |
*/ |
93 |
*/ |