Christopher Williams wrote: > This is actually quite similar to some of the code I've been playing > around with in implementing a F3 - Go to Declaration feature. You may > want > to browse through some of the latest checkins on our repository (the code > has mostly been in rdt.core's SelectionEngine). Ah... OK, I think I see how this works. I'll try and port my stuff over to use Selection Engine, so the same backend is used for this functionality.
> - handle search the scopes in order (it doesn't work right when a > local var > name is used between multiple methods in a class, for example) > - Search the load paths (first, or only them) rather than the project > as a > whole Are these LoadPaths for a project? How are they setup? > declaration. Instead we skip from taking the AST node type and name > and use > that to find the first matching RubyElement. This is why we fail to > recognize local vars with the same name that are in distinct scopes > (say two > different methods). Hmm... I've to take a closer look at the code; > When I get home I'll throw this patch into trunk, and you might want to > consider having it hook into the SelectioNEngine/codeassist stuff in > rdt.core. Then we can both tweak that stuff to do the right thing. Yep, I'll... try to do finish the GUI Code Browsing stuff over the weekend, and also do some extension point to allow third parties to plug in Hyperlink handling code. About help: To be upfront: I won't be able to invest _too_ much time, since I'm also finishing up a JRuby Parsetree port,some demos, and I'm also starting a plugin that provides support for JRuby. The latter is mostly about debugging support for JRuby - I tracked down some of the problems, the JRuby guys fixed some problems, and I managed to debug JRuby code with RDT (yay, proof of concept!). Problem: this requires some tweaks to eclipseDebug.rb and maybe a change or two in the way that RubyInterpreters are handled or set up. I'll figure this out, but there are some details I'll need to figure out. murphee -- Blog @ http://jroller.com/page/murphee Maintainer of EclipseShell @ http://eclipse-shell.sourceforge.net/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rubyeclipse-development mailing list Rubyeclipse-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development