Skip to content

Commit

Permalink
Additional compiler options (no warn, explain types). Added an edit b…
Browse files Browse the repository at this point in the history
…ox (with completion) for additional command line arguments (since they vary across compiler versions).

Fixed #1000547. Fixed #1000529.
  • Loading branch information
dragos committed Sep 12, 2011
1 parent 0a98cde commit 9bc6f06
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 293 deletions.
Expand Up @@ -7,9 +7,7 @@ package scala.tools.eclipse

import scala.collection.immutable.Set
import scala.collection.mutable.{ LinkedHashSet, HashMap, HashSet }

import java.io.File.pathSeparator

import org.eclipse.core.resources.{ IContainer, IFile, IFolder, IMarker, IProject, IResource, IResourceProxy, IResourceProxyVisitor }
import org.eclipse.core.runtime.{ FileLocator, IPath, IProgressMonitor, Path, SubMonitor }
import org.eclipse.jdt.core.{ IClasspathEntry, IJavaProject, JavaCore }
Expand All @@ -18,15 +16,14 @@ import org.eclipse.jdt.internal.core.JavaProject
import org.eclipse.jdt.internal.core.builder.{ ClasspathDirectory, ClasspathLocation, NameEnvironment }
import org.eclipse.jdt.internal.core.util.Util
import org.eclipse.swt.widgets.{ Display, Shell }

import scala.tools.nsc.{ Settings, MissingRequirementError }
import scala.tools.nsc.util.SourceFile

import scala.tools.eclipse.javaelements.ScalaCompilationUnit
import scala.tools.eclipse.properties.PropertyStore
import scala.tools.eclipse.util.{ Cached, EclipseResource, IDESettings, OSGiUtils, ReflectionUtils, EclipseUtils }
import util.SWTUtils.asyncExec
import EclipseUtils.workspaceRunnableIn
import scala.tools.eclipse.properties.CompilerSettings

trait BuildSuccessListener {
def buildSuccessful(): Unit
Expand Down Expand Up @@ -399,6 +396,11 @@ class ScalaProject(val underlying: IProject) {
case t: Throwable => plugin.logError("Unable to set setting '" + setting.name + "' to '" + value0 + "'", t)
}
}

// handle additional parameters
val additional = store.getString(CompilerSettings.ADDITIONAL_PARAMS)
println("setting additional paramters: " + additional)
settings.processArgumentString(additional)
}

private def buildManagerInitialize: String =
Expand Down

0 comments on commit 9bc6f06

Please sign in to comment.