package org.jetbrains.plugins.scala.lang.structureView

import com.intellij.lang.PsiStructureViewFactory
import com.intellij.psi.PsiFile
import com.intellij.ide.structureView.StructureViewBuilder
import psi._
import psi.api.ScalaFile

/**
* @author Alexander Podkhalyuzin
* Date: 04.05.2008
*/

class ScalaStructureViewFactory extends PsiStructureViewFactory {
  def getStructureViewBuilder(psiFile: PsiFile): StructureViewBuilder = new ScalaStructureViewBuilder(psiFile.asInstanceOf[ScalaFile])
}
package org.jetbrains.plugins.scala.lang.structureView

import com.intellij.lang.PsiStructureViewFactory
import com.intellij.psi.PsiFile
import com.intellij.ide.structureView.StructureViewBuilder
import psi._
import psi.api.ScalaFile

/**
* @author Alexander Podkhalyuzin
* Date: 04.05.2008
*/

class ScalaStructureViewFactory extends PsiStructureViewFactory {
  def getStructureViewBuilder(psiFile: PsiFile): StructureViewBuilder = psiFile match {
    case sf: ScalaFile => new ScalaStructureViewBuilder(sf)
    case _ => null
  }
}
Structure builder modified according to new IDEA API
Structure builder modified according to new IDEA API

git-svn-id: ba81b6bd3dd9830eeafada3de57364a31f808d18@21743 59f64563-22e8-0310-8d2c-98a15e1539f2
