Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDLTK indexing
https://www.eclipse.org/forums/index.php/mv/msg/377819/915501/#msg_915501
But till now I am not able to make it work as a whole. The parsing seems to work correctly and even I am getting the outline of the code in the outline view. Now my next move is to verify the python search. But this is not working.
Below is the PythonSearchFactory class.
]public class PythonSearchFactory extends AbstractSearchFactory {
public IMatchLocatorParser createMatchParser(MatchLocator locator) {
return new PythonMatchLocationParser(locator);
}
public SourceIndexerRequestor createSourceRequestor(){
return new PythonSourceIndexerRequestor();
}
public ISearchPatternProcessor createSearchPatternProcessor() {
return new PythonSearchPatternProcessor();
}
}[/size]
Even I have PythonSourceElementRequestor and PythonSourceElementParser class implemented.
Now, what else I need to do?
I have doubt on indexing of my code.
How can I print the index details?
Does the indexing happens for all the file during the eclipse start up?
]]>birendra acharya2012-09-17T12:21:40-00:00Re: DLTK indexing
https://www.eclipse.org/forums/index.php/mv/msg/377819/921404/#msg_921404
You'd better check JavaScript/Ruby/TCL implementations, as Python has
some missing bits.
Indexing happens on changes and also initial index update happens on
startup.
The data for the indexing are reported by *SourceElementParser - it's
invoked with different requestors for building the module structure
(Outline) and for the indexing.
Search is performed in 2 steps: first source modules are identified
based on index, then the matcher is called to find the exact matching
nodes in the AST.