Scope provider and content assist out of sync? [message #654705] |
Wed, 16 February 2011 13:39  |
Eclipse User |
|
|
|
Hi all,
I am quite happy with my self-implemented scope provider. Basically it does what I want him to do. Only problem is that content assist does not care about him. SO in eclipse I still get the proposals from the AbstractDeclarativeScopeProvider, but they are not valid any more. If I write down what I implemented as a scope it is valid in the editor.
I am quite sure that I saw content assist also working in sync with the scope provider some hours before. So my feeling is that eclipse somehow caches old content assists??
From my xtext ui project I am clicking on the generated plugin.xml to start another instance of eclipse with the editor working, with a clean workspace.
Any ideas welcome...
Michael
|
|
|
|
|
Re: Scope provider and content assist out of sync? [message #654791 is a reply to message #654717] |
Thu, 17 February 2011 02:55  |
Eclipse User |
|
|
|
Hi,
the scope provider is (very probably be) called several times because content assist does not assme a complete model but considers all possible contiuations. Again, when content assist does not work, it is very probable that the context type is different from what you expect.
You can test this, by having your own implementation work on EObject , use your own construction only when the type is correct and otherwise delegate to the default implementation. Then upon invoking content assist, you can see whether the context type is as expected.
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.03168 seconds