I've noticed on my Mac and Linux machines that when I use Eclipse's "Open Resource" feature (ctrl-shift-R), when I enter a resource name, Eclipse treats "." as a wildcard. So, for example, if I typed "Account.java", Eclipse would list every file b开发者_如何学运维eginning with account, followed by java - AccountManager.java, AccountDao.java and so on. Is there a way to change it on Mac and Linux to behave more like I am expecting from Windows? On Windows, the dot isn't treated as a wildcard and only Account.java would be shown.
Open Resource filter is prefix based. So when you type "Account.java" it is actually "Account*.java*". To prevent prefix matching you need to type < or space character, e.g "Account<.java".
See Eclipse Open Resource docs.
Cheers, Max
精彩评论