Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Is there a way to filter content assist proposals to show only a specific type?
Is there a way to filter content assist proposals to show only a specific type? [message #210410] Mon, 25 February 2008 15:03 Go to next message
Eclipse UserFriend
Originally posted by: Adam_Neal.ca.ibm.com

Hi, is it possible to (basically) restrict the content assist proposals to
only show a specific type? For example, in some cases we would like to
only search for specific element types (like elements typed to ClassXXX).

Is this possible? Is it possible to extend the content assist to do this?

Thanks in advance,
Adam
Re: Is there a way to filter content assist proposals to show only a specific type? [message #210745 is a reply to message #210410] Thu, 28 February 2008 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Adam Neal wrote:
> Hi, is it possible to (basically) restrict the content assist proposals to
> only show a specific type? For example, in some cases we would like to
> only search for specific element types (like elements typed to ClassXXX).
>
> Is this possible? Is it possible to extend the content assist to do this?
>
> Thanks in advance,
> Adam
>
>

There are two possibilities:

1) You can implement a filter for proposals (extension point
org.eclipse.cdt.ui.ProposalFilter)

2) You can implement another completion proposal computer + category
(extension point org.eclipse.cdt.ui.completionProposalComputer) and
enable it on the Content Assist > Advanced preference page and/or assign
a special key binding for it.

1) easy, I should note that the implementation also has to filter
duplicates as the default does.
2) advanced, drawback is: you probably need to reference some internal
classes (see DOMCompletionProposalComputer)

HTH
--
Anton Leherbauer
Wind River CDT Team, Austria
Re: Is there a way to filter content assist proposals to show only a specific type? [message #211164 is a reply to message #210745] Wed, 05 March 2008 18:13 Go to previous message
Eclipse UserFriend
Originally posted by: Adam_Neal.ca.ibm.com

Thanks Anton. I really appreciate your help.

-
Adam Neal
Previous Topic:Declaration/Reference Search Not Working
Next Topic:*** Couldn't reserve space for cygwin's heap, Win32 error 487
Goto Forum:
  


Current Time: Mon Mar 31 03:43:14 EDT 2025

Powered by FUDForum. Page generated in 0.13122 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top