Package net.ssehub.easy.producer.eclipse
Class EASyUtils
java.lang.Object
net.ssehub.easy.producer.eclipse.EASyUtils
Some utility methods.
- Author:
- Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final net.ssehub.easy.basics.logger.EASyLoggerFactory.EASyLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidaddImport(net.ssehub.easy.producer.core.mgmt.PLPInfo plp, net.ssehub.easy.producer.core.mgmt.PLPInfo predecessor, boolean considerVIL) Adds an import to theProjectand to theScriptof a givenPLPInfoto theProjectandScriptof a predecessor project.static voiddetermineConfigurationPaths(org.eclipse.core.resources.IProject project) Determines the configuration path of the project (considersContributions).static org.eclipse.core.resources.IFilefindEasyConfig(org.eclipse.core.resources.IProject project) Tries to find the EASy-Producer configuration from the IVML/VIL path configurations.static voidinitialize(org.eclipse.core.resources.IProject project, net.ssehub.easy.producer.core.mgmt.PLPInfo plp) Initializes the given project (considersContributions).static voidloadProject(org.eclipse.core.resources.IProject project) Loads a project and registers it if necessary.
-
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 (considersContributions).- 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 (considersContributions).- Parameters:
project- the parent Eclipse projectplp- 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 theProjectand to theScriptof a givenPLPInfoto theProjectandScriptof a predecessor project.- Parameters:
plp- the product line project to add the import topredecessor- A predecessor project of plp, where theProjectand theScriptshould be included.considerVIL-trueif the parent project has also a build script which should be considered,falseotherwise
-