Class FacetsFacade


  • public abstract class FacetsFacade
    extends Object
    • Constructor Detail

      • FacetsFacade

        protected FacetsFacade()
    • Method Detail

      • getInstance

        @Deprecated
        public static FacetsFacade getInstance()
        Deprecated.
        Use respective ComponentPlugin (i.e. MPSCore) to obtain instance of the registry.
      • getFacetTypes

        public abstract Set<String> getFacetTypes()
        Return set of all registered facet types
      • registerLanguageFacet

        public abstract void registerLanguageFacet​(@NotNull
                                                   SLanguage language,
                                                   String facetType)
        Associates a facet with a language. Allows MPS to advise a user to turn on the facet for modules using this language.
      • unregisterLanguageFacet

        public abstract void unregisterLanguageFacet​(@NotNull
                                                     SLanguage language,
                                                     String facetType)
      • getFacetFactory

        @Nullable
        public abstract FacetsFacade.FacetFactory getFacetFactory​(String facetType)
        Parameters:
        facetType - facet kind we intend to instantiate
        Returns:
        factory, if found for the given facet type.