[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.emf] Re: Generate EMF Model

Every time I call the Rose2Ecore's main/run method, it returns the
following exception:

java.lang.NullPointerException
	at
org.eclipse.emf.codegen.ecore.rose2ecore.RoseUtil.<init>(RoseUtil.java:67)
	at
org.eclipse.emf.codegen.ecore.rose2ecore.Rose2Ecore.run(Rose2Ecore.java:74)

What am I doing wrong?

Thanks,

Alfredo
******************************************************************************
Frank Budinsky wrote:

> Alfredo,

> The code that creates an Ecore model from Java interfaces and Rational Rose
> models is in packages org.eclipse.emf.codegen.ecore.java2ecore and
> org.eclipse.emf.codegen.ecore.rose2ecore. The XML Schema to ecore converter
is
> in the XSD project (org.eclipse.xsd.ecore.XSDEcoreBuilder).

> Frank.

******************************************************************************
> Alfredo wrote:

> > Hey guys,
> >
> > I'm creating a plugin which should take the UML/java/XML model and should
> > generate the EMF model and from there I will generate classes and files.
> > I know that there is a wizard that performs this, but I need to generate
> > classes a little different to how they are being generated by this wizard.
> >
> > I look at the tutorials but none of them specify how to create a model
> > programmatically.  Assuming that I have the UML, java, or XML model, What
> > classes do I need to call which will generate the EMF model?  I already
> > have code which uses the API to access the model.
> >
> > Thanks,
> >
> > Alfredo
> >
> >
******************************************************************************