Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Help with UML2EcoreConverter
Help with UML2EcoreConverter [message #476400] Thu, 18 October 2007 17:16 Go to next message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080500010700000304070801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi everybody.
I'm trying to convert uml into ecore programatically, and for that I
plan to use UML2EcoreConverter in the form
new UMLUtil.UML2EcoreConverter().convert(packages, null, null, null)

For that I've been inspecting
org.eclipse.uml2.uml.ecore.importer.UMLImporter, which probably led to
the current confusion.
I have a couple of questions to ask I you would be so kind to help me.

The first one (out of curiosity, let's say), is why does UMLImporter
define an anonymous subclass of UML2EcoreConverter?. I see it
specializes processEcoreTaggedValues, but I got lost on all the calls it
makes to other methods, and I can't see which new functionality it
provides, or why wasn't that functionality implemented inside
UML2EcoreConverter instead.

The second question is about UMLImporter's 'locationURIs' variable. Is
it to support the importation of multiple models at the same time?. And
if so, is it ok to do packages.addAll(umlresource.getContents()); ?

And the last question (seems that is more a triplet than a couple ;-) )
is the following:
assuming I understood what UML2EcoreConverter does, what I get as a
result of running UML2EcoreConverter().convert(..) is a collection with
an ecore representation of all the elements present in the uml input
file, am I right?. After that, shall I write (save) that content into an
Ecore file?, and where do I get the genmodel from?. (I lost trace of
what UMLImporter does after convert(), I know the result is contained in
ModelConverter's 'ePackages' variable)

Thank you all in advance for your help.
Regards,
Juan Pedro


--------------080500010700000304070801
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everybody.<br>
I'm trying to convert uml into ecore programatically, and for that I
plan to use UML2EcoreConverter in the form<br>
&nbsp;<font face="Courier">new
UMLUtil.UML2EcoreConverter().convert(packages, null, null, null) <br>
<br>
</font>For that I've been inspecting <font face="Courier">org.eclipse.uml2.uml.ecore.importer.UMLImporter </font>,
which probably led to the current confusion.<br>
I have a couple of questions to ask I you would&nbsp; be so kind to help me.<br>
<br>
The first one (out of curiosity, let's say), is why does UMLImporter
define an anonymous subclass of UML2EcoreConverter?. I see it
specializes processEcoreTaggedValues, but I got lost on all the calls
it makes to other methods, and I can't see which new functionality it
provides, or why wasn't that functionality implemented inside <font
face="Courier">UML2EcoreConverter</font> instead.<br>
<br>
The second question is about UMLImporter's <font face="Courier">'locationURIs'
</font>variable. Is it to support the importation of multiple models at
the same time?. And if so, is it ok to do <font face="Courier">packages.addAll(umlresource.getContents());
</font>?<br>
<br>
And the last question (seems that is more a triplet than a couple ;-) )
is the following: <br>
assuming I understood what UML2EcoreConverter does, what I get as a
result of running <font face="Courier">UML2EcoreConverter().convert(..)</font>
is a collection with an ecore representation of all the elements
present in the uml input file, am I right?. After that, shall I write
(save) that content into an Ecore file?, and where do I get the
genmodel from?.<font face="Courier">&nbsp;</font> (I lost trace of what
UMLImporter does after convert(), I know the result is contained in
ModelConverter's <font face="Courier">'ePackages'</font> variable) <br>
<br>
Thank you all in advance for your help.<br>
Regards,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Juan Pedro<br>
<br>
</body>
</html>

--------------080500010700000304070801--
Re: Help with UML2EcoreConverter [message #476413 is a reply to message #476400] Mon, 22 October 2007 22:17 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0069_01C814D7.C55B2C70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Juan Pedro,

Just wanted to point out that there is an Ant task that will invoke the =
importer code for you. You might want to have a look (see =
JavaGeneratorTask.java). It is very similar to the Ant tasks provided =
by EMF. Perhaps this is sufficient for you?


some comments below ...

- James.

"Juan Pedro Silva" <jpsilvagallino@gmail.com> wrote in message =
news:ff84df$orn$1@build.eclipse.org...
Hi everybody.
I'm trying to convert uml into ecore programatically, and for that I =
plan to use UML2EcoreConverter in the form
new UMLUtil.UML2EcoreConverter().convert(packages, null, null, null)=20

For that I've been inspecting =
org.eclipse.uml2.uml.ecore.importer.UMLImporter, which probably led to =
the current confusion.
I have a couple of questions to ask I you would be so kind to help =
me.

The first one (out of curiosity, let's say), is why does UMLImporter =
define an anonymous subclass of UML2EcoreConverter?. I see it =
specializes processEcoreTaggedValues, but I got lost on all the calls it =
makes to other methods, and I can't see which new functionality it =
provides, or why wasn't that functionality implemented inside =
UML2EcoreConverter instead.

> The importer populates information that is required from EMF =
implemented ModelImporter based on this inner class.
> The ePackageInfo is stuffed with information such as the base =
package name and prefix so that in the next page of the
> importer, you can choose which packages you wish to import and which =
ones you wish to reference.
> That is the stage where the generated ePackage ( from the UML =
representation ) is added to the map that the importer then uses.
> ( There is a conversion from UML->Ecore and then to code (from the =
..ecore representation) ).


The second question is about UMLImporter's 'locationURIs' variable. Is =
it to support the importation of multiple models at the same time?. And =
if so, is it ok to do packages.addAll(umlresource.getContents()); ?

> Yes you should be able to import multiple models at the same time.


And the last question (seems that is more a triplet than a couple ;-) =
) is the following:=20
assuming I understood what UML2EcoreConverter does, what I get as a =
result of running UML2EcoreConverter().convert(..) is a collection with =
an ecore representation of all the elements present in the uml input =
file, am I right?. After that, shall I write (save) that content into an =
Ecore file?, and where do I get the genmodel from?. (I lost trace of =
what UMLImporter does after convert(), I know the result is contained in =
ModelConverter's 'ePackages' variable)=20

> The result of importing should already produce an .ecore =
representation for you.
> The conversion is happening in the doComputeEPackages() which is =
called from ModelImporter::computeEPackages()

> I'm not sure if this is enough info for you ... there are some more =
posts on the EMF newsgroup related to ModelImport that might be of some =
use.


Thank you all in advance for your help.
Regards,
Juan Pedro


------=_NextPart_000_0069_01C814D7.C55B2C70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Juan Pedro,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Just wanted to point out that there is =
an Ant task=20
that will invoke the importer code for you.&nbsp; You might want to have =
a look=20
(see JavaGeneratorTask.java).&nbsp;&nbsp; It is very similar to the Ant =
tasks=20
provided by EMF.&nbsp; Perhaps this is sufficient for you?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>some comments below ...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>- James.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Juan Pedro Silva" &lt;<A=20
=
href=3D"mailto:jpsilvagallino@gmail.com">jpsilvagallino@gmail.com</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:ff84df$orn$1@build.eclipse.org">news:ff84df$orn$1@build.ecli=
pse.org</A>...</DIV>
<DIV>Hi everybody.<BR>I'm trying to convert uml into ecore =
programatically,=20
and for that I plan to use UML2EcoreConverter in the =
form<BR>&nbsp;<FONT=20
face=3DCourier>new UMLUtil.UML2EcoreConverter().convert(packages, =
null, null,=20
null) <BR><BR></FONT>For that I've been inspecting <FONT=20
face=3DCourier>org.eclipse.uml2.uml.ecore.importer.UMLImporter </FONT>, =
which=20
probably led to the current confusion.<BR>I have a couple of questions =
to ask=20
I you would&nbsp; be so kind to help me.<BR><BR>The first one (out of=20
curiosity, let's say), is why does UMLImporter define an anonymous =
subclass of=20
UML2EcoreConverter?. I see it specializes processEcoreTaggedValues, =
but I got=20
lost on all the calls it makes to other methods, and I can't see which =
new=20
functionality it provides, or why wasn't that functionality =
implemented inside=20
<FONT face=3DCourier>UML2EcoreConverter</FONT> instead.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The importer populates =
information that is=20
required from EMF implemented ModelImporter based on this inner=20
class.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The ePackageInfo is stuffed with =
information=20
such as the base package name and prefix so that in the next page of=20
the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; importer, you can choose which =
packages you=20
wish to import and which ones you wish to reference.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; That is the stage where the =
generated=20
ePackage ( from the UML representation ) is added to the map that the =
importer=20
then&nbsp;uses.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; ( There is a conversion from =
UML-&gt;Ecore=20
and then to code (from the&nbsp;.ecore =
representation)&nbsp;).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial =

size=3D2></FONT><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2></FONT><BR>The second question is =
about=20
UMLImporter's <FONT face=3DCourier>'locationURIs' </FONT>variable. Is =
it to=20
support the importation of multiple models at the same time?. And if =
so, is it=20
ok to do <FONT =
face=3DCourier>packages.addAll(umlresource.getContents());=20
</FONT>?</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; Yes you should be able to import =
multiple=20
models at the same time.</FONT></DIV><FONT face=3DArial =
size=3D2></FONT>
<DIV><BR><BR>And the last question (seems that is more a triplet than =
a couple=20
;-) ) is the following: <BR>assuming I understood what =
UML2EcoreConverter=20
does, what I get as a result of running <FONT=20
face=3DCourier>UML2EcoreConverter().convert(..)</FONT> is a collection =
with an=20
ecore representation of all the elements present in the uml input =
file, am I=20
right?. After that, shall I write (save) that content into an Ecore =
file?, and=20
where do I get the genmodel from?.<FONT face=3DCourier>&nbsp;</FONT> =
(I lost=20
trace of what UMLImporter does after convert(), I know the result is =
contained=20
in ModelConverter's <FONT face=3DCourier>'ePackages'</FONT> variable) =
</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The result of importing should =
already=20
produce an .ecore representation for you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The conversion is happening in =
the=20
doComputeEPackages() which is called from=20
ModelImporter::computeEPackages()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; I'm not sure if this is enough =
info for you=20
... there are some more posts on the EMF newsgroup related to =
ModelImport that=20
might be of some use.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><BR><BR>Thank you all in =
advance for your=20
help.<BR>Regards,<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; Juan Pedro<BR><BR></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0069_01C814D7.C55B2C70--
Re: Help with UML2EcoreConverter [message #476415 is a reply to message #476413] Tue, 23 October 2007 13:12 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000409060507000106080000
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

James, thanks for your answer.
I haven't use an ANT task ever before, so that is why I'm a little
reluctant to following that approach (I'm not sure right now if
investing time into becoming comfortable with ant is a good idea for me).

I was able to generate the .ecore and from there the .genmodel.
Apparently the .ecore file is fine, but I have some problems with the
..genmodel.
I looks ok in a text editor, but I get an "Unable to create this part
due to an internal error. Reason for the failure: Invalid Input: Must be
IFileEditorInput.", probably because of the use of absolute paths
instead of relative paths (that's a guess, since that is the most
notorious difference between my .genmodel and the one obtained from
running the wizards).

I realize this problem corresponds more to the EMF newsgroup, so I'll
keep trying a few things, an afterwards I may try posting something
there if needed.
Thank you again, James.
Regards,
Juan Pedro

James Bruck escribi
Re: Help with UML2EcoreConverter [message #625292 is a reply to message #476400] Mon, 22 October 2007 22:17 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0069_01C814D7.C55B2C70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Juan Pedro,

Just wanted to point out that there is an Ant task that will invoke the =
importer code for you. You might want to have a look (see =
JavaGeneratorTask.java). It is very similar to the Ant tasks provided =
by EMF. Perhaps this is sufficient for you?


some comments below ...

- James.

"Juan Pedro Silva" <jpsilvagallino@gmail.com> wrote in message =
news:ff84df$orn$1@build.eclipse.org...
Hi everybody.
I'm trying to convert uml into ecore programatically, and for that I =
plan to use UML2EcoreConverter in the form
new UMLUtil.UML2EcoreConverter().convert(packages, null, null, null)=20

For that I've been inspecting =
org.eclipse.uml2.uml.ecore.importer.UMLImporter, which probably led to =
the current confusion.
I have a couple of questions to ask I you would be so kind to help =
me.

The first one (out of curiosity, let's say), is why does UMLImporter =
define an anonymous subclass of UML2EcoreConverter?. I see it =
specializes processEcoreTaggedValues, but I got lost on all the calls it =
makes to other methods, and I can't see which new functionality it =
provides, or why wasn't that functionality implemented inside =
UML2EcoreConverter instead.

> The importer populates information that is required from EMF =
implemented ModelImporter based on this inner class.
> The ePackageInfo is stuffed with information such as the base =
package name and prefix so that in the next page of the
> importer, you can choose which packages you wish to import and which =
ones you wish to reference.
> That is the stage where the generated ePackage ( from the UML =
representation ) is added to the map that the importer then uses.
> ( There is a conversion from UML->Ecore and then to code (from the =
..ecore representation) ).


The second question is about UMLImporter's 'locationURIs' variable. Is =
it to support the importation of multiple models at the same time?. And =
if so, is it ok to do packages.addAll(umlresource.getContents()); ?

> Yes you should be able to import multiple models at the same time.


And the last question (seems that is more a triplet than a couple ;-) =
) is the following:=20
assuming I understood what UML2EcoreConverter does, what I get as a =
result of running UML2EcoreConverter().convert(..) is a collection with =
an ecore representation of all the elements present in the uml input =
file, am I right?. After that, shall I write (save) that content into an =
Ecore file?, and where do I get the genmodel from?. (I lost trace of =
what UMLImporter does after convert(), I know the result is contained in =
ModelConverter's 'ePackages' variable)=20

> The result of importing should already produce an .ecore =
representation for you.
> The conversion is happening in the doComputeEPackages() which is =
called from ModelImporter::computeEPackages()

> I'm not sure if this is enough info for you ... there are some more =
posts on the EMF newsgroup related to ModelImport that might be of some =
use.


Thank you all in advance for your help.
Regards,
Juan Pedro


------=_NextPart_000_0069_01C814D7.C55B2C70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Juan Pedro,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Just wanted to point out that there is =
an Ant task=20
that will invoke the importer code for you.&nbsp; You might want to have =
a look=20
(see JavaGeneratorTask.java).&nbsp;&nbsp; It is very similar to the Ant =
tasks=20
provided by EMF.&nbsp; Perhaps this is sufficient for you?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>some comments below ...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>- James.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Juan Pedro Silva" &lt;<A=20
=
href=3D"mailto:jpsilvagallino@gmail.com">jpsilvagallino@gmail.com</A>&gt;=
wrote=20
in message <A=20
=
href=3D"news:ff84df$orn$1@build.eclipse.org">news:ff84df$orn$1@build.ecli=
pse.org</A>...</DIV>
<DIV>Hi everybody.<BR>I'm trying to convert uml into ecore =
programatically,=20
and for that I plan to use UML2EcoreConverter in the =
form<BR>&nbsp;<FONT=20
face=3DCourier>new UMLUtil.UML2EcoreConverter().convert(packages, =
null, null,=20
null) <BR><BR></FONT>For that I've been inspecting <FONT=20
face=3DCourier>org.eclipse.uml2.uml.ecore.importer.UMLImporter </FONT>, =
which=20
probably led to the current confusion.<BR>I have a couple of questions =
to ask=20
I you would&nbsp; be so kind to help me.<BR><BR>The first one (out of=20
curiosity, let's say), is why does UMLImporter define an anonymous =
subclass of=20
UML2EcoreConverter?. I see it specializes processEcoreTaggedValues, =
but I got=20
lost on all the calls it makes to other methods, and I can't see which =
new=20
functionality it provides, or why wasn't that functionality =
implemented inside=20
<FONT face=3DCourier>UML2EcoreConverter</FONT> instead.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The importer populates =
information that is=20
required from EMF implemented ModelImporter based on this inner=20
class.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The ePackageInfo is stuffed with =
information=20
such as the base package name and prefix so that in the next page of=20
the</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; importer, you can choose which =
packages you=20
wish to import and which ones you wish to reference.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; That is the stage where the =
generated=20
ePackage ( from the UML representation ) is added to the map that the =
importer=20
then&nbsp;uses.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; ( There is a conversion from =
UML-&gt;Ecore=20
and then to code (from the&nbsp;.ecore =
representation)&nbsp;).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV><FONT face=3DArial =

size=3D2></FONT><FONT face=3DArial size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2></FONT><BR>The second question is =
about=20
UMLImporter's <FONT face=3DCourier>'locationURIs' </FONT>variable. Is =
it to=20
support the importation of multiple models at the same time?. And if =
so, is it=20
ok to do <FONT =
face=3DCourier>packages.addAll(umlresource.getContents());=20
</FONT>?</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; Yes you should be able to import =
multiple=20
models at the same time.</FONT></DIV><FONT face=3DArial =
size=3D2></FONT>
<DIV><BR><BR>And the last question (seems that is more a triplet than =
a couple=20
;-) ) is the following: <BR>assuming I understood what =
UML2EcoreConverter=20
does, what I get as a result of running <FONT=20
face=3DCourier>UML2EcoreConverter().convert(..)</FONT> is a collection =
with an=20
ecore representation of all the elements present in the uml input =
file, am I=20
right?. After that, shall I write (save) that content into an Ecore =
file?, and=20
where do I get the genmodel from?.<FONT face=3DCourier>&nbsp;</FONT> =
(I lost=20
trace of what UMLImporter does after convert(), I know the result is =
contained=20
in ModelConverter's <FONT face=3DCourier>'ePackages'</FONT> variable) =
</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The result of importing should =
already=20
produce an .ecore representation for you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt; The conversion is happening in =
the=20
doComputeEPackages() which is called from=20
ModelImporter::computeEPackages()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&gt; I'm not sure if this is enough =
info for you=20
... there are some more posts on the EMF newsgroup related to =
ModelImport that=20
might be of some use.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><BR><BR>Thank you all in =
advance for your=20
help.<BR>Regards,<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp; Juan Pedro<BR><BR></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0069_01C814D7.C55B2C70--
Re: Help with UML2EcoreConverter [message #625294 is a reply to message #476413] Tue, 23 October 2007 13:12 Go to previous message
Juan Pedro Silva is currently offline Juan Pedro SilvaFriend
Messages: 258
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000409060507000106080000
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

James, thanks for your answer.
I haven't use an ANT task ever before, so that is why I'm a little
reluctant to following that approach (I'm not sure right now if
investing time into becoming comfortable with ant is a good idea for me).

I was able to generate the .ecore and from there the .genmodel.
Apparently the .ecore file is fine, but I have some problems with the
..genmodel.
I looks ok in a text editor, but I get an "Unable to create this part
due to an internal error. Reason for the failure: Invalid Input: Must be
IFileEditorInput.", probably because of the use of absolute paths
instead of relative paths (that's a guess, since that is the most
notorious difference between my .genmodel and the one obtained from
running the wizards).

I realize this problem corresponds more to the EMF newsgroup, so I'll
keep trying a few things, an afterwards I may try posting something
there if needed.
Thank you again, James.
Regards,
Juan Pedro

James Bruck escribi
Previous Topic:Profile'.getDefinition inverse? Ecore2UML
Next Topic:navigability between aggregation
Goto Forum:
  


Current Time: Thu Apr 25 11:48:09 GMT 2024

Powered by FUDForum. Page generated in 0.04048 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top