[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.dltk] Re: unable to find method declarations
|
I have found out a lot more information;
but, I still don't know why searching for method declarations never works,
and searching for method references only works sometimes.
I know that for every project in your workspace, it may be indexed (by
method name declarations and/or references at least).
That indexing is done by IndexManager.rebuildIndex.
I'm not sure when that actually happens.
I tried to force index rebuilding by deleting the files in the index
directory.
However, the flag createIfMissing was usually not set.
Chuck
"Chuck Doucette" <cdoucette@xxxxxxxxxxx> wrote in message
news:fvvqv3$n5b$1@xxxxxxxxxxxxxxxxxxxx
> Search for references is working in my language editor plugin.
>
> Neither searching for declarations (from the search dialog) nor open
> declaration (from the context menu after selecting a reference in another
> file) is working for me now.
>
> Obviously, there are two possible causes of this:
> a) the module that contains the method I want is not being searched
> b) it is being searched but it isn't matched
>
> I'm pretty sure that the matching works, since it works to find
> references.
> So, I'm left to believe that the module that contains the method
> declaration that I am searching for isn't being searched.
>
> It appears that the problem may be as follows:
> IExtensionPoint extPoint = this.getExtensionPoint(pluginId,
> extensionPointSimpleId);
>
> pluginId "org.eclipse.dltk.ui"
> extensionPointSimpleId "queryParticipants"
>
> This returns null:
>
> if (extPoint == null)
>
> return new IConfigurationElement[0];
>
> I found org.eclipse.dltk.ui.search.IQueryParticipant
>
> but apparently nobody implements that interface.
>
> Do I need to implement this interface to be able to find declarations?
>
> If so, how do I do that?
>
> FYI - Finding declarations doesn't seem to work for Python either.
>
> Chuck
>
>
>
>