Browse files

Fixed #1000631. It is somehow link to inter-project dependency.

Added check so markers are modified in the project is closed.
  • Loading branch information...
1 parent 5809b3b commit 3b55904ae94b8be7ba340a27acbe478c3089373b @skyluc skyluc committed Nov 1, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaProject.scala
View
4 org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaProject.scala
@@ -367,6 +367,7 @@ class ScalaProject(val underlying: IProject) extends HasLogger {
// the classpath change notification
val markerJob= new Job("Update classpath error marker") {
override def run(monitor: IProgressMonitor): IStatus = {
+ if (underlying.isOpen()) { // cannot change markers on closed project
// clean the markers
underlying.deleteMarkers(plugin.problemMarkerId, false, IResource.DEPTH_ZERO)
@@ -378,7 +379,8 @@ class ScalaProject(val underlying: IProject) extends HasLogger {
marker.setAttribute(IMarker.SEVERITY, severity)
case _ =>
}
- Status.OK_STATUS
+ }
+ Status.OK_STATUS
}
}
markerJob.setRule(underlying)

0 comments on commit 3b55904

Please sign in to comment.