Lines 51-64
Link Here
|
51 |
private boolean inCompiler; |
51 |
private boolean inCompiler; |
52 |
|
52 |
|
53 |
public static int MAX_AT_ONCE = 1000; |
53 |
public static int MAX_AT_ONCE = 1000; |
54 |
public final static String[] JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES = { |
54 |
public final static String[] JAVA_PROBLEM_AND_TASK_MARKER_ATTRIBUTE_NAMES = { |
55 |
IMarker.MESSAGE, |
55 |
IMarker.MESSAGE, |
56 |
IMarker.SEVERITY, |
56 |
IMarker.SEVERITY, |
|
|
57 |
IMarker.PRIORITY, |
57 |
IJavaModelMarker.ID, |
58 |
IJavaModelMarker.ID, |
58 |
IMarker.CHAR_START, |
59 |
IMarker.CHAR_START, |
59 |
IMarker.CHAR_END, |
60 |
IMarker.CHAR_END, |
60 |
IMarker.LINE_NUMBER, |
61 |
IMarker.LINE_NUMBER, |
61 |
IJavaModelMarker.ARGUMENTS}; |
62 |
IJavaModelMarker.ARGUMENTS}; |
|
|
63 |
public final static Integer S_INFO = new Integer(IMarker.SEVERITY_INFO); |
62 |
public final static Integer S_ERROR = new Integer(IMarker.SEVERITY_ERROR); |
64 |
public final static Integer S_ERROR = new Integer(IMarker.SEVERITY_ERROR); |
63 |
public final static Integer S_WARNING = new Integer(IMarker.SEVERITY_WARNING); |
65 |
public final static Integer S_WARNING = new Integer(IMarker.SEVERITY_WARNING); |
64 |
public final static Integer P_HIGH = new Integer(IMarker.PRIORITY_HIGH); |
66 |
public final static Integer P_HIGH = new Integer(IMarker.PRIORITY_HIGH); |
Lines 384-393
Link Here
|
384 |
if (id != IProblem.Task) { |
386 |
if (id != IProblem.Task) { |
385 |
IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); |
387 |
IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); |
386 |
marker.setAttributes( |
388 |
marker.setAttributes( |
387 |
JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES, |
389 |
JAVA_PROBLEM_AND_TASK_MARKER_ATTRIBUTE_NAMES, |
388 |
new Object[] { |
390 |
new Object[] { |
389 |
problem.getMessage(), |
391 |
problem.getMessage(), |
390 |
problem.isError() ? S_ERROR : S_WARNING, |
392 |
problem.isError() ? S_ERROR : S_WARNING, |
|
|
393 |
P_NORMAL, |
391 |
new Integer(id), |
394 |
new Integer(id), |
392 |
new Integer(problem.getSourceStart()), |
395 |
new Integer(problem.getSourceStart()), |
393 |
new Integer(problem.getSourceEnd() + 1), |
396 |
new Integer(problem.getSourceEnd() + 1), |
Lines 425-431
Link Here
|
425 |
IResource resource = sourceFile.resource; |
428 |
IResource resource = sourceFile.resource; |
426 |
for (int i = 0, l = tasks.length; i < l; i++) { |
429 |
for (int i = 0, l = tasks.length; i < l; i++) { |
427 |
IProblem task = tasks[i]; |
430 |
IProblem task = tasks[i]; |
428 |
if (task.getID() == IProblem.Task) { |
431 |
final int id = task.getID(); |
|
|
432 |
if (id == IProblem.Task) { |
429 |
IMarker marker = resource.createMarker(IJavaModelMarker.TASK_MARKER); |
433 |
IMarker marker = resource.createMarker(IJavaModelMarker.TASK_MARKER); |
430 |
Integer priority = P_NORMAL; |
434 |
Integer priority = P_NORMAL; |
431 |
String compilerPriority = task.getArguments()[2]; |
435 |
String compilerPriority = task.getArguments()[2]; |
Lines 434-444
Link Here
|
434 |
else if (JavaCore.COMPILER_TASK_PRIORITY_LOW.equals(compilerPriority)) |
438 |
else if (JavaCore.COMPILER_TASK_PRIORITY_LOW.equals(compilerPriority)) |
435 |
priority = P_LOW; |
439 |
priority = P_LOW; |
436 |
marker.setAttributes( |
440 |
marker.setAttributes( |
437 |
JAVA_PROBLEM_MARKER_ATTRIBUTE_NAMES, |
441 |
JAVA_PROBLEM_AND_TASK_MARKER_ATTRIBUTE_NAMES, |
438 |
new Object[] { |
442 |
new Object[] { |
439 |
task.getMessage(), |
443 |
task.getMessage(), |
|
|
444 |
S_INFO, |
440 |
priority, |
445 |
priority, |
441 |
org.eclipse.jdt.internal.compiler.util.Util.toBoolean(false), |
446 |
new Integer(id), |
442 |
new Integer(task.getSourceStart()), |
447 |
new Integer(task.getSourceStart()), |
443 |
new Integer(task.getSourceEnd() + 1), |
448 |
new Integer(task.getSourceEnd() + 1), |
444 |
new Integer(task.getSourceLineNumber()), |
449 |
new Integer(task.getSourceLineNumber()), |