Class Contributions


  • public abstract class Contributions
    extends java.lang.Object
    For contributions to the EASY core. (preliminary, to be aligned with self-bootstrapping capabilities in future) Please do not change the name or the location of this class as it is populated via OSGI-DS.
    Author:
    Holger Eichelberger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List<Contributions> REGISTERED
      Stores the registered UI contributions.
    • Constructor Summary

      Constructors 
      Constructor Description
      Contributions()  
    • Field Detail

      • REGISTERED

        private static final java.util.List<Contributions> REGISTERED
        Stores the registered UI contributions.
    • Constructor Detail

      • Contributions

        public Contributions()
    • Method Detail

      • register

        public static void register​(Contributions contribution)
        Registers a particular contribution.
        Parameters:
        contribution - the new contribution
      • unregister

        public static void unregister​(Contributions contribution)
        Unregisters a particular contribution.
        Parameters:
        contribution - the contribution to be unregisted
      • updateDependencies

        public static void updateDependencies​(java.io.File project,
                                              java.lang.String... classpath)
                                       throws java.io.IOException
        Updates product line dependencies.
        Parameters:
        project - the folder representing a project
        classpath - the classpath of the project (needed in case of importing product line models, may be null or empty)
        Throws:
        java.io.IOException - in case that extracting dependent models failed
      • updateDependenciesImpl

        public abstract void updateDependenciesImpl​(java.io.File project,
                                                    java.lang.String[] classpath)
                                             throws java.io.IOException
        Updates product line dependencies.
        Parameters:
        project - the folder representing a project
        classpath - the classpath of the project (needed in case of importing product line models, may be null or empty)
        Throws:
        java.io.IOException - in case that extracting dependent models failed