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 java.io.File 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 java.io.File to org.eclipse.core.resources.IFile" Watch "converting java.io.File to org.eclipse.core.resources.IFile" New topic
Author

converting java.io.File 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 java.io.File 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: http://aspose.com/file-tools
 
subject: converting java.io.File to org.eclipse.core.resources.IFile