Bug 143712 - [Graphical Editor] No way to specify include or import location in the XSD design editor
Summary: [Graphical Editor] No way to specify include or import location in the XSD de...
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsd (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: wst.xsd-triaged CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard: reviewed_1.5
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-05-25 10:09 EDT by Lawrence Mandel CLA
Modified: 2010-09-16 14:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lawrence Mandel CLA 2006-05-25 10:09:46 EDT
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).
Comment 1 Keith Chong CLA 2006-06-01 12:12:00 EDT
That's why we added the action Show Properties in its popup menu.  ;-)

However, this is a valid point.
Comment 2 Craig Salter CLA 2006-06-07 01:30:27 EDT
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.
Comment 3 Lawrence Mandel CLA 2006-06-07 02:27:47 EDT
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.
Comment 4 Keith Chong CLA 2007-09-17 19:17:49 EDT
Marking this as an enhancement.
Comment 5 Valentin Baciu CLA 2008-10-21 13:16:14 EDT
See also bug 229264.