The following forum message was posted by fabioz at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4377807:

If you're willing to take a look, it should actually be easy (just didn't look
at it because of time matters).

The code that completes for the '@' right now
is: https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/src_com
pletions/org/python/pydev/editor/codecompletion/PyStringCodeCompletion.java
(so, it'd be a matter of extending that).

So, it should be simple to complete for '.' (checking if there's a tab/space
before it) based on the code that completes for '@'.  Note that you should 
probably
also add a preference to know if the user wants the default completion for 
epydoc
or for sphinx (at window > preferences > pydev > editor > code style > 
docstrings)
-- you should be able to find that preferences page through looking for 
'docstrings'
in the plugin.xml.

Also, please add a test case to:
https://github.com/aptana/Pydev/blob/master/plugins/org.python.pydev/tests_compl
etions/org/python/pydev/editor/codecompletion/PythonCompletionStringsTest.java
if you get up to the point of doing it.

Instructions for getting the code are available at: 
http://pydev.org/developers.html
and if you need any help, just ask.

Cheers,

Fabio

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to