缺省情况下,表查看器被设置为单选方式。
我们需要侦听该事件,当发出该事件时,需要将表的输入设置为树查看器中当前选中的文件。
We need to listen for that event, and when it fires, we need to set the input for the table to be the currently selected file in the tree viewer.
JFace查看器实现检索该数据,设置对应的关联,并用数据集更新用户界面(UI)组件。
The JFace viewer implementation retrieves this data, sets the corresponding association, and updates the user interface (UI) component with the data set.
和树查看器一样,如果不显式地给表查看器设置标签提供程序,它就会使用缺省的标签提供程序。
Just as with the tree viewer, if you don't explicitly set the label provider on the table viewer, it USES the default label provider.
可以在View属性窗口中的Viewers字段中设置定义视图显示方式的查看器(viewer)。
The viewer that defines how the view is displayed can be set in the View properties window in the Viewers field as shown in figure 6.
可以在View属性窗口中的Viewers字段中设置定义视图显示方式的查看器(viewer)。
The viewer that defines how the view is displayed can be set in the View properties window in the Viewers field as shown in figure 6.
应用推荐