Class EASyUtils


  • public class EASyUtils
    extends java.lang.Object
    Some utility methods.
    Author:
    Holger Eichelberger
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EASyUtils()
      Prevents this class from being instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addImport​(PLPInfo plp, PLPInfo predecessor, boolean considerVIL)
      Adds an import to the Project and to the Script of a given PLPInfo to the Project and Script of a predecessor project.
      static void determineConfigurationPaths​(org.eclipse.core.resources.IProject project)
      Determines the configuration path of the project (considers Contributions).
      static void initialize​(org.eclipse.core.resources.IProject project, PLPInfo plp)
      Initializes the given project (considers Contributions).
      static void loadProject​(org.eclipse.core.resources.IProject project)
      Loads a project and registers it if necessary.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EASyUtils

        private EASyUtils()
        Prevents this class from being instantiated.
    • Method Detail

      • loadProject

        public static void loadProject​(org.eclipse.core.resources.IProject project)
                                throws PersistenceException
        Loads a project and registers it if necessary.
        Parameters:
        project - the project to load
        Throws:
        PersistenceException - in case of errors loading the project
      • determineConfigurationPaths

        public static void determineConfigurationPaths​(org.eclipse.core.resources.IProject project)
        Determines the configuration path of the project (considers Contributions).
        Parameters:
        project - the project to determine the configuration path for
      • initialize

        public static void initialize​(org.eclipse.core.resources.IProject project,
                                      PLPInfo plp)
                               throws java.io.IOException
        Initializes the given project (considers Contributions).
        Parameters:
        project - the parent Eclipse project
        plp - the product line project
        Throws:
        java.io.IOException - in case of any I/O exception during initialization
      • addImport

        public static final void addImport​(PLPInfo plp,
                                           PLPInfo predecessor,
                                           boolean considerVIL)
        Adds an import to the Project and to the Script of a given PLPInfo to the Project and Script of a predecessor project.
        Parameters:
        plp - the product line project to add the import to
        predecessor - A predecessor project of plp, where the Project and the Script should be included.
        considerVIL - true if the parent project has also a build script which should be considered, false otherwise