[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.m2m] Re: [ATL] how to get the parent's name in UML
|
- From: unique <hr_mi@xxxxxxx>
- Date: Sun, 01 Jun 2008 16:58:26 +0800
- Newsgroups: eclipse.modeling.m2m
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.14 (Windows/20071210)
urs zeidler 写道:
> unique schrieb:
>> Hi everyone,
>>
>> I want to judge if a class is in the compsite package,for example :
>>
>> <packagedElement xmi:type="uml:Package" name="Composite Package">
>> <packagedElement xmi:type="uml:Class" name="onlinesale"/>
>> </packagedElement>
>>
>>
>> now in another package named "class package" it also has a class named
>> "onlinesale",I want to judge the class named "onlinesale" belonging to
>> Package named "Compsite Package".
>> How should I do it ?
>>
>> Thanks very much.
>> Best for wishes!
> you can get the container of an element with refImmediateComposite(),
> for the class it would the containing package.
>
> greetings, urs.
Hi urs zeidler,
Would you please write an example ??
I don't how to use it .
Thanks !