Transforms current folder into
Project.
Calling current method doesn't create configuration immediately. To complete configuration
creating method
ProjectRequest#send() should be called. This is immutable operation
which produce new
Project.
Example of usage:
Folder folder = ... ;
ProjectConfig configuration = ... ;
Promise projectPromise = folder.toProject().withBody(configuration).send();
projectPromise.then(new Operation() {
public void apply(Project newProject) throws OperationException {
//do something with new project
}
});
Fires
ResourceChangedEvent with the following
ResourceDelta: Delta kind:
ResourceDelta#UPDATED. Updated resource (instance of
Project) provided by
ResourceDelta#getResource()