Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emf-dev] How to Render XMI-Files with EMF/GMF in a standalone application

Siegried,

Please ask EMF-specific questions on the EMF newsgroup:

   news://news.eclipse.org/eclipse.tools.emf

In this case though, your question sounds like a UML-specific question so
please post it to the UML2 newsgroup:

   news://news.eclipse.org/eclipse.modeling.mdt.uml2

I would start though by looking at the documentation available to help
answer this type of question:

   http://wiki.eclipse.org/index.php/MDT-UML2


Ed Merks/Toronto/IBM@IBMCA
mailto: merks@xxxxxxxxxx
905-413-3265  (t/l 313)




                                                                           
             Siegfried                                                     
             Wolkenstein                                                   
             <rough_rough@gmx.                                          To 
             de>                       emf-dev@xxxxxxxxxxx                 
             Sent by:                                                   cc 
             emf-dev-bounces@e                                             
             clipse.org                                            Subject 
                                       [emf-dev] How to Render XMI-Files   
                                       with EMF/GMF in a standalone        
             11/23/2007 01:13          application                         
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             Eclipse Modelling                                             
                 Framework                                                 
             <emf-dev@eclipse.                                             
                   org>                                                    
                                                                           
                                                                           




Hello,

I would like to render XMI Files containing UML-Diagrammes (especially
sequence diagrammes) in a standalone application.

I need to create a Sequence Diagramme with some ordinary tool and store it
in
an xmi-file.

Now I need some libs (EMF probably) that allow me to render the sequence
diagramme described in xmi (). After the rendering I have to do some things

with the elements... animation and some stuff. I.e. They should be
available
as some kind of widgets...

Any Ideas? Are there other libs you know of?

I also tried to use the ecore.xmi package, to use it as an xmi-parser, but
it
didn't really work.

[code]
try{
             XMLResource res = new XMLResourceImpl(
                         URI.createFileURI("myxmifile.xmi")
             );
             res.load(Collections.EMPTY_MAP);
             XMLHelper xmihelp = new XMLHelperImpl();
             /*Map<Object, Object> options = new HashMap<Object, Object>();
             XMLHandler xmihandler = new SAXXMLHandler(res, xmihelp,
options);
             System.out.println(res.getContents());*/
}catch(Exception e){
             e.printStackTrace();
}
[/code]

All I get is this error message:
Caused by: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with

uri 'null' not found.

As XMI-Input I use a file generated by eclipse omondo from a sequence
diagram.

Thanks
_______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emf-dev




Back to the top