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

Bug 338189

Summary: Exception thrown selecting primitive xsd's
Product: z_Archived Reporter: Stanislav Nichev <stanislav.nichev>
Component: WTP IncubatorAssignee: Dimitar Donchev <dimitar.donchev>
Status: ASSIGNED --- QA Contact: Dimitar Tenev <dimitar.tenev>
Severity: normal    
Priority: P3 CC: dimitar.donchev
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
fix none

Description Stanislav Nichev CLA 2011-02-25 04:48:30 EST
Build Identifier: 

Hi,                                                                   
                                                                      
1. In NWDS, open any existing core datatype.                          
2. Change the classification of the core datatype to Free-style       
datatype.                                                             
3. Insert an element. Now try adding a base type to the datatype node.
4. Select any primitive XSD types in the datatype node. Exception is  
getting thrown.                                                       
5. After the exception, the user is not allowed to refer datatype/xsd 
even for element created.                                             
                                                                      
Note: Log attached.                                                   
                                                                      
Thanks,                                                               
Mahesh                                                                
                                                                      
    Memo                                                              
    24.02.2011 16:53:12      KeshavRao Veerapaneni                    
Hello Colleagues,                                                     
     There is a issue in SetBaseTypeCommand which is causing this     
problem. Please fix this issue. The log is attached with the CSN.     
                                                                      
Best Regards,                                                         
Keshav                                                                


Reproducible: Always
Comment 1 Stanislav Nichev CLA 2011-02-25 05:54:10 EST
Created attachment 189784 [details]
fix

Hi Colleagues,

Please do not use the SetBaseTypeCommand for setting the type of complex types. This is a dead code on our side - we use this command to set the basetype of simple types.

Use the SetStructureTypeBaseTypeCompositeCommand command for setting the type of complex types. This command handles the conversions from complex type simple/complex content to complex/simple content.

Regards,
Stanislav
Comment 2 Dimitar Donchev CLA 2011-02-25 06:22:37 EST
Patch is committed.
Dead code is to be investigated and optionally refactored/removed.
I leave the bugzilla in progres.

Best Regards
Dimitar