Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XML Editor content types and 'complex' extensions
XML Editor content types and 'complex' extensions [message #216670] Wed, 02 July 2008 23:53 Go to next message
Eugene Marcotte is currently offline Eugene MarcotteFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,

I'm not sure if this is the right place for XML editor stuff or not, I
seem to recall it being part of webtools.

I'm using Ganymede, on Fedora Core 9, 64 bit.

I was just trying to edit a file using the XML editor, and of course this
file doesn't end with .xml. The dialog that came up told me to add the
content type for this file, so I did. I added "*.jnlp.in" under xml and I
also added *.jnlp while I was there.

I went back to the file, and tried again. It still wouldn't open, same
exact message comes up. If I rename the file to end with just .jnlp, it
works file and opens up in the XML editor. If I add Test.jnlp.in (the full
name of the file) to the content types, tried again, and it opened right
up. I just cannot have a 'complex' file extension it seems.

So, I guess my question is: is there a way to get this to work?
Alternatively, is there any way to simply turn off content type checking?
I mean, does the XML editor really care what the extension of my file is
so long as it can be parsed as XML? I don't mind having to go to a file
and say "Open with XML editor" each time, if it will actually work.

Thanks a bunch,
Eugene
Re: XML Editor content types and 'complex' extensions [message #216708 is a reply to message #216670] Thu, 03 July 2008 06:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Eugene Marcotte wrote:
> So, I guess my question is: is there a way to get this to work?
You might need to ask that one in eclipse.platform.

> Alternatively, is there any way to simply turn off content type
> checking? I mean, does the XML editor really care what the extension of
> my file is so long as it can be parsed as XML? I don't mind having to go
> to a file and say "Open with XML editor" each time, if it will actually
> work.

It's an issue we've wrestled with and debated over in the past, but
yes, it really has to care. The editor relies on implementations of
interfaces that can only be registered against content types and
filenames known to us at development time, in this case XML files,
and the numerous filename extensions we can confidently claim
responsibility for. Anything more has to rely on user preferences.
At least until someone thinks of something better.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: XML Editor content types and 'complex' extensions [message #216715 is a reply to message #216708] Thu, 03 July 2008 10:38 Go to previous message
Eugene Marcotte is currently offline Eugene MarcotteFriend
Messages: 5
Registered: July 2009
Junior Member
Ok. I'll see if they have any advice.

Thanks for responding,
Eugene
Previous Topic:*.jspx auto-format in Eclipse 3.2
Next Topic:IWAB0380E Error
Goto Forum:
  


Current Time: Fri Mar 29 00:41:26 GMT 2024

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

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

Back to the top