Class DerivedProjectCreator
- java.lang.Object
-
- net.ssehub.easy.producer.eclipse.persistency.project_creation.AbstractProjectCreator
-
- net.ssehub.easy.producer.eclipse.persistency.project_creation.DerivedProjectCreator
-
class DerivedProjectCreator extends AbstractProjectCreator
Creates a derived EASy project, which will have one predecessor.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private ProductLineProjectparentPLPprivate java.lang.StringpredecessorIDprivate org.eclipse.core.resources.IProjectpredecessorPoject
-
Constructor Summary
Constructors Constructor Description DerivedProjectCreator(java.lang.String projectName, java.lang.String predecessorID, boolean lazy, IEASyProjectConfigurator[] configurators)Creates a new derivedProductLineProject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureProject(org.eclipse.core.resources.IProject project, IEASyProjectConfigurator configurator)Configures the newly created Eclipse project.(package private) ProductLineProjectcreateEASyProject()Creates the derivedProductLineProject.protected voidcreateScriptImports()Adds call to build script of predecessor to own build script.-
Methods inherited from class net.ssehub.easy.producer.eclipse.persistency.project_creation.AbstractProjectCreator
createProject, getCreatedProject, isLazyCreation, setPersistenceProperties
-
-
-
-
Field Detail
-
predecessorID
private java.lang.String predecessorID
-
parentPLP
private ProductLineProject parentPLP
-
predecessorPoject
private org.eclipse.core.resources.IProject predecessorPoject
-
-
Constructor Detail
-
DerivedProjectCreator
DerivedProjectCreator(java.lang.String projectName, java.lang.String predecessorID, boolean lazy, IEASyProjectConfigurator[] configurators)Creates a new derivedProductLineProject.- Parameters:
projectName- The name of the new project (should already be checked, whether the name is valid).predecessorID- The projectID of a predecessor for the new project, must not be null.lazy- iftrue, create only required parts, else assume that project does not exist before.configurators- Optional list of configurators to configure the newly created project, maybe null. The configurators whill be applied in the ordering of the array.
-
-
Method Detail
-
createEASyProject
ProductLineProject createEASyProject()
Creates the derivedProductLineProject.- Specified by:
createEASyProjectin classAbstractProjectCreator- Returns:
- The newly created
ProductLineProject.
-
createScriptImports
protected void createScriptImports()
Adds call to build script of predecessor to own build script.
-
configureProject
protected void configureProject(org.eclipse.core.resources.IProject project, IEASyProjectConfigurator configurator)Description copied from class:AbstractProjectCreatorConfigures the newly created Eclipse project.- Specified by:
configureProjectin classAbstractProjectCreator- Parameters:
project- The newly created EASy (Eclipse) project.configurator- The configurator to use for configuring the project.
-
-