This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes converting to org.eclipse.core.resources.IFile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "converting to org.eclipse.core.resources.IFile" Watch "converting to org.eclipse.core.resources.IFile" New topic

converting to org.eclipse.core.resources.IFile

Bharath Raja
Ranch Hand

Joined: Jan 21, 2009
Posts: 111
Is there any possibility to convert java's File to eclipse's IFile. My requirement is opening a word document file within the eclipse editor(not outside of eclipse). I've the but the openEditor() method receives its arguments as IFile only. Now I can open the word document on outside the eclipse through the code

I've tried to open a word document file within eclipse editor, but it give me an exception. Code as

Any suggestion?

Life is either daring something or nothing - Helen Keller
I agree. Here's the link:
subject: converting to org.eclipse.core.resources.IFile