Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to make a extension to assign the xml editor to a concrete file
how to make a extension to assign the xml editor to a concrete file [message #199405] Sun, 22 February 2004 15:34 Go to next message
Marcos López is currently offline Marcos López
Messages: 75
Registered: July 2009
Member
hi

In my plugin i want to treat all the *.GWSDL files as if they were XML.
But i don't want to do it by Window->Preferences->Appearence->File
Associations. I want to do it programmaticaly with an extension.

Any hint of how can i do it?

thanks
Re: how to make a extension to assign the xml editor to a concrete file [message #199467 is a reply to message #199405] Sun, 22 February 2004 18:51 Go to previous messageGo to next message
David Williams is currently offline David Williams
Messages: 696
Registered: July 2009
Senior Member
On Sun, 22 Feb 2004 20:34:42 +0000 (UTC), Marcos Lopez
<marcosl@euskalnet.net> wrote:

>
> hi
>
> In my plugin i want to treat all the *.GWSDL files as if they were XML.
> But i don't want to do it by Window->Preferences->Appearence->File
> Associations. I want to do it programmaticaly with an extension.
>
> Any hint of how can i do it?
>
> thanks
>


I don't think there currently is any way, but your post reminded me to put
a contribution in bugzilla that is related to this requirment. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=52784. It also points to some
of the other related bugs and work going on in this area.
Re: how to make a extension to assign the xml editor to a concrete file [message #199509 is a reply to message #199405] Sun, 22 February 2004 22:32 Go to previous messageGo to next message
Eclipse User
Originally posted by: smesh.openrules.com

FileEditorMapping.addEditor(EditorDescriptor);

- for 'syntactic' mapping
- internal - use it by your own risk :)

Sam Mesh - http://openrules.com
Life is very short, and there's no time,
For coding and testing, my friend.
Re: how to make a extension to assign the xml editor to a concrete file [message #200266 is a reply to message #199467] Mon, 23 February 2004 16:48 Go to previous messageGo to next message
Marcos López is currently offline Marcos López
Messages: 75
Registered: July 2009
Member
ummm, maybe until is supported i could use an existent editor, for
example, the one used for the feature manifest. How could i use this
programmaticaly?

> I don't think there currently is any way, but your post reminded me to put
> a contribution in bugzilla that is related to this requirment. See
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=52784. It also points to some
> of the other related bugs and work going on in this area.
Re: how to make a extension to assign the xml editor to a concrete file [message #200287 is a reply to message #199509] Mon, 23 February 2004 17:33 Go to previous message
Marcos López is currently offline Marcos López
Messages: 75
Registered: July 2009
Member
Sorry, but looking at the code of the class FileEditorMapping i can't see
how it works. I suppose that i have to create a EditorDescriptor and tell
it that the editor i want is the one of XML but i don't know how to do it
:-(

I also suppose that i have to create a FileEditorMapping instance and tell
it that the extension i want is .GWSDL.

Am i right more or less?

Sam Mesh wrote:

> FileEditorMapping.addEditor(EditorDescriptor);

> - for 'syntactic' mapping
> - internal - use it by your own risk :)

> Sam Mesh - http://openrules.com
> Life is very short, and there's no time,
> For coding and testing, my friend.
Previous Topic:embedding Swing panel in SWT (3.0)
Next Topic:importing existing (non eclipse) project?
Goto Forum:
  


Current Time: Sat Aug 23 07:37:02 EDT 2014

Powered by FUDForum. Page generated in 0.02314 seconds