[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ease-dev] Executing EASE without the UI
|
Hi Geneviève,
glad that EASE could be integrated into Trace Compass so nicely.
Additionally to your blog post we will have a talk on that topic at ECE
2019:
https://www.eclipsecon.org/europe2019/sessions/easely-extending-eclipse
-trace-compass
> But as a first use case, we'd like to be able to execute a script in
> headless mode, for instance from the command line:
>
> ./tracecompass --script /path/to/script --open /path/to/mytrace
EASE already supports headless execution via a registered application.
An example is part of the (rare) help pages we deliver along with the
installation.
If you want to integrate it in your own application have a look at this
class:
https://git.eclipse.org/c/ease/org.eclipse.ease.core.git/tree/plugins/o
rg.eclipse.ease/src/org/eclipse/ease/applications/RunHeadlessScript.jav
a
It gets interesting at line 87 where we create an instance of a script
engine and pass a script location to it.
Typically you will also want to load the workspace and persist it
afterwards in your application.
loadEarlyStartupExtensions() will execute startup extensions that
normally only get loaded in UI mode. This step is optional as EASE will
work without.
HTH
Christian