Hide class files on Eclipse's Open Resource Dialog

Problem:
When start typing criteria on Eclipse's Open Resource dialog (Ctrl+Shift+R) sometimes .class files shown on Matching Items's box.  In my case they are only compiled JSPs not regular Java's classes.

Solution:
Mark folder containing .class files as derived. In my case, i marking 'target' folder (yes it's maven project), and here's the steps:
  1. right click the folder on Project Explorer,
  2. click on 'Properties',
  3. check 'Derived' under 'Attributes' part.
  4. click 'OK', 
done, the .class files won't shown on Open Resource dialog again.

Derived attibute on foder properties


If .class file still shown then you might want to:
  1. examine Open Resource menu (accessed by clicking triangle button on dialog's top right) the 'Show Derived Resources' should be  unchecked.
  2. find another folder containing .class files and check their 'Derived' property.
access to Open Resource's menu

No comments:

Post a Comment