Package com._1c.g5.v8.dt.team
Interface IDevelopmentProcessManager
- All Known Implementing Classes:
DevelopmentProcessManager
public interface IDevelopmentProcessManager
Development process manager allows clients to start development process or get existing development processes.
Example of usage:
// 1. get project somehow to create development process for
IProject project = getProject();
// 2. configure issue type and deployment type
IIssueType issueType = issueTypeRepository.getDefault();
IDeploymentType deploymentType = deploymentTypeProvider.getAll().iterator().next();
// 3. configure development options
DevelopmentOptions options = new DevelopmentOptions(deploymentType);
// 4. create development process
developmentProcessManager.create("my-feature", project, issueType, options, monitor);
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds development process manager listener.create(String name, org.eclipse.core.resources.IProject project, IIssueType issueType, IDeploymentType deploymentType, DevelopmentOptions options, org.eclipse.core.runtime.IProgressMonitor monitor) Creates the new development process with the provided name and options.voiddelete(IIssueDescriptor issue, org.eclipse.core.resources.IProject project, DevelopmentOptions options, org.eclipse.core.runtime.IProgressMonitor monitor) Deletes the development environment for the provided issue descriptor.Returns the development issue descriptor with the provided identifier.getAll(org.eclipse.core.resources.IProject project) Returns a collection of all current development issue descriptors.voidRemoves development process manager listener.
-
Method Details
-
get
Optional<IIssueDescriptor> get(String id, org.eclipse.core.resources.IProject project) throws DevelopmentProcessException Returns the development issue descriptor with the provided identifier.- Parameters:
id- the identifier of the development issue, cannot benullproject- the workspace project, cannot benull- Returns:
- the development issue descriptor with the provided identifier
- Throws:
DevelopmentProcessException- if development issue get failed
-
getAll
Collection<IIssueDescriptor> getAll(org.eclipse.core.resources.IProject project) throws DevelopmentProcessException Returns a collection of all current development issue descriptors.- Parameters:
project- the workspace project, cannot benull- Returns:
- a collection of all current development issue descriptors, never
null - Throws:
DevelopmentProcessException- if development issue get failed
-
create
IIssueDescriptor create(String name, org.eclipse.core.resources.IProject project, IIssueType issueType, IDeploymentType deploymentType, DevelopmentOptions options, org.eclipse.core.runtime.IProgressMonitor monitor) throws DevelopmentProcessException Creates the new development process with the provided name and options. Development VCS branch and development environment may be created and configured during process creation based on the provided development options.This method is long-running, progress and cancellation are provided by the progress monitor.
- Parameters:
name- the name of the issue to create, cannot benullproject- the project to create issure for, cannot benullissueType- the issue type to create, cannot benulldeploymentType- the development deployment type, nevernulloptions- the development options to create development process with, cannot benullmonitor- the progress monitor to report progress to ornullif not needed- Returns:
- a description of the created development issue, never
null - Throws:
DevelopmentProcessException- if development process creation failed- See Also:
-
delete
void delete(IIssueDescriptor issue, org.eclipse.core.resources.IProject project, DevelopmentOptions options, org.eclipse.core.runtime.IProgressMonitor monitor) throws DevelopmentProcessException Deletes the development environment for the provided issue descriptor.- Parameters:
issue- the issue to delete development environment for, cannot benullproject- the workspace project, cannot benulloptions- the development options to delete development process with, cannot benullmonitor- the progress monitor to report progress to ornullif not needed- Throws:
DevelopmentProcessException- if development process delete failed
-
addListener
Adds development process manager listener. Listener will receive issue descriptors changed events.- Parameters:
listener- - listener to add, cannot benull
-
removeListener
Removes development process manager listener. Listener will not receive issue descriptors changed events anymore.- Parameters:
listener- - listener to remove, cannot benull
-