Source:
<code>private void setupMixin(Project project) { List<String> mixins = appContext.getCurrentProject().getRootProject().getMixins(); if (!mixins.contains(OPENSHIFT_PROJECT_TYPE_ID)) { mixins.add(OPENSHIFT_PROJECT_TYPE_ID); } Map<String, List<String>> attributes = appContext.getCurrentProject().getRootProject().getAttributes(); attributes.put(OPENSHIFT_APPLICATION_VARIABLE_NAME, newArrayList(osAppName)); attributes.put(OPENSHIFT_NAMESPACE_VARIABLE_NAME, newArrayList(project.getMetadata().getName())); final ProjectConfigDto updateProject = newDto(ProjectConfigDto.class) .withMixins(mixins) .withType(appContext.getCurrentProject().getRootProject().getType()) .withAttributes(attributes); newPromise(new RequestCall<ProjectDescriptor>() { @Override public void makeCall(AsyncCallback<ProjectDescriptor> callback) { <START> projectService.updateProject(appContext.getCurrentProject().getRootProject().getPath(), <END> updateProject, newCallback(callback, dtoUnmarshaller.newUnmarshaller(ProjectDescriptor.class))); } }).then(new Operation<ProjectDescriptor>() { @Override public void apply(ProjectDescriptor project) throws OperationException { eventBus.fireEvent(new ProjectUpdatedEvent(appContext.getCurrentProject().getRootProject().getPath(), project)); notificationManager.showInfo(locale.linkProjectWithExistingSuccess(appContext.getCurrentProject().getRootProject().getName(), osAppName)); } }).catchError(new Operation<PromiseError>() { @Override public void apply(PromiseError arg) throws OperationException { final ServiceError serviceError = dtoFactory.createDtoFromJson(arg.getMessage(), ServiceError.class); notificationManager.showError(serviceError.getMessage()); } }); }</code><technical_language>deprecated update project <LINK_0> for</technical_language>

Target:
private void setupMixin(Project project) { final ProjectDescriptor projectDescriptor = appContext.getCurrentProject().getRootProject(); List<String> mixins = projectDescriptor.getMixins(); if (!mixins.contains(OPENSHIFT_PROJECT_TYPE_ID)) { mixins.add(OPENSHIFT_PROJECT_TYPE_ID); } Map<String, List<String>> attributes = projectDescriptor.getAttributes(); attributes.put(OPENSHIFT_APPLICATION_VARIABLE_NAME, newArrayList(osAppName)); attributes.put(OPENSHIFT_NAMESPACE_VARIABLE_NAME, newArrayList(project.getMetadata().getName())); newPromise(new RequestCall<ProjectDescriptor>() { @Override public void makeCall(AsyncCallback<ProjectDescriptor> callback) { projectService.updateProject(projectDescriptor.getPath(), projectDescriptor, newCallback(callback, dtoUnmarshaller.newUnmarshaller(ProjectDescriptor.class))); } }).then(new Operation<ProjectDescriptor>() { @Override public void apply(ProjectDescriptor project) throws OperationException { eventBus.fireEvent(new ProjectUpdatedEvent(appContext.getCurrentProject().getRootProject().getPath(), project)); notificationManager.showInfo( locale.linkProjectWithExistingSuccess(appContext.getCurrentProject().getRootProject().getName(), osAppName)); } }).catchError(new Operation<PromiseError>() { @Override public void apply(PromiseError arg) throws OperationException { final ServiceError serviceError = dtoFactory.createDtoFromJson(arg.getMessage(), ServiceError.class); notificationManager.showError(serviceError.getMessage()); } }); }