开发者

How do you stop Eclipse from inserting a certain class in Content-Assist?

开发者 https://www.devze.com 2023-01-01 03:32 出处:网络
I\'m using SpringSource Tool Suite (Eclipse) to program with Grails, and I\'m also using JFreechart in the program.

I'm using SpringSource Tool Suite (Eclipse) to program with Grails, and I'm also using JFreechart in the program.

In Grails you log by typing log.info("method worked"). Unfortunately JFrechart has a class called "Log" with Static methods like "info". This means that in STS I type log.info and then when I type space or ( Eclipse "assists" me by importing the JFreechart开发者_开发技巧 Log class and changing what I've typed to Log.info(message). Very irritating.

I reckon I could turn off the Eclipse option to "insert single proposals automatically", but I like this feature. Can I instruct Eclipse not to give me content assist from this particular JFreechart class?


You can add the JFreechart Log class to Type Filters via Window > Preferences > Java > Appearance > Type Filters:

alt text http://www.imagebanana.com/img/aairbchy/screenshot_009.png

0

精彩评论

暂无评论...
验证码 换一张
取 消