On Fri, Apr 9, 2010 at 7:10 PM, Jari Pennanen <spa...@ok...> wrote:
> Hi!
>
> Is it possible to write Jython script to PyDev that adds stuff to
> auto-completion? Such as
>
> classifiers = [
> "Programming Language :: Python",
> "[CTRL+SPACE]",
> ]
>
> Would yield the list given in PyPi,
> http://pypi.python.org/pypi?:action=list_classifiers
>
> I'm also interested is it possible to modify the script that auto
> creates the docstrings, it would be handy if it were in
> Eclipse\plugins\org.python.pydev.jython_???\jysrc path so it would be
> easy to edit... I know it probably is written in Java at the moment so
> it is not in Jython source path.
>
> Currently I'm using Sphinx as doc generation and the @-signs are not
> used in rST formatted docs, also the used ''' is something that I
> don't use, I have """ in docstrings.
>
> These are matter of taste, but it would be easy to "adjust" the taste
> if they were Jython scripts... Sometimes doing elaborate configuration
> dialogs is harder to get right, editing the code would be easier to
> configure.
Sorry for the delay in getting back to you...
Actually, I believe for most users doing that through programming
would be harder...
So, the code that creates it right now is at
org.python.pydev.editor.correctionassist.docstrings.AssistDocString,
and I believe it's easy to follow (I know the real problem is not
changing that, but creating a build), but if you provide a patch, I
can take care of distributing ;-)
Also note that right now that code only creates a docstring, but in
the future it should support updating it too (so, providing external
programming would be harder on that situation too).
Cheers,
Fabio
|