| Summary: | [formatting] Cannot auto-format XML document on Ubuntu | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Karl Ostmo <kostmo> |
| Component: | wst.xml | Assignee: | wst.xml <wst.xml-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | normal | ||
| Priority: | P3 | CC: | jesper.eskilson, nsand.dev, remy.suen |
| Version: | 3.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Karl Ostmo
I have verified that the "Eclipse XML Editors and Tools" plugin (version 3.3.1) is already installed. (In reply to comment #1) > I have verified that the "Eclipse XML Editors and Tools" plugin (version 3.3.1) > is already installed. Have you also verified that you're opening the file with the XML Editor (using the file's Open With context menu)? I was editing a "plugin.xml" file from an Eclipse plugin project. As it turns out, the default editor is the "Plug-in Manifest Editor", not the "XML Editor". When i right-click -> Open with... on the plugin.xml file and select "XML Editor", I get a dialog box that says "Unsupported content type in editor [...]". If I then dismiss that dialog, the "plugin.xml" file is opened in an editor without syntax highlighting and CTRL+SHIFT+F doesn't work. (In reply to comment #3) > I was editing a "plugin.xml" file from an Eclipse plugin project. As it turns > out, the default editor is the "Plug-in Manifest Editor", not the "XML Editor". > > When i right-click -> Open with... on the plugin.xml file and select "XML > Editor", I get a dialog box that says "Unsupported content type in editor > [...]". If I then dismiss that dialog, the "plugin.xml" file is opened in an > editor without syntax highlighting and CTRL+SHIFT+F doesn't work. Hi Karl, Unfortunately, the plugin.xml has its own content type, and the XML editor does not work with that content type. There is hope that we'll be able to force loading with a particular content model in Bug 320996. *** This bug has been marked as a duplicate of bug 320996 *** What's the latest status of this? I'm sorely missing formatting functionality in the plugin.xml manifest editor, and since the XML editor cannot open plugin.xml files, I'm stuck. (In reply to comment #5) > What's the latest status of this? I'm sorely missing formatting > functionality in the plugin.xml manifest editor, and since the XML editor > cannot open plugin.xml files, I'm stuck. As I said in bug 320996 comment 12, it's a matter of passing all of the tests with our implementation, and we're still not there yet. As a workaround, you can copy the content into a file not named "plugin.xml", format it, and copy it back. |