|
Lines 31-37
Link Here
|
| 31 |
|
31 |
|
| 32 |
public void setTarget(Notifier newTarget) |
32 |
public void setTarget(Notifier newTarget) |
| 33 |
{ |
33 |
{ |
|
|
34 |
|
| 34 |
instance = (InternalEObject)newTarget; |
35 |
instance = (InternalEObject)newTarget; |
|
|
36 |
|
| 35 |
} |
37 |
} |
| 36 |
|
38 |
|
| 37 |
public void unsetTarget(Notifier oldTarget) |
39 |
public void unsetTarget(Notifier oldTarget) |
|
Lines 56-61
Link Here
|
| 56 |
{ |
58 |
{ |
| 57 |
CDOStore store = view.getStore(); |
59 |
CDOStore store = view.getStore(); |
| 58 |
EStructuralFeature feature = (EStructuralFeature)msg.getFeature(); |
60 |
EStructuralFeature feature = (EStructuralFeature)msg.getFeature(); |
|
|
61 |
|
| 62 |
// TODO Martin: Seems that it is quite uncool to set a transient feature to the view. Leads to an error because the |
| 63 |
// the wrong featureID will be found in the revision. Discuss this with Eike. |
| 64 |
if (feature.isTransient()) |
| 65 |
{ |
| 66 |
return; |
| 67 |
} |
| 68 |
|
| 59 |
switch (msg.getEventType()) |
69 |
switch (msg.getEventType()) |
| 60 |
{ |
70 |
{ |
| 61 |
case Notification.SET: |
71 |
case Notification.SET: |
|
Lines 85-93
Link Here
|
| 85 |
// TODO Is that correct? |
95 |
// TODO Is that correct? |
| 86 |
store.add(instance, feature, pos++, object); |
96 |
store.add(instance, feature, pos++, object); |
| 87 |
} |
97 |
} |
| 88 |
} |
|
|
| 89 |
|
98 |
|
| 90 |
break; |
99 |
break; |
|
|
100 |
} |
| 91 |
|
101 |
|
| 92 |
case Notification.REMOVE: |
102 |
case Notification.REMOVE: |
| 93 |
store.remove(instance, feature, msg.getPosition()); |
103 |
store.remove(instance, feature, msg.getPosition()); |
|
Lines 102-115
Link Here
|
| 102 |
{ |
112 |
{ |
| 103 |
store.remove(instance, feature, pos); |
113 |
store.remove(instance, feature, pos); |
| 104 |
} |
114 |
} |
| 105 |
} |
|
|
| 106 |
|
115 |
|
| 107 |
break; |
116 |
break; |
| 108 |
} |
117 |
} |
| 109 |
} |
118 |
} |
| 110 |
|
|
|
| 111 |
@Override |
| 112 |
public void cdoInternalPostInvalidate() |
| 113 |
{ |
| 114 |
} |
119 |
} |
| 115 |
} |
120 |
} |