Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/ResourceAdapter.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/ResourceAdapter.java b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/ResourceAdapter.java
index de8f48b5dbd..454dc5ea26f 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/ResourceAdapter.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/ResourceAdapter.java
@@ -53,6 +53,7 @@ public abstract class ResourceAdapter extends AdapterImpl {
// Discover existing resources. Iterate the current set; any new additions
// will be discovered automatically
for (Resource next : ImmutableList.copyOf(((ResourceSet) newTarget).getResources())) {
+ addAdapter(next);
handleResourceAdded(next);
if (next.isLoaded()) {
handleResourceLoaded(next);
@@ -183,8 +184,8 @@ public abstract class ResourceAdapter extends AdapterImpl {
Object newValue = msg.getNewValue();
if (newValue instanceof Iterable<?>) {
for (Object next : (Iterable<?>) newValue) {
- handleRootAdded(resource, (EObject) next);
- }
+ handleRootAdded(resource, (EObject) next);
+ }
}
break;
}
@@ -199,8 +200,8 @@ public abstract class ResourceAdapter extends AdapterImpl {
Object oldValue = msg.getOldValue();
if (oldValue instanceof Iterable<?>) {
for (Object next : (Iterable<?>) oldValue) {
- handleRootRemoved(resource, (EObject) next);
- }
+ handleRootRemoved(resource, (EObject) next);
+ }
}
break;
}
@@ -213,9 +214,9 @@ public abstract class ResourceAdapter extends AdapterImpl {
}
break;
}
+ }
}
}
- }
protected void handleResourceAdded(Resource resource) {
// Pass

Back to the top