Search code examples
eclipsesearchdirectoryworkspace

Eclipse search directories outside workspace?


I'm trying to search folders and files outside the workspace in Eclipse 3.0.2 on Windows 7. These links helped:

http://eclipse.dzone.com/articles/5-best-eclipse-plugins-system

https://bugs.eclipse.org/bugs/show_bug.cgi?id=192767

Unfortunately I can only get Desktop Search to work, not System Search. I've tried both the nokia system search download links:

https://bugs.eclipse.org/bugs/attachment.cgi?id=106032

http://www.steinerberg.com/EmbeddedComponents/System%20Search/com.nokia.search.system_2.0.0.201102171254.jar

I put either com.nokia.search.system or com.nokia.search.system_2.0.0.201102171254.jar in c:\eclipse-php\plugins. I also tried putting com.nokia.search.system.feature in c:\eclipse-php\features but it still didn't work because the folder is empty so I get this message in eclipse's error log:

!MESSAGE Unable to find feature.xml in directory: C:\eclipse-php\features\com.nokia.search.system-feature

I take directory search for granted in tools like TextWrangler and Xcode on the Mac and am flabbergasted that the Eclipse developers don't include arbitrary file search in their IDE.

Another possibility is to somehow add the C drive to Eclipse's workspace. I mainly need this to search directories like pear. I guess a free app might be an ok solution, if there's a way to tie it into Eclipse somehow, that would be helpful.

Thanks in advance for any help you can provide,

Zack


Solution

  • If I understnad your question, you are trying to search folders/files outside of the eclipse workspace. My advice would be to create a new folder through new -> wizard select it as a "linked" folder and point it to the folder in your file system that you want to include in the search.

    Say you want your C drive included in search. Create new folder, click on advanced which opens more otpions and select link to alternate location (linked folder) and click browse and select your c:\ drive. This will create folder in your workspace that is a pointer to the c drive and will be included in search queries.