我真的需要一个开放RCP应用一些帮助基于GMF框架 现在我设计出基因改造食品的编辑和运行为“Eclipse的应用程序”如何打开一个RCP应用。 我想运行的代码 这个应用程序,我可以overirde这种方法来运行应用程序基于GMF编辑
@Override
public Object start(IApplicationContext context) throws Exception {
Display display = PlatformUI.createDisplay();
try {
int returnCode = PlatformUI.createAndRunWorkbench(display,
new CefSrcRouteFlow.diagram.application.DiagramEditorWorkbenchAdvisor());
if (returnCode == PlatformUI.RETURN_RESTART) {
return IApplication.EXIT_RESTART;
}
return IApplication.EXIT_OK;
} finally {
display.dispose();
}
}
但对于这个IApplicationContext接口作为参数, 我怎样才能得到这样的实例?