Class EASyProjectCreatorFactory


  • public class EASyProjectCreatorFactory
    extends java.lang.Object
    Creates new EASy projects in Eclipse.
    Author:
    El-Sharkawy
    • Constructor Detail

      • EASyProjectCreatorFactory

        public EASyProjectCreatorFactory()
    • Method Detail

      • isValidProjectName

        public static ValidProjectNameType isValidProjectName​(java.lang.String name)
        Checks whether a project with the given name could be created.
        Parameters:
        name - The name of the new project.
        Returns:
        A ValidProjectNameType
      • isValidProjectName

        public static ValidProjectNameType isValidProjectName​(java.lang.String name,
                                                              boolean lazy)
        Checks whether a project with the given name could be created.
        Parameters:
        name - The name of the new project.
        lazy - if true, create only required parts, else assume that project does not exist before.
        Returns:
        A ValidProjectNameType
      • createNewProject

        public static ProductLineProject createNewProject​(java.lang.String name,
                                                          java.lang.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. If null a new (not derived) project without a predecessor will be created.
        lazy - if true, 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 will be applied in the ordering of the array.
        Returns:
        The newly created ProductLineProject with 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.