spaaarky21
spaaarky21

Reputation: 6858

Eclipse: Dot acts as wildcard in "open resource" filter on *nix

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 beginning 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.

Upvotes: 1

Views: 520

Answers (1)

Max
Max

Reputation: 2907

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

Upvotes: 1

Related Questions