score:250
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.
score:0
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
score:1
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.
Or
you could type an expression on the "Select an item to open" text box such as : *.java
score:2
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:
Go to
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)
score:3
Eclipse Luna - just go to the following link
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-48b.htm
OR
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
score:7
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.
score:15
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 src
and 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.
score:37
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.
Source: http://ayubmalik.co.uk/2011/12/hide-class-files-when-opening-a-type-or-resource-in-eclipse-ide/
score:148
- 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
*.class
- 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.
Edit
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.
Source: stackoverflow.com
Related Query
- 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
- NoClassDefFoundError when running exported JAR from Eclipse
- Why a single `System.out.println(i);` gives the output twice in Eclipse?
- What is the class path of any given source code?
- Move console and logcat view to bottom
- Eclipse/maven - "Cannot change version of project facet EAR to 6.0
- eclipse serializable members validation
- How do I run a project in Eclipse?
- What should the contents of emma_ant.properties be?
- Eclipse CDT: Mapping console output to source file and line
- Display Image in jsp page
- Eclipse Plug-ins develop: Plug-in A use a Class in Plug-in B, after exporting as jars and installed in to eclipse, NoClassDefFoundError occurs
- How to display an image with use of jar file in Android?
- Can we start Eclipse in "offline" mode
- Eclipse: Welcome to Modelica Development Tooling (MDT) Console - empty reply:
- Problem with JFace Application in design mode
- Explanation for servlet and servlet-mapping in web.xml
- Move CVS repository without rechecking out in Eclipse?
- How use step into on Eclipse Debugging?
- Disable "go to parent class" triangle in Eclipse
- Cannot create new Android Application Project
- Programmatically setting a Xtend class as super class of a Java class
- How to Save the Captured Image to Internal Storage
- Eclipse CDT: how to get rid of a specific warning?
- Error shown on creating a new maven project.
- Getting error "No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')" in Android Eclipse
- How to remove git unstageg changes resulted from removing directories?
- Can I get a scrollable tooltip in draw2d?
- How to view the number of written lines in Eclipse
- How to generate intermediate tables from JPA2 models in eclipse
- Howto connect eclipse RSE to google-compute-engine