public class JsHeaderLibraryPresentationProvider
    extends LibraryPresentationProvider<LibraryVersionProperties> {
  public static final LibraryKind KOTLIN_JAVASCRIPT_HEADER_KIND =
      LibraryKind.create("kotlin-js-header");

  public static JsHeaderLibraryPresentationProvider getInstance() {
    return LibraryPresentationProvider.EP_NAME.findExtension(
        JsHeaderLibraryPresentationProvider.class);
  }

  protected JsHeaderLibraryPresentationProvider() {
    super(KOTLIN_JAVASCRIPT_HEADER_KIND);
  }

  @Nullable
  @Override
  public Icon getIcon() {
    return JetIcons.SMALL_LOGO_13;
  }

  @Nullable
  @Override
  public LibraryVersionProperties detect(@NotNull List<VirtualFile> classesRoots) {
    return JsHeaderLibraryDetectionUtil.isJsHeaderLibraryDetected(classesRoots)
        ? new LibraryVersionProperties(null)
        : null;
  }
}
Exemplo n.º 2
0
 public MoonLibraryType() {
   super(LibraryKind.<MoonLibraryProperties>create(MOON_LIBRARY_TYPE_ID));
 }
Exemplo n.º 3
0
/** Created by IntelliJ IDEA. User: Jon S Akhtar Date: 8/24/12 Time: 6:09 PM */
public interface LuaLibrary {
  String LUA_LIBRARY_TYPE_ID = "Lua";
  String LUA_LIBRARY_CATEGORY_NAME = "Lua";
  String LUA_LIBRARY_KIND_ID = "Lua";
  LibraryKind KIND = LibraryKind.create(LUA_LIBRARY_KIND_ID);
}