Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Opening external file
Opening external file [message #289606] Mon, 08 August 2005 18:33 Go to next message
Eclipse UserFriend
Originally posted by: no_email_please.hotmail.com

Hi, is there a way of opening an external file programmatically?
After doing some searches on this forum, apparently I need to look at
ExternalClassFileEditorInput and OpenExternalFileAction but these are
internal and I can't seem to find the docs on them anyways, where
should I look?

I did manage to get the file to open with the DefaultTextEditor but
I get errors when the IDE tries to save the file when exiting the app...

When using another editor (in my case one from Rational), I get:
org.eclipse.ui.PartInitException: IWAW0109E Failed to create model.
and a message box:
Failed to open file.
The specified file is not found.

And of course, I know the file is there because I can open it using
the default editor.

Any ideas?

Thanks
Nic
Re: Opening external file [message #290264 is a reply to message #289606] Mon, 22 August 2005 14:49 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Nicolas Legare wrote:

>Hi, is there a way of opening an external file programmatically?
>After doing some searches on this forum, apparently I need to look at
>ExternalClassFileEditorInput and OpenExternalFileAction but these are
>internal and I can't seem to find the docs on them anyways, where
>should I look?
>
>
Look at the code that those internal classes use.

Dani

>I did manage to get the file to open with the DefaultTextEditor but
>I get errors when the IDE tries to save the file when exiting the app...
>
>When using another editor (in my case one from Rational), I get:
>org.eclipse.ui.PartInitException: IWAW0109E Failed to create model.
>and a message box:
>Failed to open file.
>The specified file is not found.
>
>And of course, I know the file is there because I can open it using
>the default editor.
>
>Any ideas?
>
>Thanks
>Nic
>
>
>
>
Previous Topic:Description tooltips next to completion proposals
Next Topic:Why "File"->"Revert" menu item always disable
Goto Forum:
  


Current Time: Fri Apr 26 13:50:11 GMT 2024

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

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

Back to the top