The view chooses to register the JFace TableViewer that it created, as a selection provider for two reasons.
这个视图将它创建的JFace TableViewer注册为选择提供器有两个原因。
The TableViewer implements the selection provider interface and can source selection events to the workbench part site.
TableViewer 实现了选择提供器接口并能够向工作台部分站点传播选择事件。
The code snippet in Listing 2 shows the createPartControl() method of a view that creates a JFace TableViewer and adds it as a selection provider to the workbench site.
清单 2 中的代码片段显示一个视图的 createPartControl() 方法,这个方法创建一个 JFace TableViewer 并将它作为选择提供器添加到工作台站点。
应用推荐