Reformat: structureView package

This commit is contained in:
Nikolay Krasko
2018-03-05 16:30:11 +03:00
parent 6c4537accc
commit bb9933a8f9
4 changed files with 22 additions and 19 deletions
@@ -34,8 +34,10 @@ import javax.swing.Icon
import kotlin.properties.ReadWriteProperty import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty import kotlin.reflect.KProperty
class KotlinStructureViewElement(val element: NavigatablePsiElement, class KotlinStructureViewElement(
private val isInherited: Boolean = false) : PsiTreeElementBase<NavigatablePsiElement>(element), Queryable { val element: NavigatablePsiElement,
private val isInherited: Boolean = false
) : PsiTreeElementBase<NavigatablePsiElement>(element), Queryable {
private var kotlinPresentation private var kotlinPresentation
by AssignableLazyProperty { by AssignableLazyProperty {
@@ -30,6 +30,7 @@ import org.jetbrains.kotlin.psi.KtFile
class KotlinStructureViewModel(ktFile: KtFile, editor: Editor?) : class KotlinStructureViewModel(ktFile: KtFile, editor: Editor?) :
StructureViewModelBase(ktFile, editor, KotlinStructureViewElement(ktFile, false)), StructureViewModelBase(ktFile, editor, KotlinStructureViewElement(ktFile, false)),
StructureViewModel.ElementInfoProvider { StructureViewModel.ElementInfoProvider {
init { init {
withSuitableClasses(KtDeclaration::class.java) withSuitableClasses(KtDeclaration::class.java)
withSorters(Sorter.ALPHA_SORTER) withSorters(Sorter.ALPHA_SORTER)