1 | protected void setTarget(Resource target)↵ | | 1 | protected void unsetTarget(Resource target)↵
|
2 | {↵ | | 2 | {↵
|
3 | basicSetTarget(target);↵ | | 3 | basicUnsetTarget(target);↵
|
4 | List<EObject> contents = target.getContents();↵ | | 4 | List<EObject> contents = target.getContents();↵
|
5 | for (int i = 0, size = contents.size(); i < size; ++i)↵ | | 5 | for (int i = 0, size = contents.size(); i < size; ++i)↵
|
6 | {↵ | | 6 | {↵
|
7 | Notifier notifier = contents.get(i);↵ | | 7 | Notifier notifier = contents.get(i);↵
|
8 | addAdapter(notifier);↵ | | 8 | removeAdapter(notifier);↵
|
9 | }↵ | | 9 | }↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * Handles installation of the adapter on a ResourceSet↵ | | 12 | * Handles undoing the installation of the adapter from a ResourceSet↵
|
13 | * by adding the adapter to each of the directly contained objects.↵ | | 13 | * by removing the adapter from each of the directly contained objects.↵
|
14 | */↵ | | 14 | */↵
|
15 | protected void setTarget(ResourceSet target)↵ | | 15 | protected void unsetTarget(ResourceSet target)↵
|
16 | {↵ | | 16 | {↵
|
17 | basicSetTarget(target);↵ | | 17 | basicUnsetTarget(target);↵
|
18 | List<Resource> resources = target.getResources();↵ | | 18 | List<Resource> resources = target.getResources();↵
|
19 | for (int i = 0; i < resources.size(); ++i)↵ | | 19 | for (int i = 0; i < resources.size(); ++i)↵
|
20 | {↵ | | 20 | {↵
|
21 | Notifier notifier = resources.get(i);↵ | | 21 | Notifier notifier = resources.get(i);↵
|
22 | addAdapter(notifier); | | 22 | removeAdapter(notifier);
|