Class DerivedProjectCreator
java.lang.Object
net.ssehub.easy.producer.eclipse.persistency.project_creation.AbstractProjectCreator
net.ssehub.easy.producer.eclipse.persistency.project_creation.DerivedProjectCreator
Creates a derived EASy project, which will have one predecessor.
- Author:
- El-Sharkawy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ProductLineProjectprivate Stringprivate org.eclipse.core.resources.IProject -
Constructor Summary
ConstructorsConstructorDescriptionDerivedProjectCreator(String projectName, String predecessorID, boolean lazy, IEASyProjectConfigurator[] configurators) Creates a new derivedProductLineProject. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureProject(org.eclipse.core.resources.IProject project, IEASyProjectConfigurator configurator) Configures the newly created Eclipse project.(package private) ProductLineProjectCreates the derivedProductLineProject.protected voidAdds 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 Details
-
predecessorID
-
parentPLP
-
predecessorPoject
private org.eclipse.core.resources.IProject predecessorPoject
-
-
Constructor Details
-
DerivedProjectCreator
DerivedProjectCreator(String projectName, 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 benull.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, maybenull. The configurators whill be applied in the ordering of the array.
-
-
Method Details
-
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.
-