简体   繁体   English

RCP产品:将@start添加到config.ini文件中的捆绑包

[英]RCP Product: add @start to a bundle in config.ini file

I have a plugin which I need to start explicitly by adding @start to the /configuration/config.ini file. 我有一个插件,需要在/configuration/config.ini文件中添加@start来明确启动。

The plug-in only starts if I replace the ending '@4:start' to '@start' with Notepad or any editor. 仅当我用记事本或任何编辑器将结尾的'@ 4:start'替换为'@start'时,插件才会启动。

How can I achieve that from the .product file? 如何从.product文件中实现该目标? (So that I don't have to replace the ending each time I export the product) (这样我就不必在每次导出产品时都替换结尾)

FURTHER INFO: 更多信息:

I tried setting Start Levels to @1, @2 etc. But the program terminates at splash-screen. 我尝试将“开始级别”设置为@ 1,@ 2等。但是程序在启动屏幕上终止。

Also, I did go around the editor and replaced Start Level's value with 'start' in the product file. 另外,我确实四处编辑,并用产品文件中的“ start”替换了Start Level的值。 But then the export stops saying it's corrupt. 但是随后出口停止说它已损坏。

Before switching to the E4 platform the plugin started by itself. 在切换到E4平台之前,该插件会自行启动。

Put this in your product file inside <product></product> tag: 将其放在<product></product>标签内的产品文件中:

<configurations>
      <plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="4" />
      <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
      .....      
</configurations>

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

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