com.jetbrains.plugin.structure.ide.IdeImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-ide Show documentation
Show all versions of structure-ide Show documentation
Library for resolving class files and resources of IntelliJ Platform IDEs.
/*
* 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;
import com.jetbrains.plugin.structure.intellij.plugin.IdePlugin;
import com.jetbrains.plugin.structure.intellij.version.IdeVersion;
import org.jetbrains.annotations.NotNull;
import java.nio.file.Path;
import java.util.Collections;
import java.util.List;
class IdeImpl extends Ide {
private final List myBundledPlugins;
private final IdeVersion myVersion;
private final Path myIdePath;
IdeImpl(@NotNull Path idePath,
@NotNull IdeVersion version,
@NotNull List bundledPlugins) {
myIdePath = idePath;
myBundledPlugins = bundledPlugins;
myVersion = version;
}
@NotNull
@Override
public IdeVersion getVersion() {
return myVersion;
}
@Override
@NotNull
public List getBundledPlugins() {
return Collections.unmodifiableList(myBundledPlugins);
}
@NotNull
@Override
public Path getIdePath() {
return myIdePath;
}
@Override
public String toString() {
return myVersion.asString();
}
}