我想在 E4 RCP 应用程序启动后运行一些东西。
怎么做?
你可以用一个LifeCycle
类来做到这一点。lifeCyceURI
您在产品的属性中指定:
<extension
id="product"
point="org.eclipse.core.runtime.products">
<product
name="%product.name"
application="org.eclipse.e4.ui.workbench.swt.E4Application">
<property
name="lifeCycleURI"
value="bundleclass://plugin-id/package.LifeCycle">
</property>
....
PostContextCreate
注释在启动的早期运行:
public class LifeCycle
{
@PostContextCreate
public void postContextCreate()
{
}
}