Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » headless-batch processing of genmodel reload and generate for ecore models.
headless-batch processing of genmodel reload and generate for ecore models. [message #391697] Fri, 11 March 2005 00:42 Go to next message
Henrich Kraemer is currently offline Henrich Kraemer
Messages: 59
Registered: July 2009
Member
I need to automate the following:

- reload a genModel from the original 'foreign' Ecore model.
- run generateAll on it

I have seen support for generating code from models defined in Rose or XSD but not for ecore. Do I miss anything? If not I am thinking that would be worth a feature request.

I could be wrong but I believe the support for Rose and XSD doesn't seem to take an existing genmodel into account but rather generates a new one from scratch. Is this the case?
Re: headless-batch processing of genmodel reload and generate for ecore models. [message #391706 is a reply to message #391697] Fri, 11 March 2005 07:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25910
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------010901000801090301060201
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Henrich,

Are you looking at the Ant support? I don't believe Marcelo did Ant
support for Ecore2Java and this comment makes me think there is no
reload support:

public void setReconcileGenModel(ReconcileGenModelType type)
{
String value = type.getValue();
if ("overwrite".equals(value))
{
reconcileGenModel = GENMODEL_OVERWRITE;
}
else if ("keep".equals(value))
{
reconcileGenModel = GENMODEL_KEEP;
}
else if ("reload".equals(value))
{
reconcileGenModel = GENMODEL_RELOAD;
* throw new
UnsupportedOperationException("'genModelAction=\"reload\"' is not
supported yet.");*
}
}

Feel free to make a feature request for these.


Henrich Kraemer wrote:

> I need to automate the following:
>
> - reload a genModel from the original 'foreign' Ecore model.
> - run generateAll on it
>
> I have seen support for generating code from models defined in Rose or
> XSD but not for ecore. Do I miss anything? If not I am thinking that
> would be worth a feature request.
> I could be wrong but I believe the support for Rose and XSD doesn't
> seem to take an existing genmodel into account but rather generates a
> new one from scratch. Is this the case?
>
>


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

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Henrich,<br>
<br>
Are you looking at the Ant support?&nbsp;&nbsp; I don't believe Marcelo did Ant
support for Ecore2Java and this comment makes me think there is no
reload support:<br>
<blockquote><small>&nbsp; public void
setReconcileGenModel(ReconcileGenModelType type)</small><br>
<small>&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp; String value = type.getValue();</small><br>
<small>&nbsp;&nbsp;&nbsp; if ("overwrite".equals(value))</small><br>
<small>&nbsp;&nbsp;&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reconcileGenModel = GENMODEL_OVERWRITE;</small><br>
<small>&nbsp;&nbsp;&nbsp; }</small><br>
<small>&nbsp;&nbsp;&nbsp; else if ("keep".equals(value))</small><br>
<small>&nbsp;&nbsp;&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reconcileGenModel = GENMODEL_KEEP;</small><br>
<small>&nbsp;&nbsp;&nbsp; }</small><br>
<small>&nbsp;&nbsp;&nbsp; else if ("reload".equals(value))</small><br>
<small>&nbsp;&nbsp;&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reconcileGenModel = GENMODEL_RELOAD;</small><br>
<b><small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new
UnsupportedOperationException("'genModelAction=\"reload\"' is not
supported yet.");</small></b><br>
<small>&nbsp;&nbsp;&nbsp; }</small><br>
<small>&nbsp; }</small><br>
</blockquote>
Feel free to make a feature request for these.<br>
<br>
<br>
Henrich Kraemer wrote:
<blockquote cite="midd0rb38$ah2$1@www.eclipse.org" type="cite">I need
to automate the following:
<br>
<br>
&nbsp;&nbsp; - reload a genModel from the original 'foreign' Ecore model.
<br>
&nbsp;&nbsp; - run generateAll on it
<br>
<br>
I have seen support for generating code from models defined in Rose or
XSD but not for ecore. Do I miss anything? If not I am thinking that
would be worth a feature request. <br>
I could be wrong but I believe the support for Rose and XSD doesn't
seem to take an existing genmodel into account but rather generates a
new one from scratch. Is this the case?
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>

