Class EASyUtils

java.lang.Object
net.ssehub.easy.producer.eclipse.EASyUtils

public class EASyUtils extends Object
Some utility methods.
Author:
Holger Eichelberger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    static final void
    addImport(net.ssehub.easy.producer.core.mgmt.PLPInfo plp, net.ssehub.easy.producer.core.mgmt.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 org.eclipse.core.resources.IFile
    findEasyConfig(org.eclipse.core.resources.IProject project)
    Tries to find the EASy-Producer configuration from the IVML/VIL path configurations.
    static void
    initialize(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.mgmt.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
  • Field Details

    • LOGGER

      private static final net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger LOGGER
  • Constructor Details

    • EASyUtils

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

    • findEasyConfig

      public static org.eclipse.core.resources.IFile findEasyConfig(org.eclipse.core.resources.IProject project)
      Tries to find the EASy-Producer configuration from the IVML/VIL path configurations.
      Parameters:
      project - the project to look into
      Returns:
      the EASy config file
    • loadProject

      public static void loadProject(org.eclipse.core.resources.IProject project) throws net.ssehub.easy.producer.core.persistence.PersistenceException
      Loads a project and registers it if necessary.
      Parameters:
      project - the project to load
      Throws:
      net.ssehub.easy.producer.core.persistence.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, net.ssehub.easy.producer.core.mgmt.PLPInfo plp) throws IOException
      Initializes the given project (considers Contributions).
      Parameters:
      project - the parent Eclipse project
      plp - the product line project
      Throws:
      IOException - in case of any I/O exception during initialization
    • addImport

      public static final void addImport(net.ssehub.easy.producer.core.mgmt.PLPInfo plp, net.ssehub.easy.producer.core.mgmt.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