Then add the code in Listing 3 to the selectionChanged method.
然后对selectionChanged方法添加清单3中的代码。
It isn't particularly interesting. However, we also see another method, selectionChanged.
它不是特别有趣;不过我们还看到了另一个方法selectionChanged 。
The Eclipse workbench calls selectionChanged() when the user selects a new file in the navigator.
当用户选择导航器中的新文件时,Eclipse工作台调用selectionChanged() 。
The selectionChanged method helps you detect which partner is selected and how many partners are selected.
selectionChanged方法帮助您检测选中了哪个合作伙伴、选中了多少个合作伙伴。
When the user selects/deselects a node in the tree viewer, the selection changed listener gets called with this: public void selectionChanged(SelectionChangedEvent event).
当用户选中/取消选中树查看器中的节点时,用下面的方法调用选择更改侦听器
When the user selects/deselects a node in the tree viewer, the selection changed listener gets called with this: public void selectionChanged(SelectionChangedEvent event).
当用户选中/取消选中树查看器中的节点时,用下面的方法调用选择更改侦听器
应用推荐