Bug 251721 - [Properties] Provide an Advanced tab for simple types
Summary: [Properties] Provide an Advanced tab for simple types
Status: CLOSED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsd (show other bugs)
Version: 3.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Steven Hung CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard: EaseOfUse
Keywords: contributed, noteworthy
Depends on:
Blocks: 251557
  Show dependency tree
 
Reported: 2008-10-22 11:11 EDT by Valentin Baciu CLA
Modified: 2009-01-06 13:05 EST (History)
1 user (show)

See Also:


Attachments
Patch (6.73 KB, patch)
2008-10-24 10:00 EDT, Steven Hung CLA
valentinbaciu: iplog+
Details | Diff
Refined Patch (6.04 KB, patch)
2008-10-29 13:34 EDT, Steven Hung CLA
valentinbaciu: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Valentin Baciu CLA 2008-10-22 11:11:53 EDT
In order to provide complete simple type editing support through the properties view we should provide an advanced tab. This tab will allow editing of advanced attributes like final and perhaps id.

Alternatively, we could consider adding these to the general tab.
Comment 1 Steven Hung CLA 2008-10-24 10:00:58 EDT
Created attachment 116051 [details]
Patch

A new advanced tab was created for the simpleType for the final attribute.  The advanced tab was used due to consistency.  Other components which have the final attribute use the advanced tab for modifying the final attribute.

Id was not included, since this change would result in the need for Id to be added in many other components for consistency.  This global change should be addressed in a separate bug in the future.
Comment 2 Steven Hung CLA 2008-10-29 13:34:52 EDT
Created attachment 116447 [details]
Refined Patch

Refinements to previous patch:
- corrected copyright header
- XSDSimpleTypeAdvancedSection extends AbstractSection, since refactoring is not required
- removed relayout(), since method is unused
Comment 3 Keith Chong CLA 2008-10-29 14:34:18 EDT
Patch committed for 3.1M3.
Comment 4 Valentin Baciu CLA 2008-11-04 11:11:25 EST
Verified with I-3.1-20081031084005.

Thanks Steven, while the patch is good in that it is consistent with how other similar properties are handled (final for elements, finalDefault, block default, etc) I don't think that the drop down widged is the most appropriate for the task. Using the combo only allows the user to pick one choice instead of what the schema specification allows which is one of #all | list of (list | union | restriction). Try typing "list union" as the value for the final attribute and see how the widget in the advanced tab behaves.

In this case it seems we've again picked simplicity over completness.

I think that for the future we probably need to think this through, pick the right UI widget for the task and make changes consistently. For example the UI for this could be a combination of two radio buttons and three checkboxes or something like that. Or at least a combo with the right combinations?


Comment 5 Valentin Baciu CLA 2008-12-04 13:15:13 EST
Closing. We'll open other bugs for additional changes.