Community
Participate
Working Groups
I have the following code EObject eobject = ...; eobject.eAdapters().add(new |); When I hit the completion where the '|' is located, the only choice I get proposed with is the type of the argument. In this case I get proposed with an interface called Adapter (which is correct). However this is not super helpful because I know there are some subtypes that are more interesting to me and I can't see them. In this particular case, the completion should also show me the set of subtypes of Adapter like EContentAdapter, etc.
Pascal, there has to be something about your set-up; let's find out. What's the signature of the eAdapters() like? I have something like this and I get all relevant proposals including the sub types of Adapter. class EObject<T> { public List<T> eAdapters() { return new ArrayList<>(); } } Do you have a lambda somewhere in the code? Can you try pulling this into a small class?
No lambdas, nothing too fancy. Just the code snippet I showed you. Note that EObject is coming from EMF.core and Adapter from EMF.common. I've been able to reproduce this again.
(In reply to Pascal Rapicault from comment #2) > No lambdas, nothing too fancy. Just the code snippet I showed you. > Note that EObject is coming from EMF.core and Adapter from EMF.common. > > I've been able to reproduce this again. Will you be able to share that code where this happens? TIA!