[Uml-devel] Problem with new XMI Loading - cannot find widget for id 29995

Achim Spangler Achim.Spangler at mnet-online.de
Fri Sep 5 02:22:04 UTC 2003


Hi,
I have a project file, which loads is handled correct with the last "stable" 
CVS version (-D 2003-08-28), but is rejected by the actual version.

Error Message of Umbrello:
--------------------------------
WARNING: AssociationWidget::loadFromXMI(): cannot find widget for id 29995
WARNING: failed umlview load on associations
WARNING: failed load on viewdata loadfromXMI
WARNING: failed load on diagrams
--------------------------------


A look at the xmi-file shows me, that this ident and some other with values 
between 29990...29999 are used very often. 

Some examples:
a) Sequence Diagram: rolea of connection between text note and graphic
                                 representation of a class

b) Sequence Diagram: roleb of message arrow between two lifelines of graphic
                                 representation of two classes

c) Sequence Diagram: localid of <diagram - start tag
---------------------------------
   <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" zoom="100" 
showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="1328" 
snapy="10" showatts="1" xmi.id="1457" documentation="" type="403" showops="1" 
showpackage="0" name="UC1GoCanAUS" localid="29995" showstereotype="0" 
showscope="1" snapcsgrid="0" font="Nimbus Sans l,12,-1,5,50,0,0,0,0,0" 
linecolor="#ff0000" canvasheight="1030" >
---------------------------------

d) Sequence Diagram: localid of <UML:ObjectWidget
---------------------------------
     <UML:ObjectWidget usesdiagramfillcolour="1" width="124" 
usesdiagramusefillcolour="1" x="1064" linecolour="none" y="53" 
instancename="" usesdiagramlinecolour="1" fillcolour="none" height="27" 
usefillcolor="1" length="927" isinstance="0" xmi.id="1109" decon="0" 
localid="29995" multipleinstance="0" drawasactor="0" font="Nimbus Sans 
l,12,-1,5,50,0,0,0,0,0" />
---------------------------------
--> THIS is the XMI-Definition of the class representation of example a)


There are some other examples of this type.

--> I think that the new XMI load mechanism doesn't handle the method of
     "localid" for <UML:ObjectWidget...> tags at the moment

Questions:
A) Is this deprecated, so that I should use some regex to replace this
    indirect mapping by direct mapping in my XMI-file
OR
B) Is this just some missing stuff, that is coming in the next couple of
    patches?


###################################################
Another Question:
Does the new codegeneration use something like the model->code mapping of 
xmi2code?
(usage of special comment tags in source to connect the XMI resources with 
generated elements)

These tags allow me to edit my sources in an external editor (e.g. kdevelop) 
without loosing any changes of function-bodies. 



Bye,
Achim




More information about the umbrello-devel mailing list