Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » tooling workflow
tooling workflow [message #381374] Wed, 07 November 2007 19:25 Go to next message
Christian Hall is currently offline Christian Hall
Messages: 15
Registered: July 2009
Junior Member
Just to be sure I've got this right. Consider I have three projects:

EMF model project (plugin)
JET transformation project (plugin)
target project

Can't get the transformation to run without loading up the runtime
workspace because of the emf dependency and because I want to have the
artifact placed into the target project...or maybe just because of the EMF
model.

If I am working on getting the JET template the way I want it, I find I am
having to change the template (e.g. fix a line of template code), restart
runtime workbench, repeat. Each workbench startup takes about 30 seconds
or so which is feeling like a pretty slow iteration.

Is this just the way it is?
Re: tooling workflow [message #381376 is a reply to message #381374] Wed, 07 November 2007 19:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26039
Registered: July 2009
Senior Member
Christian,

It's best to ask on the M2T newsgroup, which I've added to the "to" list
of the reply. It doesn't sound quite right to me though...


Christian Hall wrote:
> Just to be sure I've got this right. Consider I have three projects:
>
> EMF model project (plugin)
> JET transformation project (plugin)
> target project
>
> Can't get the transformation to run without loading up the runtime
> workspace because of the emf dependency and because I want to have the
> artifact placed into the target project...or maybe just because of the
> EMF model.
> If I am working on getting the JET template the way I want it, I find
> I am having to change the template (e.g. fix a line of template code),
> restart runtime workbench, repeat. Each workbench startup takes about
> 30 seconds or so which is feeling like a pretty slow iteration.
> Is this just the way it is?
>
Re: tooling workflow [message #381380 is a reply to message #381376] Mon, 12 November 2007 13:31 Go to previous messageGo to next message
Christian Hall is currently offline Christian Hall
Messages: 15
Registered: July 2009
Junior Member
Also, if this is just the way it is, can someone suggest a way to minimize
startup time...I tried to strip down the workspace but by the time I added
everything it seemed like I needed to be able to see the run dialog and
execute the transformation, I pretty much have my original workspace
plugin list.

I have to believe that there is a way to get things to iterate faster.
Maybe folks are putting their models in the same plugin as the
transformation?
Re: tooling workflow [message #381382 is a reply to message #381380] Tue, 13 November 2007 12:53 Go to previous messageGo to next message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Christian:

Sorry, I somehow missed this post earlier.

Some tips:

1) Start your runtime workbench using Debug, instead of Run. This way, hot
code replace can update the generated template methods in the runtime VM on
the fly. It is best to do such replacements when the transformation is not
running.

2) If your EMF model is stable, you could install it in your development
workbench. That way, you could run the JET transformation directly from the
development workbench.

Paul

"Christian Hall" <christian.hall@equifax.com> wrote in message
news:9d7c8a48262e3a2a0a27aa148550d81f$1@www.eclipse.org...
> Also, if this is just the way it is, can someone suggest a way to minimize
> startup time...I tried to strip down the workspace but by the time I added
> everything it seemed like I needed to be able to see the run dialog and
> execute the transformation, I pretty much have my original workspace
> plugin list.
>
> I have to believe that there is a way to get things to iterate faster.
> Maybe folks are putting their models in the same plugin as the
> transformation?
>
Re: tooling workflow [message #381383 is a reply to message #381382] Tue, 13 November 2007 13:21 Go to previous messageGo to next message
Christian Hall is currently offline Christian Hall
Messages: 15
Registered: July 2009
Junior Member
I actually tried both before I posted. I think I know why one didn't
work...here are the details:

- I installed the semi-stable model plug-in into the workbench, but I
forgot to close the plug-in project...I suspect that is why that didn't
work.

- I tried running the runtime workbench in debug. I got one of two
behaviors. Either I'd get an error that said runtime code modification was
not allowed or I'd make the change and it just would not stick in the
runtime workbench. Given this is supposed to work, I'll try to see if I
can narrow down why things were not working.

Thanks for the response.
Re: tooling workflow [message #381766 is a reply to message #381383] Thu, 15 November 2007 13:30 Go to previous message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Christian:

One thing I find with hot code replacement is that you have to be really
careful when modifying code that is on the stack. So, when I'm doing this
with JET templates, I try to make the modifications after the JET
transformation has completed.

Also, a third way. Copy the JET Transformation project into your runtime
workbench, and make sure it is NOT one of the plug-ins loaded in the runtime
workbench. (This is, it is NOT selected on the Plug-ins tab of the runtime
workbenches launch configuration. This way, when you run the JET
transformation, you can take advantage of JETs runtime loading capabilities.

Paul

"Christian Hall" <christian.hall@equifax.com> wrote in message
news:db47fc767a1f19a2f330d7e7909ad03f$1@www.eclipse.org...
>I actually tried both before I posted. I think I know why one didn't
>work...here are the details:
>
> - I installed the semi-stable model plug-in into the workbench, but I
> forgot to close the plug-in project...I suspect that is why that didn't
> work.
> - I tried running the runtime workbench in debug. I got one of two
> behaviors. Either I'd get an error that said runtime code modification was
> not allowed or I'd make the change and it just would not stick in the
> runtime workbench. Given this is supposed to work, I'll try to see if I
> can narrow down why things were not working.
>
> Thanks for the response.
>
Re: tooling workflow [message #601602 is a reply to message #381374] Wed, 07 November 2007 19:56 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26039
Registered: July 2009
Senior Member
Christian,

It's best to ask on the M2T newsgroup, which I've added to the "to" list
of the reply. It doesn't sound quite right to me though...


Christian Hall wrote:
> Just to be sure I've got this right. Consider I have three projects:
>
> EMF model project (plugin)
> JET transformation project (plugin)
> target project
>
> Can't get the transformation to run without loading up the runtime
> workspace because of the emf dependency and because I want to have the
> artifact placed into the target project...or maybe just because of the
> EMF model.
> If I am working on getting the JET template the way I want it, I find
> I am having to change the template (e.g. fix a line of template code),
> restart runtime workbench, repeat. Each workbench startup takes about
> 30 seconds or so which is feeling like a pretty slow iteration.
> Is this just the way it is?
>
Re: tooling workflow [message #601615 is a reply to message #381376] Mon, 12 November 2007 13:31 Go to previous message
Christian Hall is currently offline Christian Hall
Messages: 15
Registered: July 2009
Junior Member
Also, if this is just the way it is, can someone suggest a way to minimize
startup time...I tried to strip down the workspace but by the time I added
everything it seemed like I needed to be able to see the run dialog and
execute the transformation, I pretty much have my original workspace
plugin list.

I have to believe that there is a way to get things to iterate faster.
Maybe folks are putting their models in the same plugin as the
transformation?
Re: tooling workflow [message #601627 is a reply to message #381380] Tue, 13 November 2007 12:53 Go to previous message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Christian:

Sorry, I somehow missed this post earlier.

Some tips:

1) Start your runtime workbench using Debug, instead of Run. This way, hot
code replace can update the generated template methods in the runtime VM on
the fly. It is best to do such replacements when the transformation is not
running.

2) If your EMF model is stable, you could install it in your development
workbench. That way, you could run the JET transformation directly from the
development workbench.

Paul

"Christian Hall" <christian.hall@equifax.com> wrote in message
news:9d7c8a48262e3a2a0a27aa148550d81f$1@www.eclipse.org...
> Also, if this is just the way it is, can someone suggest a way to minimize
> startup time...I tried to strip down the workspace but by the time I added
> everything it seemed like I needed to be able to see the run dialog and
> execute the transformation, I pretty much have my original workspace
> plugin list.
>
> I have to believe that there is a way to get things to iterate faster.
> Maybe folks are putting their models in the same plugin as the
> transformation?
>
Re: tooling workflow [message #601633 is a reply to message #381382] Tue, 13 November 2007 13:21 Go to previous message
Christian Hall is currently offline Christian Hall
Messages: 15
Registered: July 2009
Junior Member
I actually tried both before I posted. I think I know why one didn't
work...here are the details:

- I installed the semi-stable model plug-in into the workbench, but I
forgot to close the plug-in project...I suspect that is why that didn't
work.

- I tried running the runtime workbench in debug. I got one of two
behaviors. Either I'd get an error that said runtime code modification was
not allowed or I'd make the change and it just would not stick in the
runtime workbench. Given this is supposed to work, I'll try to see if I
can narrow down why things were not working.

Thanks for the response.
Re: tooling workflow [message #602375 is a reply to message #381383] Thu, 15 November 2007 13:30 Go to previous message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Christian:

One thing I find with hot code replacement is that you have to be really
careful when modifying code that is on the stack. So, when I'm doing this
with JET templates, I try to make the modifications after the JET
transformation has completed.

Also, a third way. Copy the JET Transformation project into your runtime
workbench, and make sure it is NOT one of the plug-ins loaded in the runtime
workbench. (This is, it is NOT selected on the Plug-ins tab of the runtime
workbenches launch configuration. This way, when you run the JET
transformation, you can take advantage of JETs runtime loading capabilities.

Paul

"Christian Hall" <christian.hall@equifax.com> wrote in message
news:db47fc767a1f19a2f330d7e7909ad03f$1@www.eclipse.org...
>I actually tried both before I posted. I think I know why one didn't
>work...here are the details:
>
> - I installed the semi-stable model plug-in into the workbench, but I
> forgot to close the plug-in project...I suspect that is why that didn't
> work.
> - I tried running the runtime workbench in debug. I got one of two
> behaviors. Either I'd get an error that said runtime code modification was
> not allowed or I'd make the change and it just would not stick in the
> runtime workbench. Given this is supposed to work, I'll try to see if I
> can narrow down why things were not working.
>
> Thanks for the response.
>
Previous Topic:[Announce] The EclipseCon 2008 Submission Deadline is Rapidly Approaching.
Next Topic:Ecore mapping of xsd:restriction
Goto Forum:
  


Current Time: Tue Sep 16 01:07:26 GMT 2014

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

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