Bug 192330 - [Schema][Editors] DTD approximation EMPTY when should be PCDATA
Summary: [Schema][Editors] DTD approximation EMPTY when should be PCDATA
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.4 M1   Edit
Assignee: Adam Archer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-06-13 00:55 EDT by Mike Pawlowski CLA
Modified: 2007-07-11 17:35 EDT (History)
1 user (show)

See Also:
mike.pawlowski: review+


Attachments
patch (959 bytes, patch)
2007-07-11 15:11 EDT, Adam Archer CLA
mike.pawlowski: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Pawlowski CLA 2007-06-13 00:55:33 EDT
Steps To Reproduce:

(1) Create a new extension point schema
(2) Switch to the "Definitions" page
(3) Create a new element
    -> DTD approximation is "(#PCDATA)" because the element defines no attributes, compositors or element references
(4) Add a new attribute to the new element
(5) Select the new element again
    -> DTD approximation is "EMPTY" because the element defines an attribute
(6) Remove the new attribute from the new element
(7) Select the new element again
    -> BUG:  DTD approximation is still "EMPTY"
    -> Should be "(#PCDATA)"

The DTD approximation for elements that define no attributes, compositors or element references should always be "(#PCDATA)".
Comment 1 Adam Archer CLA 2007-07-11 15:11:43 EDT
Created attachment 73583 [details]
patch
Comment 2 Mike Pawlowski CLA 2007-07-11 17:35:11 EDT
Comment on attachment 73583 [details]
patch

Tested well, Adam.  Thanks.
Comment 3 Mike Pawlowski CLA 2007-07-11 17:35:48 EDT
Patch released to HEAD.

Target:  3.4 M1