Welcome, Guest! Log In | Create Account

Eclipse Negative Text Search Engine

From kolovos

Revision as of 20:32, 17 August 2009 by Dskolovos (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

At some point I needed to search all the .java files in my Eclipse workspace to find out which of them contain copyright notices and which not. So essentially, what I needed to do was to find all files that did not contain a particular phrase (i.e. Eclipse Public License). After trying to do this with regular expressions I decided to see if I could implement a "negative search engine" i.e. a text search engine that returns the files that do not contain a particular phrase.

This attempt was successful and the result is available via the following update site: http://kolovos.svn.sourceforge.net/svnroot/kolovos/eu.kolovos.negativesearch.updatesite/

To enable the engine go to Window->Preferences->General->Search and select the "Negative Search Engine" from the "Text Search Engine to be used" dropdown.