[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Problem with XML plugin example

I have Eclipse 3.1.1 installed on Windows 2000.  If I do the following
steps:

-    Open Eclipse with a new workspace
-    File-> New-> Project ... -> Plug-in Project -> Next
-    Set Project name to "TestXML" -> Next -> Next
-    Plug-in with an Editor -> Next
-    Change File Extension from "xml" to "xyz" -> Finish
-    Outside of Eclipse, create a file named "abc.xyz", with content "<!-- 
Test -->"
-    Run -> Run ...
-    New (to set new configuration) -> Run
-    In the Eclipse that starts, File -> Open File ... and select the
abc.xyz file.

Instead of displaying the text of the file, there is a blue line and under
it is the single word "ERROR".

In trying to track this down, it appears to me that in
XMLDocumentProvider.java the document returned by
"super.createDocument(element)" is null.

I don't understand what is happening, because this was working earlier.

I assume I've done something to my Eclipse installation that is causing the
problem, but I don't know what it is.

I did recently upgrade to Java 5.0.  I would guess that should not have
anything to do with it, but is that a possible reason?

Any suggestions as to how I can fix this problem?  I will try going back to
Java 1.4 and reinstalling Eclipse and testing again, but I thought I would
ask in case this is a known problem or I've made some silly mistake.

Thanks.