Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337840 - Type link of restricted type should be enabled
Summary: Type link of restricted type should be enabled
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WTP Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitar Tenev CLA
QA Contact: Dimitar Tenev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-22 09:37 EST by Stanislav Nichev CLA
Modified: 2021-11-18 16:19 EST (History)
0 users

See Also:


Attachments
reproduce data (3.86 KB, application/x-zip-compressed)
2011-02-22 09:37 EST, Stanislav Nichev CLA
no flags Details
proposed patch (6.24 KB, patch)
2011-06-19 10:02 EDT, Stanislav Nichev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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