How to retrieve reference data by giving a class [message #474875] |
Thu, 02 August 2007 20:33  |
Eclipse User |
|
|
|
Hi All:
In UML model, by giving user defined DataType Class, is there a way to
know where the datatype class was referenced?
For example:
I have a defined dataype class: TypeA, and it was used in following class
in the model:
ClassA.attribute1::TypeA
ClassB.attribute2::TypeA
Is there a simple approach that I can retrieve the list of
ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
Currently, I'm using emf.query to perform the check, but performance is
poor...
Thanks in advance.
JD
|
|
|
|
Re: How to retrieve reference data by giving a class [message #474985 is a reply to message #474879] |
Mon, 06 August 2007 15:24  |
Eclipse User |
|
|
|
Thanks Ed. I'm keep leaning everyday!
Ed Merks wrote:
> JD,
> I think you can determine this efficiently from
> CacheAdapter.INSTANCE.getInverseReferences but note that this will only
> find references from models that are loaded into memory...
> JD wrote:
>> Hi All:
>> In UML model, by giving user defined DataType Class, is there a way
>> to know where the datatype class was referenced?
>> For example: I have a defined dataype class: TypeA, and it was used in
>> following class in the model:
>> ClassA.attribute1::TypeA
>> ClassB.attribute2::TypeA
>>
>> Is there a simple approach that I can retrieve the list of
>> ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
>>
>> Currently, I'm using emf.query to perform the check, but performance
>> is poor...
>>
>> Thanks in advance.
>>
>> JD
>>
|
|
|
Re: How to retrieve reference data by giving a class [message #624255 is a reply to message #474875] |
Fri, 03 August 2007 07:47  |
Eclipse User |
|
|
|
JD,
I think you can determine this efficiently from
CacheAdapter.INSTANCE.getInverseReferences but note that this will only
find references from models that are loaded into memory...
JD wrote:
> Hi All:
> In UML model, by giving user defined DataType Class, is there a way
> to know where the datatype class was referenced?
> For example: I have a defined dataype class: TypeA, and it was used in
> following class in the model:
> ClassA.attribute1::TypeA
> ClassB.attribute2::TypeA
>
> Is there a simple approach that I can retrieve the list of
> ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
>
> Currently, I'm using emf.query to perform the check, but performance
> is poor...
>
> Thanks in advance.
>
> JD
>
|
|
|
Re: How to retrieve reference data by giving a class [message #624260 is a reply to message #474879] |
Mon, 06 August 2007 15:24  |
Eclipse User |
|
|
|
Thanks Ed. I'm keep leaning everyday!
Ed Merks wrote:
> JD,
> I think you can determine this efficiently from
> CacheAdapter.INSTANCE.getInverseReferences but note that this will only
> find references from models that are loaded into memory...
> JD wrote:
>> Hi All:
>> In UML model, by giving user defined DataType Class, is there a way
>> to know where the datatype class was referenced?
>> For example: I have a defined dataype class: TypeA, and it was used in
>> following class in the model:
>> ClassA.attribute1::TypeA
>> ClassB.attribute2::TypeA
>>
>> Is there a simple approach that I can retrieve the list of
>> ClassA.attribute1 and ClassB.attribute2 that TypeA was referenced?
>>
>> Currently, I'm using emf.query to perform the check, but performance
>> is poor...
>>
>> Thanks in advance.
>>
>> JD
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03966 seconds