Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

converting java.io.File to org.eclipse.core.resources.IFile

 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic