eclipse hide a item entirely from processing - eclipse

My requirement: To hide specific file/folder from the project explorer.
Following the steps given on below link, i am able to successfully do so,
http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-48b.htm
But, I want to hide them entirely from the processing, e.g. If I do a search for some word in *.java files, results show up from the hidden folder as well. Any way to exclude it from search results (or from entire processing of what eclipse looks for) ?

Resources marked as 'derived' are ignored by most things.
You can set the derived flag on the 'Resource' tab of the file or folder Properties.
You can use the IResource.setDerived method to set the flag programatically.

Related

How to disable indexing/search on certain file types in XCode 4?

For one reason or another, I have a few nasty JSON files in my XCode project. When I do searches, they will sometimes get hung up on these files.
Is there a way to prevent XCode4 from indexing certain file types, or files?
Go to the search navigator (⌘+3)
click on the magnifier within the search field
choose "Show Find Options"
click on "Find in", there should be "Workspace"
use "Custom…" and select "Path Extension" "is not equal to" "json"
give it a name e.g. SearchWithoutJson
next time you can enter something in the search field and select your search setting
//EDIT: actually the next search with selecting SearchWithoutJson doesn't work. You still need to display the search options and make sure the right one is selected in "Find in"
Don't include the JSON files in your project at all.
Instead insert a custom build phase that copies these files into the application bundle.
Or maybe you can put all JSON files into one big file, so indexing will be faster.

Eclipse: How to control what shows up in your workspace?

It provides me no value to view directories such as "bin", "dist", "doc" as part of my project explorer. These directories are valid and contain useful information, however i gain nothing by staring on them.
Is there a way to exclude them from the view?
You can add the relevant folders and files to a working set. Then tell the Package Explorer to select a Working Set, then it will only show you what you care about.
What you might want to exclude could also be filtered. All these view options are in the little upside-down triangle in the package explorer.

How to exclude files/folder from Markers view in eclipse?

Is there a way in eclipse to stop markers from showing in the Markers view for files in a certain folder? I.e. I imported a Javascript library that I didn't write myself but it is going to be part of my project and I don't want to have to look at all the "TODO" and "FIXME" markers in those files and would just want to see my markers only... Is there a way to exclude certain folders or files form being scanned by the markers process?
Apparently, I was able to resolve this by adding the folders I wanted to exclude to the exclusion list under Project->Properties->Validation. (Click settings beside each validation, Add Exclude Group button, Add Rule button, select folder option, browse for relative folder)
You can configure the content of the Markers view (the one displaying errors and warning in source code) and the content of the Tasks view (the one displaying "TODO" and "FIXME") by clicking on the "small down arrow" in the top right of the view (near the minimize and maximize buttons) and then clicking on Configure Contents ... entry.
Hope this can help,
Manu
By selecting Configure Contents like Manu said, there is also the option to list the tasks for a specific working set, using the Scope area at the right.
That worked for me, and I'm not annoyed anymore by all Zend Framework #todo.
Hope this helped, Stéphane
I'm doing a node app and wanted to exclude my node modules folder. I found the only way to do this is to create a working set that excludes that directory and set the Task -> configure contents to that working set.
How to exclude a folder that is producing warnings/errors in an Eclipse project?

Filter Empty Directories in Package Explorer View

Is there a way in eclipse to filter/hide empty directory trees in the package explorer view?
This is different than filtering directories like '.svn' or maven's target, or filtering empty packages. It's more trying to clean up empty directories trees that show up as a result of filter rules.
Context- We have a generic project in our workspace that uses filters to ignore non text based files(mp3s, jpgs, etc). It allows us to quickly edit our files in eclipse. The problem is because of the filters there are a lot of empty folders present. If eclipse can ignore any empty folders due to filters it would make the project cleaner.
Update- I filed a bug report in eclipse's buzilla system for those that wish to have this feature:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=334052
In Eclipse SDK (I use 3.6.2), to hide empty folders in the "Package Explorer":
At the top-right of the Package Explorer view, there's a downward-pointing triangle. If you hover your mouse pointer over it you'll see "View Menu".
Click the "View Menu"
Selected "Filters"
Put a check next to "Empty Packages"
Click OK
now your empty folders don't show any more.
This doesn't seem to be possible and could make for a good bug report.
As bug 157336 (build output contains unnecessary empty directories) comments:
"foo/bar/" is treated as "foo/bar/**".
So, as I understand it foo/bar/** should exclude the content of the directory and foo/bar should additionally exclude the directory itself.
Meaning you might have to add every empty directory yourself to the Exclude list, which is not practical.
Another solution would be to give Mylyn a try and see if its task context switching could hide any folder you don't need in the current task for you.

Eclipse tasks from specific files

In Eclipse (Galileo) is it possible to filter the list of TODO and FIXME tasks by a specific file, or several files? Instead of having the whole list for the entire project.
You can select through the upper right arrow of the Task View the option "Configure Content"
From there, you should select a narrower filter like:
"On selected element only"
Steve Chambers mentions in the comments:
To get this to work in Kepler (Eclipse 4.3), I had to tick the checkbox on the "TODOs" configuration in the top left (rather than "Show all items", which is ticked by default).
I am not running Galileo, but slightly older version of Eclipse. However, you can at least filter the task list by task description, if not the file name. Open the menu of the Tasks view and from there choose Configure Filters... Configure Contents.... From there, you can set up a filter that filters data based on the content of task description. Perhaps you can use this to achieve what you want.
(Plus I'm sure that in case new functionality has been added to the filter configuration in Galileo, it will be obvious from the Configure Contents window.)
Hope this helps.
A better approach for your problem would likely be to chose "On working set" from that dialog, "Select...". Then create a working set, it will ask you what files are part of the working set and only display tasks from those files.
I use this to exclude the "vendors" directory in Symfony2, and the "Zend" directory in Zend Framework, which are full of TODOs and errors that pollute these views.
I couldn't see a way to do exactly what you wanted.
In a single file you can open the file and locate the TODO items by the icons in the margin.
You can also open the Tasks view (Window->Show View->Tasks) and sort the tasks by clicking on the column headings. Sorting by "Resource" or "Path" might give you some part of the functionality that you are looking for.
You might also look at the Mylin task management plugin. You can create Mylin tasks from TODO items, and you might be able to to more with Mylin's Task List view than you can with TODO's Tasks view.