コード例 #1
0
 private void addViewerSelectionListener() {
   tv.setSelection(new StructuredSelection(Arrays.asList(mixedSelection.getValue().toArray())));
   tv.addSelectionChangedListener(
       new ISelectionChangedListener() {
         public void selectionChanged(SelectionChangedEvent event) {
           mixedSelection.getElements().refresh();
         }
       });
 }
コード例 #2
0
 protected Collection<BootDashElement> getSelectedElements() {
   return selection.getValue();
 }