Re: [Pydev-code] Quick Status Update
Brought to you by:
fabioz
From: Dana M. <dan...@ya...> - 2004-05-27 16:15:45
|
I finally found time to get back onto PyDev. I checked in a wrapper for Jython to support PythonCompletionProcessor.java. Now working to get that to call a couple the same python modules that autocomplete code for PyAlaMode. Basically, the strategy is to: ... PythonInterpreter interp = initInterpreter() // do whatever init is req // these modules are in the Jython Lib Path // THIS IS NOT A SUSTAINABLE STRATEGY (!) // WHAT WE REALLY WANT IS TO GET THEM FROM A JAR FILE BUNDLED WITH // THE JYTHON ECLIPSE PLUGIN (see more about this later in the message) interp.exec("from PyDev import jintrospect"); interp.exec("from PyDev.play import *"); interp.exec( "theList = jintrospect.getAutoCompleteList( command='y.', locals=locals())"); PyList theList = (PyList) interp.get("theList"); // then, populate the completion proposals and return ICompletionProposal[] proposals = new ICompletionProposal[propList.size()]; // and fill with list elements propList.toArray(proposals); // Return the proposals return proposals; ... ... ===== _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ Dana Moore _/ _/ BBN Technologies LLC _/ _/ M: 240.350.4196 _/ _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ |