Community
Participate
Working Groups
Using Eclipse 3.3 M7. The Extension Point Schema Editor's Definition page has a bug where the Attribute Details fields "Extends" and "Implements" do not get refresh correctly. I observed the bug in following scenario: -- See the attached screen shot -- 1. Open my .exsd file in the Extension Point Schema Editor and turn to the Definition page. 2. Select an element that does NOT have its "Extends" and "Implements" fields set. In otherwords, the fields are empty. 3. Select an element that does have its "Extends" and "Implements" fields set. In other words, the fields are not empty. 4. Re-select the element that does NOT have its "Extends" and "Implements" fields set, and you'll see that they look set since the fields were not refreshed correctly when they have no value. These might not be the only cases.
Created attachment 66212 [details] Screen shot
Noam, replace every instance of the word 'element' with 'attribute' in comment 0, and you have got yourself a scenario. The Extends/Implements fields appear when the attribute type is set to 'java'
Created attachment 66582 [details] Patch for bug 185853. (Affects SchemaAttributeDetails.java) Currently, we check if the class and interface attribute exists. If it does not (as would be the case if the attribute is not a Java attribute, or it has no 'extends' or 'implements' values) then we simply did nothing. If one field has a value, we overwrite that field (except for the case in bug 143874) and do nothing to the other one. Instead of doing nothing to a field if there is no data with which to populate it, we now actually clear the field value.
I'll review the patch
Works well. Good job Noam. Patch applied to HEAD. Target: 3.3 RC1
Thank you Noam for the prompt fixing of this bug!