>>>>> "Paul" == Paul Kinnucan <[EMAIL PROTECTED]> writes:
Paul> Phillip Lord writes: >> >> Here is the latest version of jde-import-all, which works with >> jde-2.3.3. >> Paul> Hi Philip, Paul> How about leveraging semantic to find a candidate list of Paul> classes to import? The following function uses the semantic Paul> lexer to get a list of all Java tokens in the current Paul> buffer. It then extracts all identifiers in the list that Paul> start with an upper case character and have at least one lower Paul> case character, and that do not appear in an import statement Paul> or inner or outer class declaration. Paul I'd thought about using semantic. I thought that the parser was not doing a full parse though...does it actually work its way down into method definitions or just forward-sexp over them? If it does work in identifying all the types then semantic is clearly the way to go. Paul> A more rigorous approach might use David Ponce's wisent parser Paul> generator to generate a parser that builds a list of class Paul> names as a side effect of parsing the buffer. Yes I would agree. I'm unlikely to have time to do this though. I was looking for a quick solution which basically worked! Cheers Phil