Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » 0.7.1: How to make files with extent not ".xml" use XML editor?
0.7.1: How to make files with extent not ".xml" use XML editor? [message #148643] Wed, 23 November 2005 18:38 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
I've installed WTP 0.7.1 on Eclipse 3.1.1.

When I view XML files, it does "all the right things", giving me the
schema in the Outline view, colorizing the text, and other things. It
apparently knows the file is an XML file by its file extent.

I have another file that is an XML file, but its extent is not ".xml".
How can I make all of the XML features work with this file? I thought it
might be in the "File Assocations" section of the Preferences, but I think
perhaps not. There wasn't even an entry for ".xml" there, and when I
added my new extent and associated it with the "XML Editor", it only
halfway worked. It now shows the XML file icon in the package view, but
it doesn't show the schema in the Outline view, and the Design tab says
"The document is empty. Right mouse click to insert content".
Re: 0.7.1: How to make files with extent not ".xml" use XML editor? [message #148668 is a reply to message #148643] Wed, 23 November 2005 19:12 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4491
Registered: July 2009
Senior Member

David Karr wrote:
> I've installed WTP 0.7.1 on Eclipse 3.1.1.
>
> When I view XML files, it does "all the right things", giving me the
> schema in the Outline view, colorizing the text, and other things. It
> apparently knows the file is an XML file by its file extent.
>
> I have another file that is an XML file, but its extent is not ".xml".
> How can I make all of the XML features work with this file? I thought
> it might be in the "File Assocations" section of the Preferences, but I
> think perhaps not. There wasn't even an entry for ".xml" there, and
> when I added my new extent and associated it with the "XML Editor", it
> only halfway worked. It now shows the XML file icon in the package
> view, but it doesn't show the schema in the Outline view, and the Design
> tab says "The document is empty. Right mouse click to insert content".

You just need to add the filename extension to those listed as "XML"
in the Content Type preferences. The editor is associated to the
XML file Content Type, not its filename extension specifically. The
Content Type preference can be used by more than just
editors--validation will eventually use it as well giving you
Problem reporting as well as editor support in one step.

--
- Nitin


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: 0.7.1: How to make files with extent not ".xml" use XML editor? [message #149100 is a reply to message #148668] Fri, 25 November 2005 10:16 Go to previous message
Eclipse UserFriend
Originally posted by: please.ask.me

Nitin Dahyabhai <nitind@us.ibm.com> wrote in news:dm2eum$je2$1
@news.eclipse.org:

> You just need to add the filename extension to those listed as "XML"
> in the Content Type preferences. The editor is associated to the
> XML file Content Type, not its filename extension specifically. The
> Content Type preference can be used by more than just
> editors--validation will eventually use it as well giving you
> Problem reporting as well as editor support in one step.
>

wow, that's nice to know. thanks

ex
Previous Topic:impossible to generate a soap:header part
Next Topic:Publishing web content
Goto Forum:
  


Current Time: Mon Sep 23 13:00:32 GMT 2024

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

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

Back to the top