XML Syntax Coloring on files w/o DTD [message #87193] |
Fri, 25 March 2005 04:52  |
Eclipse User |
|
|
|
Originally posted by: rdenis.ad.skynet.be
Hi,
I've installed M3 on Eclipse M5 and I cannot see syntax coloring on some
XML files.
With M2, there was a bug to open some XML files like project.xml and it
works now.
But it seems that syntax coloring and structured file editor doesn't
work with XML files without DTD or schema, like Apache Maven
configuration files (maven.xml or project.xml).
I did not disable 'Use Inferred grammar in absence of DTD/XML Schema'
but, apparently, this inference does not work?
Am I doing something wrong?
(for example, hibernate configuration file hibernate.cfg.xml shows
properly without addition of any third-party plugin)
|
|
|
|
|
|
Re: XML Syntax Coloring on files w/o DTD [message #87565 is a reply to message #87474] |
Sun, 27 March 2005 13:13   |
Eclipse User |
|
|
|
Originally posted by: rdenis.ad.skynet.be
Hi,
The error I can see in the error log is:
---
StructuredTextEditor being used without StructuredDocument
---
Document implementation: class
org.eclipse.ant.internal.ui.editor.text.PartiallySynchronize dDocument
---
Input Name: project.xml
---
So, if I understand well, I must forward the problem to the Platform team?
Do you know if there should be a way to bypass the ant component?
I use no ant scripts anymore...
Thanks a lot,
Renaud
David Williams a écrit :
> On Fri, 25 Mar 2005 10:52:48 +0100, Renaud Denis <rdenis.ad@skynet.be>
> wrote:
>
>
>>
>> Am I doing something wrong?
>>
>
> I think with M3, there is still some "conflicts" if the xml file contains
> a <project> tag. If this is the case, there should a message in the log to
> the effect of "info: structuredEditor being used without
> structuredDocument"
> and the type of document will be listed (usually 'ant' related).
>
> If this is the case, you might suggest to the Eclipse ant component they
> are
> "over defining" the ant content type and "stealing" an extremely popular
> root tag.
>
|
|
|
|
Re: XML Syntax Coloring on files w/o DTD [message #87656 is a reply to message #87575] |
Mon, 28 March 2005 04:35  |
Eclipse User |
|
|
|
Originally posted by: rdenis.ad.skynet.be
Thanks a lot!
No way to open some <project/> file with XML Editor.
IMHO this bug is really critical since Maven will clearly "rules" over
Ant in a short future ;) Despite its actual imperfections.
Why would wtp team work hard to give a flexible project structure on the
j2ee projects if even a simple POM descriptor cannot be edited correctly...
It would be simpler if we could choose between Ant Editor or XML editor
as usually with 'Open As', but actually it seems to be NO way to bypass
Ant Editor.
Thanks again for your help.
David Williams a écrit :
> On Sun, 27 Mar 2005 20:13:16 +0200, Renaud Denis <rdenis.ad@skynet.be>
> wrote:
>
>> So, if I understand well, I must forward the problem to the Platform
>> team?
>> Do you know if there should be a way to bypass the ant component?
>> I use no ant scripts anymore...
>>
>
>
> I've opened bug
> 89195, ant content type over defined for <project> tag
> see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=89195
>
> I've attached some of the above newsgroup exchange, but feel free
> to add your voice/suggestions to that bug.
|
|
|
Powered by
FUDForum. Page generated in 0.04457 seconds