Skip to content

Commit

Permalink
Fix compilation error after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kiritsuku committed Sep 12, 2014
1 parent cbdf513 commit 2f667cd
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package org.scalaide.core.internal.quickfix

import org.eclipse.ui.IMarkerResolutionGenerator
import org.eclipse.ui.IMarkerResolution
import org.eclipse.core.resources.IMarker
import org.eclipse.ui.IMarkerResolution
import org.eclipse.ui.IMarkerResolutionGenerator
import org.scalaide.core.internal.project.Nature
import org.scalaide.util.internal.Utils
import org.scalaide.util.internal.eclipse.EclipseUtils

class NoScalaLibraryMarkerResolver extends IMarkerResolutionGenerator {
def getResolutions(marker: IMarker): Array[IMarkerResolution] = {
override def getResolutions(marker: IMarker): Array[IMarkerResolution] = {
val addScalaLibrary = new IMarkerResolution() {
def getLabel: String = "Add Scala Library to Classpath"
def run(marker: IMarker): Unit = {
Utils.tryExecute(Nature.addScalaLibAndSave(marker.getResource.getProject))
override def getLabel: String = "Add Scala Library to Classpath"
override def run(marker: IMarker): Unit = {
EclipseUtils.withSafeRunner("Error occurred while adding Scala library to classpath") {
Nature.addScalaLibAndSave(marker.getResource.getProject)
}
}
}

Expand All @@ -20,4 +22,4 @@ class NoScalaLibraryMarkerResolver extends IMarkerResolutionGenerator {
} else
Array()
}
}
}

0 comments on commit 2f667cd

Please sign in to comment.