Campbell Ritchie wrote:Eclipse is not a runtime, but a development environment. It uses the standard Java™ API, and any other API you need to download and add to your classpath. When you have finished developing, it should work by [double-]clicking the resultant .jar. Use the same API you would use without Eclipse.
Ritchie., I'm in mid of developing plug-in which fits into eclipse. The actual requirement is, have to get a file as IDocument with just file name not full path of the file. As I mentioned in attachment, we can get the current user workspace through code, under that workspace there could be many projects(or folders), and files. Within that user current workspace I need to retrieve the file with its name. Since we can't surely say the file lying under specific folder, we cant give the full path ... isn't it.? As of now I've implement logic said by jesper and able to get the file,. But my question is, don't we have any other option to do this ..?
[For more explanation of requirement, how the "open resources" functionality working in eclipse. In that "open resources" if we type any name of the file without bothering about where its lying (must be in current workspace), the eclipse have intelligence to open that file right... same thing is I want to achieve in my plug-in]