| Summary: | [ui]Catalog hyperlink detector quite confusing | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Jesper Moller <jesper> | ||||||||||
| Component: | wst.xml | Assignee: | Nick Sandonato <nsand.dev> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | itewksbu, nsand.dev | ||||||||||
| Version: | 3.2 | ||||||||||||
| Target Milestone: | 3.3 M6 | ||||||||||||
| Hardware: | All | ||||||||||||
| OS: | All | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Jesper Moller
Regarding link 3, I've posted a bugzilla for this as Bug 298364. Regarding link 1, I've commented in bug 271968. Created attachment 161874 [details]
String Patch
Changes string from:
Open ''{0}''
to
Open ''{0}'' in XML Editor
Though small, it's a modified string. We'll have to wait. I also don't think we should explicitly state "XML editor", for example, the .xsd would be opened in the Schema editor. (In reply to comment #5) > I also don't think we should explicitly state "XML editor", for example, the > .xsd would be opened in the Schema editor. Actually, the catalog hyperlink code is also a bit imcomplete at the moment. IIRC, it doesn't correctly work with rewrite and suffix entries. By platform API we can get the name of the XSD Editor class, InternalXSDMultiPageEditor but the user might expect a commonly used name for the editor in simple language. (In reply to comment #7) > By platform API we can get the name of the XSD Editor class, > InternalXSDMultiPageEditor but the user might expect a commonly used name for > the editor in simple language. org.eclipse.ui.IEditorDescriptor#getLabel() returns soemthing with InternalXSDMultiPageEditor? label of EditorDescritor gives the proper name, but when we use org.eclipse.ui.ide.IDE.getEditorDescriptor(IFile) for xsd file, we get XML Editor instead of XSD Editor. Created attachment 185754 [details]
Patch to show the name of Editor for Catalog url
DefaultEditor as XSD could not be found in this scenario as "EditorProperty" for these files in jar could not be found. Using the getEditor method of IDE to show the name for Open with as being used while opening. But this opens in XML Editor.
Created attachment 189826 [details]
patch
As mentioned by Sarika, XSD files were showing XML Editor in their text. This patch should resolve this as well as making it more robust for the various types of hyperlinks.
Code checked in. |