Class EASyProjectCreatorFactory
java.lang.Object
net.ssehub.easy.producer.eclipse.persistency.project_creation.EASyProjectCreatorFactory
Creates new EASy projects in Eclipse.
- Author:
- El-Sharkawy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProductLineProjectcreateNewProject(String name, String predecessorID, boolean lazy, IEASyProjectConfigurator... configurators) Creates a new EASy project.static ValidProjectNameTypeisValidProjectName(String name) Checks whether a project with the given name could be created.static ValidProjectNameTypeisValidProjectName(String name, boolean lazy) Checks whether a project with the given name could be created.
-
Constructor Details
-
EASyProjectCreatorFactory
public EASyProjectCreatorFactory()
-
-
Method Details
-
isValidProjectName
Checks whether a project with the given name could be created.- Parameters:
name- The name of the new project.- Returns:
- A
ValidProjectNameType
-
isValidProjectName
Checks whether a project with the given name could be created.- Parameters:
name- The name of the new project.lazy- iftrue, create only required parts, else assume that project does not exist before.- Returns:
- A
ValidProjectNameType
-
createNewProject
public static ProductLineProject createNewProject(String name, String predecessorID, boolean lazy, IEASyProjectConfigurator... configurators) throws ProjectCreationException Creates a new EASy project.- Parameters:
name- The name of the EASy project.predecessorID- Optional: The projectID of a predecessor for the new project. Ifnulla new (not derived) project without a predecessor will be created.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 will be applied in the ordering of the array.- Returns:
- The newly created
ProductLineProjectwith the specified project name, created inside the workspace. - Throws:
ProjectCreationException- If a name was used, which could not be used for creating a new EASy project.
-