|
Lines 49-55
Link Here
|
| 49 |
|
49 |
|
| 50 |
public EObjectObservableList(Realm realm, EObject eObject, EStructuralFeature eStructuralFeature) |
50 |
public EObjectObservableList(Realm realm, EObject eObject, EStructuralFeature eStructuralFeature) |
| 51 |
{ |
51 |
{ |
| 52 |
super(realm, (EList<?>)eObject.eGet(eStructuralFeature), eStructuralFeature); |
52 |
super(realm, (EList)eObject.eGet(eStructuralFeature), eStructuralFeature); |
| 53 |
this.eObject = eObject; |
53 |
this.eObject = eObject; |
| 54 |
this.eStructuralFeature = eStructuralFeature; |
54 |
this.eStructuralFeature = eStructuralFeature; |
| 55 |
} |
55 |
} |
|
Lines 152-158
Link Here
|
| 152 |
}; |
152 |
}; |
| 153 |
eObject.eAdapters().add(listener); |
153 |
eObject.eAdapters().add(listener); |
| 154 |
} |
154 |
} |
| 155 |
|
155 |
|
| 156 |
@Override |
156 |
@Override |
| 157 |
protected void lastListenerRemoved() |
157 |
protected void lastListenerRemoved() |
| 158 |
{ |
158 |
{ |
|
Lines 261-267
Link Here
|
| 261 |
public Object move(int newPosition, int oldPosition) |
261 |
public Object move(int newPosition, int oldPosition) |
| 262 |
{ |
262 |
{ |
| 263 |
checkRealm(); |
263 |
checkRealm(); |
| 264 |
return ((EList<?>)wrappedList).move(newPosition, oldPosition); |
264 |
return ((EList)wrappedList).move(newPosition, oldPosition); |
| 265 |
} |
265 |
} |
| 266 |
|
266 |
|
| 267 |
public void move(int newPosition, Object object) |
267 |
public void move(int newPosition, Object object) |
|
Lines 272-278
Link Here
|
| 272 |
@Override |
272 |
@Override |
| 273 |
public String toString() |
273 |
public String toString() |
| 274 |
{ |
274 |
{ |
| 275 |
StringBuilder result = new StringBuilder(getClass().getName()); |
275 |
StringBuffer result = new StringBuffer(getClass().getName()); |
| 276 |
result.append('@'); |
276 |
result.append('@'); |
| 277 |
result.append(Integer.toHexString(hashCode())); |
277 |
result.append(Integer.toHexString(hashCode())); |
| 278 |
|
278 |
|