Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Opening files with a non standard XML extension fails
Opening files with a non standard XML extension fails [message #53036] Wed, 10 November 2004 08:15 Go to next message
Jos Dirksen is currently offline Jos DirksenFriend
Messages: 1
Registered: July 2009
Junior Member
Hi all,

First off it could be because I'm running on M3 (same problem occured on
M2)

I've got a small problem with opening xml files that don't have a usual
xml extension like .xml/.xslt/.xsd.
If I open a normal xml file like test.xml everything works. If I now
rename this file to test.xmap and open it with the same editor I get the
messsage:

"editor could not be initialized"

Nothing can be found in any of the log files.

Any ideas...

Jos
Re: Opening files with a non standard XML extension fails [message #53061 is a reply to message #53036] Wed, 10 November 2004 15:59 Go to previous message
Eclipse UserFriend
Originally posted by: amywu.us.DELETETHISPART.ibm.com

I believe it has something to do with the xml editor requiring an xml
content type. You can associate the xml content type to your special
extension by adding the following to any plugin.xml file:

<extension
point="org.eclipse.core.runtime.contentTypes">
<file-association
content-type="org.eclipse.core.runtime.xml"
file-extensions="aaa"/>
</extension>

This does sound like a bug though. I'd open a bug on web tools if there
isn't one already.

-amy

Jos Dirksen wrote:

> Hi all,

> First off it could be because I'm running on M3 (same problem occured on
> M2)

> I've got a small problem with opening xml files that don't have a usual
> xml extension like .xml/.xslt/.xsd.
> If I open a normal xml file like test.xml everything works. If I now
> rename this file to test.xmap and open it with the same editor I get the
> messsage:

> "editor could not be initialized"

> Nothing can be found in any of the log files.

> Any ideas...

> Jos
Previous Topic:XML editor encoding support
Next Topic:WebServices Create client fails
Goto Forum:
  


Current Time: Fri Dec 27 03:16:44 GMT 2024

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

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

Back to the top