简体   繁体   English

Eclipse启动时不应用RCPTT首选项

[英]RCPTT preference is not applied upon eclipse launch

My eclipse plugin app has a background job running at the background which launches the dialog as soon as the eclipse is launched. 我的eclipse插件应用程序有一个在后台运行的后台作业,一旦启动eclipse,它就会启动对话框。

When launching the eclipse from RCPTT tool, I would like to disable the dialog prompt as this causes our existing test suites to fail. 从RCPTT工具启动Eclipse时,我想禁用对话框提示,因为这会导致我们现有的测试套件失败。

To get rid of the issue, I had tried disabling the preference property XXX.autoStart=false in the preference settings. 为了解决这个问题,我尝试在首选项设置中禁用首选项属性XXX.autoStart=false 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. 它在已启动的eclipse实例中没有立即生效,我们将需要重新启动或重新执行测试套件以使其工作。

Is there any way to suppress the dialog prompt at eclipse application startup through RCPTT preference ? 有什么方法可以通过RCPTT首选项抑制在Eclipse应用程序启动时出现对话框提示?

PS I have gone through the link https://www.eclipse.org/rcptt/documentation/userguide/contexts/preferences/ but that doesn't seem to help! PS我已经通过链接https://www.eclipse.org/rcptt/documentation/userguide/contexts/preferences/,但这似乎无济于事!

You need two contexts to do so, for example: 为此,您需要两个上下文:

- PREF_Disable_dialog : A preferences context which sets the XXX.autoStart=false property PREF_Disable_dialog :设置XXX.autoStart=false属性的首选项上下文

- ECL_restart : An Eclipse Command Line script, holding two instructions: ECL_restart :Eclipse命令行脚本,包含两条指令:

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. 重新启动将被视为测试用例的一部分,您不必手动进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM