Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ScalaDamagerRepairer does nothing special, so it is removed. Also cod…

…eScanner and scalaCodeScanner was identical, and the part for creating damagerRepairer for them.
  • Loading branch information...
commit ac7cf4b75a898ed103a6c40e3d13ed7a50044d62 1 parent f5bb1d9
@amirsh amirsh authored
View
14 org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaDamagerRepairer.scala
@@ -1,14 +0,0 @@
-/*
- * Copyright 2005-2010 LAMP/EPFL
- */
-// $Id$
-
-package scala.tools.eclipse
-
-import org.eclipse.jface.text.{ TextPresentation, ITypedRegion }
-import org.eclipse.jface.text.rules.{ DefaultDamagerRepairer, ITokenScanner }
-
-class ScalaDamagerRepairer(scanner : ITokenScanner) extends DefaultDamagerRepairer(scanner) {
- override def createPresentation(presentation : TextPresentation, damage : ITypedRegion) : Unit =
- super.createPresentation(presentation, damage);
-}
View
6 org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaSourceViewerConfiguration.scala
@@ -43,14 +43,8 @@ import scala.tools.eclipse.javaelements.ScalaCompilationUnit
class ScalaSourceViewerConfiguration(store: IPreferenceStore, scalaPreferenceStore: IPreferenceStore, editor: ITextEditor)
extends JavaSourceViewerConfiguration(JavaPlugin.getDefault.getJavaTextTools.getColorManager, store, editor, IJavaPartitions.JAVA_PARTITIONING) {
-// private val codeScanner = new ScalaCodeScanner(getColorManager, store, ScalaVersions.DEFAULT)
-
override def getPresentationReconciler(sv: ISourceViewer) = {
val reconciler = super.getPresentationReconciler(sv).asInstanceOf[PresentationReconciler]
-// val dr = new ScalaDamagerRepairer(codeScanner)
-//
-// reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE)
-// reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE)
def handlePartition(partitionType: String, tokenScanner: ITokenScanner) {
val dr = new DefaultDamagerRepairer(tokenScanner)
Please sign in to comment.
Something went wrong with that request. Please try again.