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

Bug 337840

Summary: Type link of restricted type should be enabled
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
reproduce data
none
proposed patch none

Description Stanislav Nichev CLA 2011-02-22 09:37:31 EST
Build Identifier: 

Hi Colleagues,                                                          
                                                                        
In SIE 731 the following scenario fails:                                
                                                                        
Prerequisites:                                                          
1) Copy the attached documents into the workspace                       
2) Open "labels_all.xsd"                                                
                                                                        
TC #1:                                                                  
Go to "ClassicGlobalElement" / "Attribute1" - same issue with restricted
child element                                                           
                                                                        
TC #2:                                                                  
Go to "GlobalElementWithComplexContent"                                 
                                                                        
TC #3:                                                                  
Go to "GlobalElementWithSimpleContent"                                  
                                                                        
In all the above cases the link should be enabled and it should be      
labeled base type.                                                      
                                                                        
TC #4:                                                                  
Go to "ComplexTypeComplexContent" / "GlobalElementWithSimpleContent"    
Type link should be enabled.                                            
                                                                        
Regards,                                                                
Stanislav                                                               


Reproducible: Always
Comment 1 Stanislav Nichev CLA 2011-02-22 09:37:54 EST
Created attachment 189496 [details]
reproduce data
Comment 2 Stanislav Nichev CLA 2011-06-19 10:02:21 EDT
Created attachment 198231 [details]
proposed patch

Hi Colleagues,

I've prepared a fix for this issue. The type link is no longer disabled and is correcly selecting the refered types (from the current document. Please see bugzilla https://bugs.eclipse.org/bugs/show_bug.cgi?id=349767)

I did not develop any new tests since the fix is only two or three lines of code. The existing tests catched an issue in my fist fix, so I'm guessing they shold be  enough.

Regards,
Stanislav