Bug 254932 - Add properties sheet for enumeration
Summary: Add properties sheet for enumeration
Status: CLOSED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsd (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: Steven Hung CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords: noteworthy
Depends on: 256938
Blocks:
  Show dependency tree
 
Reported: 2008-11-11 13:38 EST by Keith Chong CLA
Modified: 2008-12-16 16:27 EST (History)
2 users (show)

See Also:


Attachments
Patch (8.81 KB, patch)
2008-11-11 14:01 EST, Steven Hung CLA
keith.chong.ca: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Chong CLA 2008-11-11 13:38:01 EST
Add a General tab section with a field value.

There are two parts:  

1) The UI piece for the properties sheets
2) The adapters piece.   We need to add the adapter for enumerations.
Comment 1 Steven Hung CLA 2008-11-11 14:01:44 EST
Created attachment 117580 [details]
Patch

This patch contains the first part of this bug.

Notes:
1) Instead of creating a new command like UpdateXSDEnumerationValue, I reused the command SetXSDFacetValueCommand
2) The help system uses:
PlatformUI.getWorkbench().getHelpSystem().setHelp(valueText,
  XSDEditorCSHelpIds.GENERAL_TAB__SIMPLE_TYPE__NAME);

Since enumeration can occur for both simpleType and simpleContent, is this help identifier okay?
Comment 2 Keith Chong CLA 2008-11-28 15:02:52 EST
Yes, we'll use that one for now.

Thanks for the patch.  The fix has been released for 3.1 M4.

Part 2 is addressed by bug 256938.

Comment 3 Keith Chong CLA 2008-12-16 16:27:30 EST
Verified in wtp-sdk-S-3.1M4-20081215095735. Closing bug.