this.logService.trace(`doSave(${versionId}) - exit - because not dirty and/or versionId is different (this.isDirty: ${this.dirty}, this.versionId: ${this.versionId})`,this.resource);
this.logService.trace(`[text file model] doSave(${versionId}) - exit - because not dirty and/or versionId is different (this.isDirty: ${this.dirty}, this.versionId: ${this.versionId})`,this.resource.toString());
this.logService.trace(`doSave(${versionId}) - after write()`,this.resource);
this.logService.trace(`[text file model] doSave(${versionId}) - after write()`,this.resource.toString());
// Update dirty state unless model has changed meanwhile
if(versionId===this.versionId){
this.logService.trace(`doSave(${versionId}) - setting dirty to false because versionId did not change`,this.resource);
this.logService.trace(`[text file model] doSave(${versionId}) - setting dirty to false because versionId did not change`,this.resource.toString());
this.setDirty(false);
}else{
this.logService.trace(`doSave(${versionId}) - not setting dirty to false because versionId did change meanwhile`,this.resource);
this.logService.trace(`[text file model] doSave(${versionId}) - not setting dirty to false because versionId did change meanwhile`,this.resource.toString());