Home » Modeling » GMF (Graphical Modeling Framework) » generalization
| |
Re: generalization [message #50374 is a reply to message #49826] |
Mon, 18 September 2006 17:08   |
Eclipse User |
|
|
|
Thank you for your answers. But i still can't find 'Invariant
Prefix' property anywhere to get sources generated properly... could you
please give some more hints where to look for it?
wbr,eugen.
В письме Mon, 18 Sep 2006 08:13:49 -0400, Kenn Hussey
написал:
> Eugen,
>
> I looks like your editor is using the wrong resource implementation to
> serialize your model - the resource implemenation in UML2 makes use of
> UUIDs, but it appears that your resource does not.
>
> Kenn
>
> "Бушуев" <jnbu@yahoo.com> wrote in message
> news:pan.2006.09.17.22.28.04.201811@yahoo.com...
>> Hi.
>> Having created simple gmf editor for UML.ecore i've got trouble
>> setting generalizations. For two classes A and B where A extends B my
>> editor generates following uml2 file
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <uml:Package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML">
>> <packagedElement xsi:type="uml:Class" name="A">
>> <generalization general="#//B"/>
>> </packagedElement>
>> <packagedElement xsi:type="uml:Class" name="B"/>
>> </uml:Package>
>>
>> And then UML Model editor fails to open it with this exception:
>>
>> org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved
>> reference '//B'. (platform:/resource/test1/test1.uml, 4, 37)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardRefer ences(XMLHandler.java:1001)
>> at
>> org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHan dler.java:1066)
>>
>> From the perspective of my editor this looks like generalization is lost
>> when diagram is being closed/opened.
>>
>> Domain meta information properties of the corresponding Link mapping in my
>> gmfmap file are:
>>
>> Containment feauture: EReference generalization
>> Element: EClass Generalization
>> Source Feature: not set
>> Target Feature: EReference general
>>
>> Any help is highly appreciated as well as some explanation of what all
>> those Source/Target Features and their values
>> (general/source/target/specific, etc.) are.
>>
>>
>> wbr, eugen.
|
|
| |
Goto Forum:
Current Time: Sat May 03 09:23:00 EDT 2025
Powered by FUDForum. Page generated in 0.07770 seconds
|