Re: Copy, paste, import ?

"Anders W. Tell" <[email protected]> Sun, 13 Jul 2003 13:47:13 +0200
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Organization Financial Toolsmiths AB
Message-ID <[email protected]>
What do you think about making copy,paste,import and undo part of core 
MDR distribution ?

/anders

Martin Matula wrote:

> If you want this to work independently of the metamodel, you will need 
> to use reflective API and explore metaobjects of the objects that are 
> copied, read values of all the attributes, references and recreate 
> them in the target model. Eventually you could use XMI reader and XMI 
> writer if you want to copy whole models (reader can be passed to 
> writer as ContentHandler, which will cause that writer will read data 
> from one extent and send events to reader, which will create those 
> data in another extent).
> Martin
>
> Anders W. Tell wrote:
>
>> Hi all,
>>
>> Before I go on holiday Im trowing away yet another question.
>>
>> How simple is it to create functionality to support copy, paste and 
>> import of JMI/MOF artifact  from one MDR model to another MDR based 
>> model?
>>
>>
>> cheers
>> /anders
>>
>>
>
>
>
>