public ImportProgressRecordDtoImpl(org.eclipse.che.api.project.shared.dto.ImportProgressRecordDto origin) { this.projectName = origin.getProjectName(); this.line = origin.getLine(); this.num = origin.getNum(); }
@Override public void subscribe(String projectName, StatusNotification notification) { this.projectName = projectName; this.singletonNotification = notification; String title = locale.importingProject(projectName); importProgressJsonRpcHandler.setConsumer( progressRecord -> { String content = nullToEmpty(progressRecord.getLine()); singletonNotification.setTitle(title); singletonNotification.setContent(content); }); }