/** * Returns the viewer that is the source of this event. * * @return the originating viewer */ public Viewer getViewer() { return (Viewer) getSource(); } }
/** * Returns the viewer that is the source of this event. * * @return the originating viewer */ public Viewer getViewer() { return (Viewer) getSource(); } }
/** * Returns the viewer that is the source of this event. * * @return the originating viewer */ public Viewer getViewer() { return (Viewer) getSource(); } }
public void doubleClick(DoubleClickEvent event) { ISelection selection = event.getSelection(); StructuredSelection newSelection = convertSelection(selection, true); super.doubleClick(new DoubleClickEvent((Viewer)event.getSource(), newSelection)); }
@Override public void doubleClick(DoubleClickEvent event) { ISelection selection = event.getSelection(); StructuredSelection newSelection = convertSelection(selection, true); super.doubleClick(new DoubleClickEvent((Viewer)event.getSource(), newSelection)); }
}); fPluginViewer.addDoubleClickListener(event -> { CheckboxTableViewer tableViewer = (CheckboxTableViewer) event.getSource(); Object selection = ((IStructuredSelection) event.getSelection()).getFirstElement(); boolean addingCheck = !tableViewer.getChecked(selection);