Java Code Examples for org.eclipse.swt.events.SelectionListener#widgetDefaultSelected()

The following examples show how to use org.eclipse.swt.events.SelectionListener#widgetDefaultSelected() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimeGraphControl.java    From tracecompass with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * Default selection callback
 */
public void fireDefaultSelection() {
    if (null != fSelectionListeners) {
        Iterator<SelectionListener> it = fSelectionListeners.iterator();
        while (it.hasNext()) {
            SelectionListener listener = it.next();
            listener.widgetDefaultSelected(null);
        }
    }
}
 
Example 2
Source File: BaseSelectableControl.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 5 votes vote down vote up
protected void fireDefaultSelectionEvent(MouseEvent me) {
  Event e = new Event();
  e.widget = this;
  SelectionEvent event = new SelectionEvent(e);
  event.stateMask = me.stateMask;
  event.widget = this;

  for (SelectionListener listener : selectionListeners) {
    listener.widgetDefaultSelected(event);
  }
}
 
Example 3
Source File: FileSelection.java    From olca-app with Mozilla Public License 2.0 5 votes vote down vote up
@Override
public void widgetDefaultSelected(SelectionEvent e) {
	selected();
	for (SelectionListener listener : externalListener) {
		listener.widgetDefaultSelected(e);
	}
}
 
Example 4
Source File: SelectableControlListViewer.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 4 votes vote down vote up
protected void fireDefaultSelectedEvent(SelectionEvent e) {
  for (SelectionListener listener : selectionListeners) {
    listener.widgetDefaultSelected(e);
  }
}
 
Example 5
Source File: SelectableControlList.java    From gwt-eclipse-plugin with Eclipse Public License 1.0 4 votes vote down vote up
protected void fireDefaultSelectedEvent(SelectionEvent e) {
  for (SelectionListener listener : selectionListeners) {
    listener.widgetDefaultSelected(e);
  }
}