Take the 2-minute tour ×

I have a headless RCP project. I am passing an xml file as command line argument to that project. How can I retrieve IFile information from the xml file?

share|improve this question
Do you mean that you want to convert a string for a fully qualified path into an IFile instance? Is the path inside of the workspace? –  Andrew Eisenberg Feb 14 '13 at 22:02
Yes. The file can be in any workspace. –  bray Feb 15 '13 at 1:23
If the file is not inside of the currently loaded workspace, then you cannot easily convert it into an IFile instance. There are tricks you can do, but it is not easy or straight forward. –  Andrew Eisenberg Feb 15 '13 at 3:10
add comment


Your Answer



Browse other questions tagged or ask your own question.