Skip to content

Commit

Permalink
Merge pull request scala-ide#518 from dragos/issue/fix-derived-output…
Browse files Browse the repository at this point in the history
…-folders-1000260

Mark output folders as "Derived".
  • Loading branch information
dotta committed Sep 4, 2013
2 parents 34b3861 + f97085f commit 9650153
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -432,7 +432,12 @@ class ScalaProject private (val underlying: IProject) extends ClasspathManagemen

private def refreshOutputFolders(): Unit = {
sourceOutputFolders foreach {
case (_, binFolder) => binFolder.refreshLocal(IResource.DEPTH_INFINITE, null)
case (_, binFolder) =>
binFolder.refreshLocal(IResource.DEPTH_INFINITE, null)
// make sure the folder is marked as Derived, so we don't see classfiles in Open Resource
// but don't set it unless necessary (this might be an expensive operation)
if (!binFolder.isDerived)
binFolder.setDerived(true, null)
}
}

Expand Down

0 comments on commit 9650153

Please sign in to comment.