Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting IFile to ISelection

 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we convert org.eclipse.core.resources.IFile to org.eclipse.jface.viewers.ISelection.

My requirement is, whenever we've opening a file from tree viewer of navigator in eclipse, I need to customize that. while this process I need to convert file(IFile) to selection(ISelection). I've got the file through getEditorInput() method of IEditorInput. My code as,

Now I need to dump this file into ISelection... how about the possibility.?




 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just now I've read one IBM tutorial regarding this... Here they've convert ISelection to IFile.. So now, how about the possibility of vice-versa?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!