我目前正在构建基于Eclipse的RCP应用程序.在我的一个插件中,我通过代码添加两个视图:
layout.addView("dev.asd.tableviewer.tree", IPageLayout.LEFT, 0.25f, IPageLayout.ID_EDITOR_AREA);
layout.addView("dev.asd.tableviewer.view", IPageLayout.RIGHT, 0.75f, IPageLayout.ID_EDITOR_AREA);
Run Code Online (Sandbox Code Playgroud)
第一个视图包含一个树形视图,第二个视图包含一个tableviewer.现在我想根据treeviewer的选择更新tableviewer的内容.我的问题是,如何从树形图中引用tableviewer?或者还有其他方法可以解决这个问题吗?