Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316939 - [Palette] Exception if the xml definition file is indented
Summary: [Palette] Exception if the xml definition file is indented
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-15 12:08 EDT by Mathieu Velten CLA
Modified: 2010-11-09 16:59 EST (History)
1 user (show)

See Also:
sebastien.gerard: iplog-


Attachments
patch v1 (2.79 KB, patch)
2010-06-15 12:09 EDT, Mathieu Velten CLA
sebastien.gerard: iplog+
Details | Diff

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