Class EASyProjectCreatorFactory

java.lang.Object
net.ssehub.easy.producer.eclipse.persistency.project_creation.EASyProjectCreatorFactory

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

    • EASyProjectCreatorFactory

      public EASyProjectCreatorFactory()
  • Method Details

    • isValidProjectName

      public static ValidProjectNameType isValidProjectName(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(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(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. 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.