Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Guilet2018-07-19 13:47:44 +0000
committerPierre Guilet2018-07-19 13:47:44 +0000
commitbac023110798111100de5f1bc1233a87f99ce285 (patch)
tree11433323014730095b2af745e39915ff4c14a1c6
parentfba90a73685c8ddb91c3b9a39da8e1f44ca3e491 (diff)
downloadorg.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.java5
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.

Back to the top