All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jetbrains.plugin.structure.ide.classes.IdeFileOrigin.kt Maven / Gradle / Ivy

There is a newer version: 3.290
Show newest version
/*
 * Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
 */

package com.jetbrains.plugin.structure.ide.classes

import com.jetbrains.plugin.structure.classes.resolvers.FileOrigin
import com.jetbrains.plugin.structure.ide.Ide
import com.jetbrains.plugin.structure.intellij.plugin.IdePlugin
import java.nio.file.Path

sealed class IdeFileOrigin : FileOrigin {
  override val parent: FileOrigin? = null

  data class IdeLibDirectory(override val ide: Ide) : IdeAwareFileOrigin(ide)
  data class RepositoryLibrary(override val ide: Ide) : IdeAwareFileOrigin(ide)
  data class SourceLibDirectory(override val ide: Ide) : IdeAwareFileOrigin(ide)
  data class CompiledModule(override val ide: Ide, val moduleName: String) : IdeAwareFileOrigin(ide)

  class BundledPlugin(val pluginFile: Path, val idePlugin: IdePlugin) : IdeFileOrigin()

  abstract class IdeAwareFileOrigin(open val ide: Ide): IdeFileOrigin()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy