Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Changing file associations on the fly
Changing file associations on the fly [message #17652] Sun, 27 April 2003 16:13 Go to next message
Eclipse UserFriend
Originally posted by: prlists.yahoo.com

Hi,
I need to set up file associations to an editor (which is part of my
plugin).
The file associations are given as extensions to an extension point i
define.

How associate files with these extensions to my editor?

thanks in advance
Lior
Re: Changing file associations on the fly [message #18477 is a reply to message #17652] Mon, 28 April 2003 01:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pascal_rapicault.yahoo.fr

I never tried that but the method

public void setDefaultEditor(String fileNameOrExtension,String editorId)

on

IEditorRegistry should do it.

PaScaL

"Lior" <prlists@yahoo.com> a
Re: Changing file associations on the fly [message #18565 is a reply to message #18477] Mon, 28 April 2003 12:30 Go to previous message
Eclipse UserFriend
Originally posted by: prlists.yahoo.com

Thanks, but I know this method, it doesn't help since the editor passed to
it (by editorID) has to be associated to the given extension, this just sets
the *default* editor.
Actually it also says so in the API documentation.

I need the step before this one - setting up the association.


Any other ideas?

Lior


"Pascal Rapicault" <pascal_rapicault@yahoo.fr> wrote in message
news:b8hvnn$s23$1@rogue.oti.com...
> I never tried that but the method
>
> public void setDefaultEditor(String fileNameOrExtension,String
editorId)
>
> on
>
> IEditorRegistry should do it.
>
> PaScaL
>
> "Lior" <prlists@yahoo.com> a
Previous Topic:Naming the Eclipse Application Framework
Next Topic:Console size
Goto Forum:
  


Current Time: Fri Jul 12 22:28:33 GMT 2024

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

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

Back to the top