Package org.jetbrains.plugins.clojure.config

Source Code of org.jetbrains.plugins.clojure.config.ClojureFacetLoader

package org.jetbrains.plugins.clojure.config;

import com.intellij.openapi.components.ApplicationComponent;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.facet.FacetTypeRegistry;
import org.jetbrains.annotations.NotNull;

/**
* @author ilyas
*/
public class ClojureFacetLoader implements ApplicationComponent {

  public static final String PLUGIN_MODULE_ID = "PLUGIN_MODULE";


  public static ClojureFacetLoader getInstance() {
    return ApplicationManager.getApplication().getComponent(ClojureFacetLoader.class);
  }

  public ClojureFacetLoader() {
  }

  public void initComponent() {
    FacetTypeRegistry.getInstance().registerFacetType(ClojureFacetType.INSTANCE);
  }

  public void disposeComponent() {
    FacetTypeRegistry instance = FacetTypeRegistry.getInstance();
    instance.unregisterFacetType(instance.findFacetType(ClojureFacet.ID));
  }

  @NotNull
  public String getComponentName() {
    return "ClojureFacetLoader";
  }


}
TOP

Related Classes of org.jetbrains.plugins.clojure.config.ClojureFacetLoader

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.