author | tasneems@symbian.org |
Wed, 27 Jan 2010 15:05:37 -0800 | |
changeset 50 | 0560e98b9bf6 |
permissions | -rw-r--r-- |
50
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
1 |
/** |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
2 |
* Copyright (c) 2009 Symbian Foundation and/or its subsidiary(-ies). |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
3 |
* All rights reserved. |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
5 |
* under the terms of the License "Eclipse Public License v1.0" |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
8 |
* |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
9 |
* Initial Contributors: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
10 |
* Symbian Foundation - initial contribution. |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
11 |
* Contributors: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
12 |
* Description: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
13 |
* Overview: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
14 |
* Details: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
15 |
* Platforms/Drives/Compatibility: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
16 |
* Assumptions/Requirement/Pre-requisites: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
17 |
* Failures and causes: |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
18 |
*/ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
19 |
package org.symbian.tools.wrttools.sdt.utils; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
20 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
21 |
import org.eclipse.core.resources.IMarker; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
22 |
import org.eclipse.core.resources.IResource; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
23 |
import org.eclipse.core.runtime.IPath; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
24 |
import org.eclipse.core.runtime.IStatus; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
25 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
26 |
/** |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
27 |
* This encapsulates generic information about a message |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
28 |
* that can be reported to multiple sources (problems view, |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
29 |
* etc). |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
30 |
* |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
31 |
* @author eswartz |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
32 |
* |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
33 |
*/ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
34 |
public interface IMessage { |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
35 |
static public final int INFO = IStatus.INFO; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
36 |
static public final int WARNING = IStatus.WARNING; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
37 |
static public final int ERROR = IStatus.ERROR; |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
38 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
39 |
/** Get the severity |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
40 |
* @see #INFO |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
41 |
* @see #WARNING |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
42 |
* @see #ERROR |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
43 |
*/ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
44 |
int getSeverity(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
45 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
46 |
/** Get the message location */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
47 |
MessageLocation getMessageLocation(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
48 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
49 |
/** Get the offending file (full path) or null */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
50 |
IPath getLocation(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
51 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
52 |
/** Get the offending file (workspace path) or null */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
53 |
IPath getPath(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
54 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
55 |
/** Get the line number */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
56 |
int getLineNumber(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
57 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
58 |
/** Get the column number */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
59 |
int getColumnNumber(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
60 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
61 |
/** Get the message (localized) */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
62 |
String getMessage(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
63 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
64 |
/** Get the message key, i.e. the non-localized identifier for the message, |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
65 |
* for use in testing */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
66 |
String getMessageKey(); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
67 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
68 |
/** Create (and attach) a problem marker */ |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
69 |
IMarker createMarker(IResource resource, String modelMarkerType); |
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
70 |
|
0560e98b9bf6
Added widget project nature and WRT validators
tasneems@symbian.org
parents:
diff
changeset
|
71 |
} |