Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Open external file in defined editor
Open external file in defined editor [message #247088] Tue, 29 January 2008 14:51 Go to next message
Eclipse UserFriend
Originally posted by: ups_genius.gmx.net

Hi everyone!

I am trying to open a file that is not located in my workspace in an
editor. I managed to open the file with openEditorOnFileStore(...,...).
But the file is opened in a text based editor that is different to the one
I would like to have.
Is there a way to define the editor used as it is for the
page.openEditor(input, editorId) function? E.g. define if a .html file is
opened in an internal browser or in a text based editor?

Thanks in advance!

Christian
Re: Open external file in defined editor [message #247330 is a reply to message #247088] Thu, 31 January 2008 13:05 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Christian Opitz wrote:

> Hi everyone!
>
> I am trying to open a file that is not located in my workspace in an
> editor. I managed to open the file with
> openEditorOnFileStore(...,...). But the file is opened in a text based
> editor that is different to the one I would like to have.
> Is there a way to define the editor used as it is for the
> page.openEditor(input, editorId) function? E.g. define if a .html file
> is opened in an internal browser or in a text based editor?

It takes whatever is set as default editor for that extension/content
type (see: General > Editors > File Associations)

Dani

>
> Thanks in advance!
>
> Christian
>
Previous Topic:Running another java application from a program
Next Topic:help
Goto Forum:
  


Current Time: Tue Nov 12 19:41:38 GMT 2024

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

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

Back to the top