Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » Re: [MWE] Is there a way to prevent to refresh the *entire* workspace after the run of a workflow?
| |
Re: [MWE] Is there a way to prevent to refresh the *entire* workspace after the run of a workflow? [message #487920 is a reply to message #487856] |
Thu, 24 September 2009 19:38 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Hi Stefan,
> I think the problem with your solution is, that it is not easy at all to
> provide a correct class path for this simple plain java application.
Either way (workflow launch or java application launch) you need a
correctly set up classpath. We put the things on the classpath because
they are needed. By leveraging OSGi and it's support for transitive
dependencies this has become fairly easy to manage (IMHO).
However, I admit that if you don't use OSGi but have to set up the
classpath manually it's not that nice...
> In
> my opinion it would be nice to have an eclipse application to run a
> workflow, that would allow to launch workflows from and within other
> tools without bothering about classpath issues (that are already
> resolved by the osgi container).
You'ld still have to define the right dependencies (i.e. classpath) for
your specific workflow.
> Btw. the most annoying thing about this workspace refresh is, that it
> occurs not only at the end of workflow launches but after all other
> types of launches as well.
It only occurs after workflow launches.
What types of launches do you refer to?
Sven
> Stefan
>
>
> Sven Efftinge wrote:
>> Hi Michael,
>>
>> as this is related to the MWE launcher I added the emft newsgroup.
>>
>> the workspace refresh is hard coded so you cannot deactivate it in the
>> launch configuration. What you could do is to start the workflow using
>> a plain Java Application launch configuration.
>>
>> All you need to do is start 'org.eclipse.emf.mwe.core.WorkflowRunner'
>> and pass the workflow file as the first parameter.
>>
>> Note, that usually a refresh is only resources consuming if many files
>> are out of sync, i.e. have changed externally. You could try to
>> minimize this by avoid overwriting existing files if nothing has changed.
>>
>> Cheers,
>> Sven
>>
>>
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
Re: [MWE] Is there a way to prevent to refresh the *entire* workspace after the run of a workflow? [message #490078 is a reply to message #487920] |
Wed, 07 October 2009 09:10 |
Stefan Holzknecht Messages: 31 Registered: July 2009 |
Member |
|
|
Sven Efftinge wrote:
> Hi Stefan,
>
>> I think the problem with your solution is, that it is not easy at all
>> to provide a correct class path for this simple plain java application.
>
> Either way (workflow launch or java application launch) you need a
> correctly set up classpath. We put the things on the classpath because
> they are needed. By leveraging OSGi and it's support for transitive
> dependencies this has become fairly easy to manage (IMHO).
> However, I admit that if you don't use OSGi but have to set up the
> classpath manually it's not that nice...
>
>> In my opinion it would be nice to have an eclipse application to run a
>> workflow, that would allow to launch workflows from and within other
>> tools without bothering about classpath issues (that are already
>> resolved by the osgi container).
>
> You'ld still have to define the right dependencies (i.e. classpath) for
> your specific workflow.
>
>> Btw. the most annoying thing about this workspace refresh is, that it
>> occurs not only at the end of workflow launches but after all other
>> types of launches as well.
>
> It only occurs after workflow launches.
> What types of launches do you refer to?
I mean actually ALL types of launches. Once you were brave enough to
start a workflow you will get these annoying refreshes after all other
launches (e.g. Eclipse Applications) as well.
>
> Sven
>
>
>> Stefan
>>
>>
>> Sven Efftinge wrote:
>>> Hi Michael,
>>>
>>> as this is related to the MWE launcher I added the emft newsgroup.
>>>
>>> the workspace refresh is hard coded so you cannot deactivate it in
>>> the launch configuration. What you could do is to start the workflow
>>> using a plain Java Application launch configuration.
>>>
>>> All you need to do is start 'org.eclipse.emf.mwe.core.WorkflowRunner'
>>> and pass the workflow file as the first parameter.
>>>
>>> Note, that usually a refresh is only resources consuming if many
>>> files are out of sync, i.e. have changed externally. You could try to
>>> minimize this by avoid overwriting existing files if nothing has
>>> changed.
>>>
>>> Cheers,
>>> Sven
>>>
>>>
>
|
|
| |
Re: [MWE] Is there a way to prevent to refresh the *entire* workspace after the run of a workflow? [message #621393 is a reply to message #487856] |
Thu, 24 September 2009 19:38 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Hi Stefan,
> I think the problem with your solution is, that it is not easy at all to
> provide a correct class path for this simple plain java application.
Either way (workflow launch or java application launch) you need a
correctly set up classpath. We put the things on the classpath because
they are needed. By leveraging OSGi and it's support for transitive
dependencies this has become fairly easy to manage (IMHO).
However, I admit that if you don't use OSGi but have to set up the
classpath manually it's not that nice...
> In
> my opinion it would be nice to have an eclipse application to run a
> workflow, that would allow to launch workflows from and within other
> tools without bothering about classpath issues (that are already
> resolved by the osgi container).
You'ld still have to define the right dependencies (i.e. classpath) for
your specific workflow.
> Btw. the most annoying thing about this workspace refresh is, that it
> occurs not only at the end of workflow launches but after all other
> types of launches as well.
It only occurs after workflow launches.
What types of launches do you refer to?
Sven
> Stefan
>
>
> Sven Efftinge wrote:
>> Hi Michael,
>>
>> as this is related to the MWE launcher I added the emft newsgroup.
>>
>> the workspace refresh is hard coded so you cannot deactivate it in the
>> launch configuration. What you could do is to start the workflow using
>> a plain Java Application launch configuration.
>>
>> All you need to do is start 'org.eclipse.emf.mwe.core.WorkflowRunner'
>> and pass the workflow file as the first parameter.
>>
>> Note, that usually a refresh is only resources consuming if many files
>> are out of sync, i.e. have changed externally. You could try to
>> minimize this by avoid overwriting existing files if nothing has changed.
>>
>> Cheers,
>> Sven
>>
>>
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
|
|
|
Re: [MWE] Is there a way to prevent to refresh the *entire* workspace after the run of a workflow? [message #621434 is a reply to message #487920] |
Wed, 07 October 2009 09:10 |
Stefan Holzknecht Messages: 31 Registered: July 2009 |
Member |
|
|
Sven Efftinge wrote:
> Hi Stefan,
>
>> I think the problem with your solution is, that it is not easy at all
>> to provide a correct class path for this simple plain java application.
>
> Either way (workflow launch or java application launch) you need a
> correctly set up classpath. We put the things on the classpath because
> they are needed. By leveraging OSGi and it's support for transitive
> dependencies this has become fairly easy to manage (IMHO).
> However, I admit that if you don't use OSGi but have to set up the
> classpath manually it's not that nice...
>
>> In my opinion it would be nice to have an eclipse application to run a
>> workflow, that would allow to launch workflows from and within other
>> tools without bothering about classpath issues (that are already
>> resolved by the osgi container).
>
> You'ld still have to define the right dependencies (i.e. classpath) for
> your specific workflow.
>
>> Btw. the most annoying thing about this workspace refresh is, that it
>> occurs not only at the end of workflow launches but after all other
>> types of launches as well.
>
> It only occurs after workflow launches.
> What types of launches do you refer to?
I mean actually ALL types of launches. Once you were brave enough to
start a workflow you will get these annoying refreshes after all other
launches (e.g. Eclipse Applications) as well.
>
> Sven
>
>
>> Stefan
>>
>>
>> Sven Efftinge wrote:
>>> Hi Michael,
>>>
>>> as this is related to the MWE launcher I added the emft newsgroup.
>>>
>>> the workspace refresh is hard coded so you cannot deactivate it in
>>> the launch configuration. What you could do is to start the workflow
>>> using a plain Java Application launch configuration.
>>>
>>> All you need to do is start 'org.eclipse.emf.mwe.core.WorkflowRunner'
>>> and pass the workflow file as the first parameter.
>>>
>>> Note, that usually a refresh is only resources consuming if many
>>> files are out of sync, i.e. have changed externally. You could try to
>>> minimize this by avoid overwriting existing files if nothing has
>>> changed.
>>>
>>> Cheers,
>>> Sven
>>>
>>>
>
|
|
|
Goto Forum:
Current Time: Mon Sep 23 14:48:56 GMT 2024
Powered by FUDForum. Page generated in 0.05644 seconds
|