Community
Participate
Working Groups
The XSD design editor allows a user to right click in the Directives area and select Add Include. After the include is added it states "(No Location Specified)". There is no way (that I can find) to add the location in the design or outline views. I have to open the properties view to change this. Adding an include (or import) is a fairly common practice that is not very useful if a schema location cannot be specified. I don't think it's good practice for the editor to force a user to open the properties view (which in the Java perspective they currently have to do from Window->Show View->Other...->General->Properties) just to set the schema location (and namespace) of includes (and imports).
That's why we added the action Show Properties in its popup menu. ;-) However, this is a valid point.
Lawrence, given that there is a 'Show Properties' action available from the context menu is this still a concern? If so can you suggest an alternative UI approach? I'm trying to understand if you'd like a dialog to pop up on creation or have improved 'direct editing' support once the import or include is added.
Given that the XSD editor assists users in creating valid and useful XSD documents it seems to me that the editor isn't providing a useful service by creating empty import and include elements. I seem to recall that there was a dialog that popup up when the user selected to add an import/include that allowed the user to select the document from the workspace or specify a resource themselves. I'm not saying a dialog is necessarily the best approach but I am looking for some assistance from the editor in creating a useful import/include statement.
Marking this as an enhancement.
See also bug 229264.