Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Code Assist Filtering
Code Assist Filtering [message #293118] Tue, 18 October 2005 11:13 Go to next message
Eclipse UserFriend
Originally posted by: tmonaco.knowledgecc.com

Greetings,

Is it possible (if so, how?) to filter the code assist "suggestions" to
packages and classes that are already imported? I wouldn't mind typing
my own import statements if it meant I could have the code assist work
in this way. I realize that this would not work with auto-import turned on.

My problem is, I have several jars in my buildpath which contain several
classes called Map, or something like Map*, which when I want to use a
java.util.Map, I need to scroll all the way through them to get to
it--even though none of the other Map's are members of imported packages.

Another example is com.mysql.jdbc.Connection vs. java.sql.Connection.
Code assist keeps trying to stick in the mysql one.

Thanks,
-Tom
Re: Code Assist Filtering [message #293156 is a reply to message #293118] Wed, 19 October 2005 04:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.eclipse.org

Tom Monaco wrote:

> Greetings,
>
> Is it possible (if so, how?) to filter the code assist "suggestions"
> to packages and classes that are already imported?

Window > Preferences > Java > Appearance > Type Filters

HTH
Dani

> I wouldn't mind typing my own import statements if it meant I could
> have the code assist work in this way. I realize that this would not
> work with auto-import turned on.
>
> My problem is, I have several jars in my buildpath which contain
> several classes called Map, or something like Map*, which when I want
> to use a java.util.Map, I need to scroll all the way through them to
> get to it--even though none of the other Map's are members of imported
> packages.
>
> Another example is com.mysql.jdbc.Connection vs. java.sql.Connection.
> Code assist keeps trying to stick in the mysql one.
>
> Thanks,
> -Tom
Re: Code Assist Filtering [message #293187 is a reply to message #293156] Wed, 19 October 2005 14:55 Go to previous message
Eclipse UserFriend
Originally posted by: tmonaco.knowledgecc.com

That was one of the first things I tried. The problem with it is that
I'd need to exclude EVERY package by hand and then sift through and
uncheck it to keep it in sync with my imports.

I was kinda hoping there would be a plugin or a patch out there to get
this behavior.

Thanks,

-Tom

Daniel Megert wrote:
> Tom Monaco wrote:
>
>> Greetings,
>>
>> Is it possible (if so, how?) to filter the code assist "suggestions"
>> to packages and classes that are already imported?
>
> Window > Preferences > Java > Appearance > Type Filters
>
> HTH
> Dani
>
>> I wouldn't mind typing my own import statements if it meant I could
>> have the code assist work in this way. I realize that this would not
>> work with auto-import turned on.
>>
>> My problem is, I have several jars in my buildpath which contain
>> several classes called Map, or something like Map*, which when I want
>> to use a java.util.Map, I need to scroll all the way through them to
>> get to it--even though none of the other Map's are members of imported
>> packages.
>>
>> Another example is com.mysql.jdbc.Connection vs. java.sql.Connection.
>> Code assist keeps trying to stick in the mysql one.
>>
>> Thanks,
>> -Tom
Previous Topic:Parse actionSets populate ContributionManager?
Next Topic:opening a file that is outside the workspace in an editor
Goto Forum:
  


Current Time: Thu May 08 01:44:20 EDT 2025

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

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

Back to the top