Re: Copy, paste, import ?
Martin Matula <[email protected]> Sun, 13 Jul 2003 15:22:22 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Well, I would be very happy to do that. But we do not have resources to implement it. If you are willing to do it yourself, I will be happy to grant you a developer role in MDR project. :) Martin Anders W. Tell wrote: > 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 >>> >>> >> >> >> >> > > >