我想在E4 RCP应用程序启动后运行一些东西。
怎么做?
答案 0 :(得分:6)
您可以使用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()
{
}
}