Autocompletion remains empty [message #558991] |
Wed, 15 September 2010 09:11 |
Steffen Schuette Messages: 26 Registered: August 2010 |
Junior Member |
|
|
Hi,
I have a problem with autocompletion. I have two scope provider
public IScope scope_Model_cimParameters(Model m, EReference ref) {
return Scopes.scopeFor(m.getCimClassRef().getAttributes());
}
and
public IScope scope_CIMModelData_cimAttribute(CIMModelData cimModelData, EReference ref) {
return Scopes.scopeFor(((Model)cimModelData.eContainer()).getCimCla ssRef().getAttributes());
}
Both return the same list of elements for my case (I have checked that in debug mode) but the autocompletion list for the second one remains empty in the editor. Is there any other factor that has to be considered for auto completion and if so, where can I go to debug it.
When I enter the referenced element manually it is a valid reference.
Any help is (of course) very much appreciated.
Regards
feffe
[Updated on: Wed, 15 September 2010 09:14] Report message to a moderator
|
|
|
|
|
Re: Autocompletion remains empty [message #559006 is a reply to message #559001] |
Wed, 15 September 2010 10:08 |
|
Hi,
depending on the definition of CIMModelData which you did not post the problem might be that the CIMModelData is not existing yet - so there should be an additional method:
public IScope scope_CIMModelData_cimAttribute(Model m, EReference ref) {
return Scopes.scopeFor(m.getCimClassRef().getAttributes());
}
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03432 seconds