projServer_.getNewProjectContext(
new SimpleRequestCallback<NewProjectContext>() {
@Override
public void onResponseReceived(NewProjectContext context)
{
NewProjectWizard wiz = new NewProjectWizard(
session_.getSessionInfo(),
pUIPrefs_.get(),
new NewProjectInput(
FileSystemItem.createDir(
pUIPrefs_.get().defaultProjectLocation().getValue()),
context
),
new ProgressOperationWithInput<NewProjectResult>() {
@Override
public void execute(NewProjectResult newProject,
ProgressIndicator indicator)
{
indicator.onCompleted();
createNewProject(newProject, saveChanges);
}
});
wiz.showModal();
}
});
}
});