OK, I did that. A related question—trying to implement a CompletionParticipant. Wanted to pass back proposals so I could specify a priority. The doc says you can return a list of ICompletionProposal or IToken, but looks pretty clear you can actually only pass ITokens back?

 

    /**

     * Called when a completion is requested for some token whose type we don't know about

     * (excluding parameters -- that's handled at getCompletionsForMethodParameter)

     *

     * E.g.:

     *     for a in xrange(10):

     *         a.|<-- as variables created in the for are not resolved to any known type, this method is called on extensions.

     *

     *

     * @param state The state for the completion

     * @param localScope The current local scope for the completion

     * @param interfaceForLocal a list of tokens that were called in the local scope for the passed activation token.

     *

     * @return a list of proposals or tokens

     * @see org.eclipse.jface.text.contentassist.ICompletionProposal

     * @see org.python.pydev.core.IToken

     */

    Collection<IToken> getCompletionsForTokenWithUndefinedType(ICompletionState state, ILocalScope localScope, Collection<IToken> interfaceForLocal);

 

 


From: Fabio Zadrozny [mailto:fabiofz@gmail.com]
Sent: Friday, January 22, 2010 7:38 PM
To: pydev-code@lists.sourceforge.net
Subject: Re: [Pydev-code] Ordering of completion proposals

 

Not really... but that can be probably coded. Please open a feature request for that.

Cheers,

Fabio

On Fri, Jan 22, 2010 at 6:25 PM, Doubleday, Dennis <ddoubleday@vocollect.com> wrote:


Almost always, when typing Ctrl-Space at the ".", the completion
proposal that I want to choose does NOT begin with an underscore, yet
PyDev sorts the proposals so that all candidates beginning with
underscore sort to the top, so I have to scroll down to find the most
likely candidates.

I don't see a way as either a user or a developer to change that
behavior; the code shows me that the static final
IPyCodeCompletion.PROPOSAL_COMPARATOR is used to sort the candidates. Am
I missing a hook or a setting?

Dennis Doubleday
Enterprise Software Architect

Vocollect, Inc.
703 Rodi Road
Pittsburgh, PA  15235-4558
Tel: 412.349.2568
Fax: 412.8249465
www.vocollect.com

CONFIDENTIALITY NOTICE
This message, together with any attachments, may be legally privileged
and is confidential information intended only for the use of the
individual or entity to which it is addressed.  It is exempt from
disclosure under applicable law including court orders.  If you are not
the intended recipient, you are hereby notified that any use,
dissemination, distribution or copy of this message, or any attachment,
is strictly prohibited.  If you have received this message in error,
please notify the original sender and delete this message, along with
any attachments, from your computer.


-----Original Message-----
From: Fabio Zadrozny [mailto:fabiofz@gmail.com]
Sent: Tuesday, December 29, 2009 2:16 PM
To: pydev-code@lists.sourceforge.net
Subject: Re: [Pydev-code] How can I work on this ticket?


> I want to work on this ticket. How can I start? I don't even know
where to
> begin... Is there some suggested reading or code examples?
>
https://sourceforge.net/tracker/index.php?func=detail&aid=1874333&group_
id=85796&atid=577332#



The first step would be creating a grammar for it... I've created a
page describing the process for creating the grammar at:
http://pydev.org/developers_grammar.html

Cheers,

Fabio

------------------------------------------------------------------------
------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and
easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
pydev-code mailing list
pydev-code@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
pydev-code mailing list
pydev-code@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code