Skip to content

Commit

Permalink
Fixed #1000631. It is somehow link to inter-project dependency.
Browse files Browse the repository at this point in the history
Added check so markers are modified in the project is closed.
  • Loading branch information
Luc Bourlier committed Nov 1, 2011
1 parent 5809b3b commit 3b55904
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ class ScalaProject(val underlying: IProject) extends HasLogger {
// the classpath change notification // the classpath change notification
val markerJob= new Job("Update classpath error marker") { val markerJob= new Job("Update classpath error marker") {
override def run(monitor: IProgressMonitor): IStatus = { override def run(monitor: IProgressMonitor): IStatus = {
if (underlying.isOpen()) { // cannot change markers on closed project
// clean the markers // clean the markers
underlying.deleteMarkers(plugin.problemMarkerId, false, IResource.DEPTH_ZERO) underlying.deleteMarkers(plugin.problemMarkerId, false, IResource.DEPTH_ZERO)


Expand All @@ -378,7 +379,8 @@ class ScalaProject(val underlying: IProject) extends HasLogger {
marker.setAttribute(IMarker.SEVERITY, severity) marker.setAttribute(IMarker.SEVERITY, severity)
case _ => case _ =>
} }
Status.OK_STATUS }
Status.OK_STATUS
} }
} }
markerJob.setRule(underlying) markerJob.setRule(underlying)
Expand Down

0 comments on commit 3b55904

Please sign in to comment.