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

The following examples show how to use org.eclipse.swt.events.SelectionListener#widgetDefaultSelected() . These examples are extracted from open source projects. 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
/**
 * 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
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 Project: olca-app   File: FileSelection.java    License: 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
protected void fireDefaultSelectedEvent(SelectionEvent e) {
  for (SelectionListener listener : selectionListeners) {
    listener.widgetDefaultSelected(e);
  }
}
 
Example 5
protected void fireDefaultSelectedEvent(SelectionEvent e) {
  for (SelectionListener listener : selectionListeners) {
    listener.widgetDefaultSelected(e);
  }
}