Skip to content

Commit

Permalink
Some of the objects passed to the EListAdapter API aren't adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Degueule committed Nov 30, 2015
1 parent c45dc9b commit 4fb3b19
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -129,7 +129,10 @@ class EListAdapter<E extends EObject, F extends EObject> implements GenericAdapt
}

def F decapsulate(Object e) {
return (e as GenericAdapter<F>).adaptee
if (e instanceof GenericAdapter<?>)
return (e as GenericAdapter<F>).adaptee
else
return e as F
}

override move(int newPosition, E object) {
Expand Down

0 comments on commit 4fb3b19

Please sign in to comment.