one option is to filter derived resources. in the upper right corner of the 'open resource' dialog there is an arrow you can click to bring up a dropdown menu for filtering. uncheck the 'show derived resources' option, if it is checked.
if you still see '.class' files, they probably aren't being marked as derived. if they're by themselves in their own folder hierarchy you can fix this by right-clicking the root folder to edit folder properties, and check the 'derived' checkbox. if they're mixed with your '.java' files...tough luck, you'll need to set the derived property on each '.class' file by hand.
as far as i can tell there's no way to mark class files as derived resources globally for the workspace, but i believe when you create a new java project the 'bin' folder is marked as derived by default (if you use the default wizard settings)
here are some screenshots from eclipse kepler. the first shows how to filter derived resources by unchecking 'show derived resources' in the open resource dialog. the second shows how to set the 'derived' property on a resource.
showing or hiding files in the project explorer view you can choose to hide system files or generated class files in one of the navigation views. (system files are those that have only a file extension but no file name, for example .classpath.)
on the toolbar for the project explorer, click the menu button menu button to open the drop-down menu of display options. select customize view..,.
in the dialog box that opens, select the filters tab and then select the checkboxes for the types of files that you want to hide. in addition, you can restrict the displayed files to a working set.
on the toolbar for the project explorer, click the menu button menu button to open the drop-down menu of display options. choose select working set... select an existing working set from the list or create a new one by selecting new check here
version 3.5 open resource dialog has a way turn "show derived resources" on/off by a small dropdown menu at the top right hand corner. turning it off will hide classes.
you could type an expression on the "select an item to open" text box such as : *.java
some time you are not able mark build or bin folder as derived resource, because eclipse package explorer or project explorer does not show you build or bin folder in project view.
what you need to do, to show build folder in project view:
project > properties > java build path > source >change default output folder to build1 note: it will ask you to remove old folder and its content, press no (to restore it later)
now build folder is visible on package explorer, go to folder properties and mark it as derived
- now change your default output folder back to build (to restore old setting)
eclipse luna - just go to the following link
1. create a working set (include all projects)
2. on "package explorer" panel click on "filters" (in the same menu you just created the working set) and deselect "inner class files" + click ok
that worked for me
to solve this globally (on all projects), after pressing ctrl + shift + r, click on the top right corner of the window on the three dots button, then click on select working set, tick both java main source and java test source and voila.
you can use
working sets. from the same dropdown menu on open resource dialog select
select working set. it opens up the working set dialogue where you can create working sets if you don't already have them.
when creating a new one, choose the type
resources and select which folders in your workspace are consider as candidates for searching or for opening resources. i have included only
test folders and usually
pom.xml's and other misc configuration files.
with the couple of large projects i'm working on it has a noticeable impact on search speed too.
to change this behaviour and hide the “.class” files you need to do the following.
find your class output folder in the “project explorer” window. this is usually called bin or target for maven projects
right-click this folder and click properties
tick the derived checkbox (leave it unchecked) and click ok
.class files will now be hidden in future.
- right click on the project and select properties
- expand resource and click on resource filters
- click on add filter... to create a new filter
- on the dialog box that opens
- select the exclude all and files radio buttons
- under file and folder attributes enter
- click ok
to exclude an entire directory hierarchy, e.g. the
target directory, select the files and folders radio button and the all children (recursive) checkbox.
exclude the following for a complete cleanup of
open resource dialog
- files *.class
- folder bin
- folder build
- folder target
without excluding all 4 it does not work.
- How do I hide .class files from the Open Resource dialog in Eclipse?
- Eclipse :: Hide .svn files in Open Resource dialog
- How can I access which files the user currently has open from an eclipse plugin?
- Eclipse : how to prevent it from loading all the open files on startup?
- How to open a particular Eclipse wizard or dialog from the command line?
- How do I get the workbench window to open a modal dialog in an Eclipse based project?
- How to remove Eclipse project related files without deleteing the source from Eclipse
- How do I set the Eclipse build path and class path from an Ant build file?
- How to remove empty line from the end of new class - Eclipse
- how to open the find type dialog programmatically in eclipse
- How to get resource files from the runnable jar file which are in buildpath
- How do I open a perspective in Eclipse from the Welcome page, given that it's open underneath the Welcome?
- How to keep Eclipse CDT from resolving files outside of the configured include path?
- How to get the list of files open in active eclipse editor window in eclipse?
- In Eclipse how do I remove old or not needed class files from SVN
- How to make Eclipse Compiler copy existing class files to the target dir?
- Eclipse (Galileo) : How to ignore .svn-base files or *.svn folder in Open Resource dialog?
- How to open the default browser from Eclipse user space on any platform?
- How do I hide the select software site portion of the UI on the Eclipse Install New Software dialog in my RCP application?
- How to open a file in the current open Eclipse workspace from command line?
- How can I tell Eclipse to import files from outside the current Java Web Project?
- How can I run an Eclipse compiled Java class from the command line?
- Eclipse open resource dialog: How to order / sort the search results by project name?
- How to open and run a specific script from the command line in eclipse
- How to open Files from a Path that is not inside the Project in Java?
- How to open the workspace folder from within Eclipse
- Eclipse - Open Resource - How to see only *.js files
- Eclipse plugin: How to open external browser from Intro.xml on the Welcome page
- How is eclipse setting the include paths in Paths and Symbols from Android NDK build files
- How to open my app from lock screen without unlock the device Android Eclipse
More Query from same tag
- Eclipse does not recognize org.jdesktop.*
- Eclipse, save project on main and backup folders
- Eclipse 32 bit with Java 32 bit on Windows 7 64bit
- Java and android socket server programming
- How can I import eclipse JDT classes in a project
- ATG plugin for eclipse
- Eclipse Plugin and ADT modification for API Integration in Create Project menu
- Samples from Xpand -
- How to run multiple mains on eclipse without starting each one individually one by one
- Deploying .war in debug mode fails with an error
- How do I make a jar file from eclipse on fedora?
- How to load a class from annotations processor in eclipse?
- ERROR - Android Push Notification using Google Cloud Messaging (GCM)
- Hibernate buildSessionFactory() not applicable for arguments (ServiceRegistry)
- Checking out multiple files of the same name in Git
- eclipse and path
- Eclipse project can't find "org.joda"
- ResourceType Warning in Android
- Magic behind R.java file
- force close and android.view.InflateException on tablet
- I get this error when trying to run a test using Selenium: Launch configuration AWTConsole references non-existing project testProject
- listview does not update with notifydatasetchanged() call
- How to download sources and javadoc artifacts with Maven Eclipse plugin from other repository?
- int 0801 "out of range"
- Android, receive data from internet app does not work
- Runtime problems with HelloWorldSWT eclipse
- android how to using sweet-alert-dialog on Eclipse
- how do I create/format a .txt file so that eclipse/java can read it?
- Access application Using url in other Machine
- Eclipse won't start to run Stanford karel