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

Bug 316939

Summary: [Palette] Exception if the xml definition file is indented
Product: [Modeling] Papyrus Reporter: Mathieu Velten <mathieu.velten>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: rschnekenburger
Version: unspecifiedFlags: sebastien.gerard: iplog-
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch v1 sebastien.gerard: iplog+

Description Mathieu Velten CLA 2010-06-15 12:08:35 EDT
Build Identifier: 

this is a problem with the parsing code : 
the following piece of code waits for a specific node as first node but receive a text "node" with text like "\t\t\t\n".

Node stereotypesToApplyNode = configurationNode.getFirstChild();
if(!IPapyrusPaletteConstant.STEREOTYPES_TO_APPLY.equals(stereotypesToApplyNode.getLocalName())) {
//the first node must be STEREOTYPE_TO_APPLY
return;
}

patch attached.

Reproducible: Always
Comment 1 Mathieu Velten CLA 2010-06-15 12:09:21 EDT
Created attachment 171961 [details]
patch v1
Comment 2 Mathieu Velten CLA 2010-06-15 12:09:30 EDT
patch attached.
Comment 3 Remi Schnekenburger CLA 2010-06-16 12:27:35 EDT
applied in r1949.
Thanks!
Comment 4 Remi Schnekenburger CLA 2010-07-05 20:24:13 EDT
(In reply to comment #3)
> applied in r1949.
> Thanks!
Closing bug