Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xplugins/infra/emf/org.eclipse.papyrus.infra.ui.emf/src/org/eclipse/papyrus/infra/ui/emf/internal/facet/ArchitectureFrameworkCustomizationManagerUpdater.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf/src/org/eclipse/papyrus/infra/ui/emf/internal/facet/ArchitectureFrameworkCustomizationManagerUpdater.java b/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf/src/org/eclipse/papyrus/infra/ui/emf/internal/facet/ArchitectureFrameworkCustomizationManagerUpdater.java
index b007cd4d227..8df55149ce2 100755
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf/src/org/eclipse/papyrus/infra/ui/emf/internal/facet/ArchitectureFrameworkCustomizationManagerUpdater.java
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.ui.emf/src/org/eclipse/papyrus/infra/ui/emf/internal/facet/ArchitectureFrameworkCustomizationManagerUpdater.java
@@ -242,6 +242,7 @@ public class ArchitectureFrameworkCustomizationManagerUpdater extends WorskpaceC
// until here, we are working with the Customization loaded in the ModelSet of the model.
// we need to return the equivalent customization loaded in the ResourceSet of the CustomizationManager
+ final boolean isValid = merger.doValidationAndMerge();
final List<Customization> realResult = new ArrayList<>(merger.getMergedCustomizations().size());
for (final Customization tmp : merger.getMergedCustomizations()) {
final Customization equivalentCusto = CUSTOMIZATION_MAP.get(tmp.getName());
@@ -250,7 +251,7 @@ public class ArchitectureFrameworkCustomizationManagerUpdater extends WorskpaceC
}
}
- final boolean isValid = merger.doValidationAndMerge();
+
if (!isValid) {
StringBuilder builder = new StringBuilder();
builder.append(NLS.bind("{0} defined in the current {1} are invalid", CustomizationConfigurationPackage.eINSTANCE.getEMFFacetTreeViewerConfiguration().getName(), ArchitecturePackage.eINSTANCE.getArchitectureDescriptionLanguage().getName())); //$NON-NLS-1$

Back to the top