Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 338227

Summary: [Bugzilla] Error marker is not on the right place
Product: z_Archived Reporter: Stanislav Nichev <stanislav.nichev>
Component: WTP IncubatorAssignee: Dimitar Tenev <dimitar.tenev>
Status: NEW --- QA Contact: Dimitar Tenev <dimitar.tenev>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
screenshot
none
reproduce data
none
sample test project none

Description Stanislav Nichev CLA 2011-02-25 10:31:32 EST
Build Identifier: 

See the attached picture. The two global elements have one and the same  
name but in the details page the error maker is on the type field.       
I should be placed on the Name field.                                    
                                                                         
    Memo                                                                 
    12.07.2010 14:49:17      Stanislav Nichev                            
Hi Colleagues,                                                           
                                                                         
This cannot be fixed:                                                    
1) We do not receive error type "duplicate name". We only receive error  
on element - there is no way to determine where the error is unless we   
workaround the validation.                                               
2) There is also no way to get all the elements with duplicate names     
because of 1)                                                            
                                                                         
Bugzilla should be reported to the eclipse validation guys.              
                                                                         
Regards,                                                                 
Stanislav                                                                
                                                                         
    Memo                                                                 
    17.08.2010 15:09:29      Dimitar Donchev                             
The test project I've attached could be use as base to the JUnit for     
the bugzila.                                                             
                                                                         
CSN 0120031469 0001670198 2010 is marked as duplicate to this one.       
                                                                         
I've attached 2 XSD-s, see the error marker on the importing one.        
The problem with it is that the component for which the XSDDiagnostic is 
created is the importing XSDSchema, instead of : the XSD Import, the     
imported XSDSchema, the XSDElement declaration from the imported schema, 
the name attribute of the element                                        


Reproducible: Always
Comment 1 Stanislav Nichev CLA 2011-02-25 10:32:52 EST
Created attachment 189810 [details]
screenshot
Comment 2 Stanislav Nichev CLA 2011-02-25 10:33:37 EST
Created attachment 189811 [details]
reproduce data
Comment 3 Stanislav Nichev CLA 2011-02-25 10:34:10 EST
Created attachment 189812 [details]
sample test project