--------------010901000801090301060201--
Re: headless-batch processing of genmodel reload and generate for ecore models. [message #391721 is a reply to message #391706] Fri, 11 March 2005 16:00 Go to previous message
Henrich Kraemer is currently offline Henrich Kraemer
Messages: 59
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------040900020705080506050608
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I submitted https://bugs.eclipse.org/bugs/show_bug.cgi?id=87800

- Henrich

Ed Merks wrote:

> Henrich,
>
> Are you looking at the Ant support? I don't believe Marcelo did Ant
> support for Ecore2Java and this comment makes me think there is no
> reload support:
>
> public void setReconcileGenModel(ReconcileGenModelType type)
> {
> String value = type.getValue();
> if ("overwrite".equals(value))
> {
> reconcileGenModel = GENMODEL_OVERWRITE;
> }
> else if ("keep".equals(value))
> {
> reconcileGenModel = GENMODEL_KEEP;
> }
> else if ("reload".equals(value))
> {
> reconcileGenModel = GENMODEL_RELOAD;
> * throw new
> UnsupportedOperationException("'genModelAction=\"reload\"' is not
> supported yet."); *
> }
> }
>
> Feel free to make a feature request for these.
>
>
> Henrich Kraemer wrote:
>
>> I need to automate the following:
>>
>> - reload a genModel from the original 'foreign' Ecore model.
>> - run generateAll on it
>>
>> I have seen support for generating code from models defined in Rose
>> or XSD but not for ecore. Do I miss anything? If not I am thinking
>> that would be worth a feature request.
>> I could be wrong but I believe the support for Rose and XSD doesn't
>> seem to take an existing genmodel into account but rather generates a
>> new one from scratch. Is this the case?
>>
>>
>


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

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I submitted <a class="moz-txt-link-freetext" href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=87800">https://bugs.eclipse.org/bugs/show_bug.cgi?id=87800</a><br>
<br>
- Henrich<br>
<br>
Ed Merks wrote:
<blockquote cite="midd0s2hb$p0h$1@www.eclipse.org" type="cite">
<meta http-equiv="Context-Type"
content="text/html; charset=ISO-8859-1">
Henrich,<br>
<br>
Are you looking at the Ant support?&nbsp;&nbsp; I don't believe Marcelo did Ant
support for Ecore2Java and this comment makes me think there is no
reload support:<br>
<blockquote> &nbsp; public void
setReconcileGenModel(ReconcileGenModelType type) <br>
&nbsp; { <br>
&nbsp;&nbsp;&nbsp; String value = type.getValue(); <br>
&nbsp;&nbsp;&nbsp; if ("overwrite".equals(value)) <br>
&nbsp;&nbsp;&nbsp; { <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reconcileGenModel = GENMODEL_OVERWRITE; <br>
&nbsp;&nbsp;&nbsp; } <br>
&nbsp;&nbsp;&nbsp; else if ("keep".equals(value)) <br>
&nbsp;&nbsp;&nbsp; { <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reconcileGenModel = GENMODEL_KEEP; <br>
&nbsp;&nbsp;&nbsp; } <br>
&nbsp;&nbsp;&nbsp; else if ("reload".equals(value)) <br>
&nbsp;&nbsp;&nbsp; { <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reconcileGenModel = GENMODEL_RELOAD; <br>
<b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; throw new
UnsupportedOperationException("'genModelAction=\"reload\"' is not
supported yet."); </b><br>
&nbsp;&nbsp;&nbsp; } <br>
&nbsp; } <br>
</blockquote>
Feel free to make a feature request for these.<br>
<br>
<br>
Henrich Kraemer wrote:
<blockquote cite="midd0rb38$ah2$1@www.eclipse.org" type="cite">I need
to automate the following: <br>
<br>
&nbsp;&nbsp; - reload a genModel from the original 'foreign' Ecore model. <br>
&nbsp;&nbsp; - run generateAll on it <br>
<br>
I have seen support for generating code from models defined in Rose or
XSD but not for ecore. Do I miss anything? If not I am thinking that
would be worth a feature request. <br>
I could be wrong but I believe the support for Rose and XSD doesn't
seem to take an existing genmodel into account but rather generates a
new one from scratch. Is this the case? <br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>

--------------040900020705080506050608--
Previous Topic:Cannot generate code from genmodel
Next Topic:Model in Rational and xsd files
Goto Forum:
  


Current Time: Wed Jul 23 08:00:03 EDT 2014

Powered by FUDForum. Page generated in 0.02715 seconds