Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Load non-workspace file programmatically
Load non-workspace file programmatically [message #197660] Sat, 03 March 2007 04:17 Go to next message
Eclipse UserFriend
Originally posted by: dev.bleedingmoon.de

Hi everybody,

in my rcp plugin i have to load a file programmatically, which is
actually in the classpath of my project (a xml file). After loading this
file i have to convert this file in an IFile, if necessary.
Afterwards i have to fill a custom editor with this input.


I googled and googled, but i only found how i open an editor
programmatically, but not how i do that with files (which are not in the
workspace).

openEditor(new FileEditorInput(IFile), editorId)....
So what is the best practise to retrieve this IFile?


Any help appreciated!
Re: Load non-workspace file programmatically [message #197668 is a reply to message #197660] Sat, 03 March 2007 10:13 Go to previous message
Eclipse UserFriend
Originally posted by: fj.uni-koblenz.de

maybe this is what you are looking for:
http://wiki.eclipse.org/index.php/FAQ_How_do_I_open_an_edito r_on_a_file_outside_the_workspace%3F
Previous Topic:Eclipse Forms section
Next Topic:Forcing views to construct within a perspective
Goto Forum:
  


Current Time: Thu Apr 25 08:36:37 GMT 2024

Powered by FUDForum. Page generated in 0.07832 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top