|
From: <caw...@us...> - 2007-08-17 15:03:33
|
Revision: 2994
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2994&view=rev
Author: cawilliams
Date: 2007-08-17 08:03:31 -0700 (Fri, 17 Aug 2007)
Log Message:
-----------
fix #5513 - Task tag markers are displayed twice per task
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java 2007-08-17 14:24:41 UTC (rev 2993)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/RubyModelManager.java 2007-08-17 15:03:31 UTC (rev 2994)
@@ -616,7 +616,11 @@
// Don't accept the problem if a marker already exists for this same problem...
try {
IResource resource = workingCopy.getUnderlyingResource();
- IMarker marker = MarkerUtility.markerExists(resource, problem.getMessage(), problem.getSourceLineNumber(), IRubyModelMarker.RUBY_MODEL_PROBLEM_MARKER);
+ String markerType = IRubyModelMarker.RUBY_MODEL_PROBLEM_MARKER;
+ if (problem.isTask()) {
+ markerType = IRubyModelMarker.TASK_MARKER;
+ }
+ IMarker marker = MarkerUtility.markerExists(resource, problem.getMessage(), problem.getSourceLineNumber(), markerType);
if (marker != null) return;
} catch (RubyModelException e) {
// ignore
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|