Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2015-01-23 10:18:06 -0500
committerCamille Letavernier2015-01-23 10:18:06 -0500
commitf8a778bc39a076cc91675dd30a6c4309c5d6dd74 (patch)
treec05c32e5c57ad021cc7627ae0dc5ffde68423bc7
parentff509d11c7fa896a53c88136a9f945c4be9dfa46 (diff)
downloadorg.eclipse.papyrus-f8a778bc39a076cc91675dd30a6c4309c5d6dd74.tar.gz
org.eclipse.papyrus-f8a778bc39a076cc91675dd30a6c4309c5d6dd74.tar.xz
org.eclipse.papyrus-f8a778bc39a076cc91675dd30a6c4309c5d6dd74.zip
457341: [Model Import] Identify and fix performances bottlenecks
https://bugs.eclipse.org/bugs/show_bug.cgi?id=457341 - Don't load dependencies during Cross-Resource dependencies Analysis & Repair, unless absolutely necessary
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java2
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf/src/org/eclipse/papyrus/infra/emf/resource/DependencyManagementHelper.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java
index a6638c6e7a5..9b1d4763132 100644
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java
+++ b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java
@@ -157,7 +157,7 @@ public class DependencyAnalysisHelper {
continue;
}
- Object value = next.eGet(reference);
+ Object value = next.eGet(reference, false);
if (value instanceof EObject) {
handleURIMapping((EObject) value, resourceSet);
} else if (value instanceof Collection<?>) {
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf/src/org/eclipse/papyrus/infra/emf/resource/DependencyManagementHelper.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf/src/org/eclipse/papyrus/infra/emf/resource/DependencyManagementHelper.java
index 563a779d4eb..37fcac95c9d 100644
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf/src/org/eclipse/papyrus/infra/emf/resource/DependencyManagementHelper.java
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf/src/org/eclipse/papyrus/infra/emf/resource/DependencyManagementHelper.java
@@ -144,7 +144,7 @@ public class DependencyManagementHelper {
continue;
}
- Object value = eObject.eGet(reference);
+ Object value = eObject.eGet(reference, false);
if (value instanceof EObject) {
EObject eObjectToReplace = (EObject) value;
@@ -398,7 +398,7 @@ public class DependencyManagementHelper {
continue;
}
- Object value = eObject.eGet(reference);
+ Object value = eObject.eGet(reference, false);
if (value instanceof EObject) {
EObject eObjectToReplace = (EObject) value;

Back to the top