diff options
| author | Pierre Guilet | 2018-07-19 13:47:44 +0000 |
|---|---|---|
| committer | Pierre Guilet | 2018-07-19 13:47:44 +0000 |
| commit | bac023110798111100de5f1bc1233a87f99ce285 (patch) | |
| tree | 11433323014730095b2af745e39915ff4c14a1c6 | |
| parent | fba90a73685c8ddb91c3b9a39da8e1f44ca3e491 (diff) | |
| download | org.eclipse.sirius-bac023110798111100de5f1bc1233a87f99ce285.tar.gz org.eclipse.sirius-bac023110798111100de5f1bc1233a87f99ce285.tar.xz org.eclipse.sirius-bac023110798111100de5f1bc1233a87f99ce285.zip | |
[525466] Fix aird file not created when converting to modeling project
Fix random aird file creation failure when converting to modeling
project.
Bug: 525466
Change-Id: Idcd1e279e7c7fc0d99eddd2b423595e3d0beea6a
Signed-off-by: Pierre Guilet <pierre.guilet@obeo.fr>
| -rw-r--r-- | plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/views/common/modelingproject/manager/ModelingProjectManagerImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/views/common/modelingproject/manager/ModelingProjectManagerImpl.java b/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/views/common/modelingproject/manager/ModelingProjectManagerImpl.java index 661b9816ac..cb5ff1edae 100644 --- a/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/views/common/modelingproject/manager/ModelingProjectManagerImpl.java +++ b/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/internal/views/common/modelingproject/manager/ModelingProjectManagerImpl.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2011, 2017 THALES GLOBAL SERVICES and others. + * Copyright (c) 2011, 2018 THALES GLOBAL SERVICES and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -356,6 +356,9 @@ public class ModelingProjectManagerImpl implements ModelingProjectManager { Option<ModelingProject> optionalModelingProject = ModelingProject.asModelingProject(project); if (optionalModelingProject.some()) { try { + // See 525466. we set the validity to true in case of DefaultModelingProjectResourceListener that + // has set it to false or the representation file will not be created if it does not exist yet. + optionalModelingProject.get().setValid(true); Option<URI> mainRepresentationsFileURI = optionalModelingProject.get().getMainRepresentationsFileURI(new SubProgressMonitor(monitor, 1), false, true); if (mainRepresentationsFileURI.some()) { // Open the session. |
