RCPTT preference is not applied upon eclipse launch

349 views Asked by At

My eclipse plugin app has a background job running at the background which launches the dialog as soon as the eclipse is launched.

When launching the eclipse from RCPTT tool, I would like to disable the dialog prompt as this causes our existing test suites to fail.

To get rid of the issue, I had tried disabling the preference property XXX.autoStart=false in the preference settings. It is not having immediate effect in the launched instance of eclipse and we will need to restart or re-execute the test suite in order to make it work.

Is there any way to suppress the dialog prompt at eclipse application startup through RCPTT preference ?

P.S. I have gone through the link https://www.eclipse.org/rcptt/documentation/userguide/contexts/preferences/ but that doesn't seem to help!

1

There are 1 answers

4
Adam Horvath On

You need two contexts to do so, for example:

-PREF_Disable_dialog: A preferences context which sets the XXX.autoStart=false property

-ECL_restart: An Eclipse Command Line script, holding two instructions:

restart-aut
wait-until-eclipse-is-ready

Add these two to the context of your test case(s), in the order above. The restart will be considered part of the test case, and you don't have to do it manually.