Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Amir Shaikhha authored August 29, 2012
14  org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaDamagerRepairer.scala
... ...
@@ -1,14 +0,0 @@
1  
-/*
2  
- * Copyright 2005-2010 LAMP/EPFL
3  
- */
4  
-// $Id$
5  
-
6  
-package scala.tools.eclipse
7  
-
8  
-import org.eclipse.jface.text.{ TextPresentation, ITypedRegion }
9  
-import org.eclipse.jface.text.rules.{ DefaultDamagerRepairer, ITokenScanner }
10  
-
11  
-class ScalaDamagerRepairer(scanner : ITokenScanner) extends DefaultDamagerRepairer(scanner) {
12  
-  override def createPresentation(presentation : TextPresentation, damage : ITypedRegion) : Unit =
13  
-    super.createPresentation(presentation, damage);
14  
-}
6  org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaSourceViewerConfiguration.scala
@@ -43,14 +43,8 @@ import scala.tools.eclipse.javaelements.ScalaCompilationUnit
43 43
 class ScalaSourceViewerConfiguration(store: IPreferenceStore, scalaPreferenceStore: IPreferenceStore, editor: ITextEditor)
44 44
    extends JavaSourceViewerConfiguration(JavaPlugin.getDefault.getJavaTextTools.getColorManager, store, editor, IJavaPartitions.JAVA_PARTITIONING) {
45 45
 
46  
-//   private val codeScanner = new ScalaCodeScanner(getColorManager, store, ScalaVersions.DEFAULT)
47  
-
48 46
    override def getPresentationReconciler(sv: ISourceViewer) = {
49 47
       val reconciler = super.getPresentationReconciler(sv).asInstanceOf[PresentationReconciler]
50  
-//      val dr = new ScalaDamagerRepairer(codeScanner)
51  
-//
52  
-//      reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE)
53  
-//      reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE)
54 48
 
55 49
       def handlePartition(partitionType: String, tokenScanner: ITokenScanner) {
56 50
          val dr = new DefaultDamagerRepairer(tokenScanner)

0 notes on commit ac7cf4b

Please sign in to comment.
Something went wrong with that request. Please try again.