public class CreateProjectCommand extends CommandWrapper
Below is a snippet illustrating how to use this command (see CommandRunner
for a full snippet):
FolderRef project = FolderRef.qualifiedName("/MyNewProject"); CreateProjectCommand command = new CreateProjectCommand(project); myCommandRunner.run(command);
This class is not intended to be subclassed by clients but may be instantiated.
CommandRunner
,
CreateFolderCommand
Constructor and Description |
---|
CreateProjectCommand(FolderRef folder)
Instantiates a command to create a new DOORS project.
|
public CreateProjectCommand(FolderRef folder)
folder
- contains information on the project to create.
The FolderRef
instance must be created with either FolderRef.qualifiedName()
or
FolderRef.name()
.
The creation of the project will fail if the instance was created with either FolderRef.url()
or
FolderRef.uniqueID()
,
as those methods are meant to reference existing project
and do not contain the necessary information to create one.FolderRef.qualifiedName(String)
,
FolderRef.name(FolderRef, String)