@Override public void mouseExit(MouseEvent e) { list.deselectAll(); mouse_entered = false; } });
@Override protected void listDeselectAll() { list.deselectAll(); }
@Override protected void listDeselectAll() { list.deselectAll(); }
protected void listDeselectAll() { list.deselectAll(); }
@Override void doSetIntValue(Object source, int value) { if (value == -1) ((List) source).deselectAll(); else ((List) source).setSelection(value); }
private void selectFontFamilyInList( String fontFamily ) { lstFontFamily.deselectAll(); String[] items = lstFontFamily.getItems(); for( int i = 0; i < items.length; i++ ) { String item = items[ i ].toLowerCase( Locale.ENGLISH ); if( fontFamily.toLowerCase( Locale.ENGLISH ).equals( item ) ) { lstFontFamily.select( i ); } } }
/** * Deselects all selected items in the receiver's list. * <p> * Note: To clear the selection in the receiver's text field, * use <code>clearSelection()</code>. * </p> * * @exception org.eclipse.swt.SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #clearSelection */ public void deselectAll () { checkWidget (); list.deselectAll (); } void dropDown (boolean drop) {
/** * Deselects all selected items in the receiver's list. * <p> * Note: To clear the selection in the receiver's text field, * use <code>clearSelection()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #clearSelection */ public void deselectAll () { checkWidget (); text.setText(""); //$NON-NLS-1$ list.deselectAll (); } void dropDown (boolean drop) {
/** * Deselects all selected items in the receiver's list. * <p> * Note: To clear the selection in the receiver's text field, * use <code>clearSelection()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #clearSelection */ public void deselectAll () { checkWidget (); text.setText(""); //$NON-NLS-1$ list.deselectAll (); } void dropDown (boolean drop) {
/** * Deselects all selected items in the receiver's list. * <p> * Note: To clear the selection in the receiver's text field, * use <code>clearSelection()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #clearSelection */ public void deselectAll () { checkWidget (); text.setText(""); //$NON-NLS-1$ list.deselectAll (); } void dropDown (boolean drop) {
/** * Deselects all selected items in the receiver's list. * <p> * Note: To clear the selection in the receiver's text field, * use <code>clearSelection()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #clearSelection */ public void deselectAll () { checkWidget (); text.setText(""); //$NON-NLS-1$ list.deselectAll (); } void dropDown (boolean drop) {
/** * Deselects all selected items in the receiver's list. * <p> * Note: To clear the selection in the receiver's text field, * use <code>clearSelection()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #clearSelection */ public void deselectAll () { checkWidget (); text.setText(""); //$NON-NLS-1$ list.deselectAll (); } void dropDown (boolean drop) {
@Override public void runSupport() { if (list == null || list.isDisposed()) { return; } if (useCombo) { ((Combo)list).deselectAll(); } else { ((List)list).deselectAll(); } } });
@Override public void runSupport() { if (list == null || list.isDisposed()) { return; } if (useCombo) { ((Combo)list).deselectAll(); } else { ((List)list).deselectAll(); } } });
/** * Sets the selection in the receiver's text field to an empty * selection starting just before the first character. If the * text field is editable, this has the effect of placing the * i-beam at the start of the text. * <p> * Note: To clear the selected items in the receiver's list, * use <code>deselectAll()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #deselectAll */ public void clearSelection () { checkWidget (); text.clearSelection (); list.deselectAll (); } void comboEvent (Event event) {
/** * Sets the selection in the receiver's text field to an empty * selection starting just before the first character. If the * text field is editable, this has the effect of placing the * i-beam at the start of the text. * <p> * Note: To clear the selected items in the receiver's list, * use <code>deselectAll()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #deselectAll */ public void clearSelection () { checkWidget (); text.clearSelection (); list.deselectAll (); } void comboEvent (Event event) {
/** * Sets the selection in the receiver's text field to an empty * selection starting just before the first character. If the * text field is editable, this has the effect of placing the * i-beam at the start of the text. * <p> * Note: To clear the selected items in the receiver's list, * use <code>deselectAll()</code>. * </p> * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * * @see #deselectAll */ public void clearSelection () { checkWidget (); text.clearSelection (); list.deselectAll (); } void comboEvent (Event event) {
/** * Selects the item at the given zero-relative index in the receiver. * If the item at the index was already selected, it remains selected. * The current selection is first cleared, then the new item is selected, * and if necessary the receiver is scrolled to make the new selection visible. * Indices that are out of range are ignored. * * @param index the index of the item to select * * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> * @see List#deselectAll() * @see List#select(int) */ public void setSelection (int index) { checkWidget (); deselectAll (); selectFocusIndex (index); showSelection (); }
public void changed(FormControl control) { if (sc.isSuccessful()) { if (sc.isMultiple()) { String[] values = sc.getMultipleValues(); int[] indices = new int[values.length]; for (int i = 0; i < values.length; i++) { indices[i] = _values.indexOf(values[i]); } list.setSelection(indices); } else { list.setSelection(_values.indexOf(sc.getValue())); } } else { list.deselectAll(); } }
private void updateFrameworkList() { frameworkViewer.getList().removeAll(); if (isProjectFile(projectPath)) { frameworkViewer.getList().deselectAll(); frameworkViewer.add(Messages.DotnetTestTab_loadingFrameworks); frameworkViewer.getList().setEnabled(false); targetFrameworks = ProjectFileAccessor.getTargetFrameworks(projectPath); frameworkViewer.getList().removeAll(); if (targetFrameworks.length > 0) { frameworkViewer.add(targetFrameworks); frameworkViewer.getList().select(0); frameworkViewer.getList().setEnabled(true); loadFramework(); return; } } frameworkViewer.add(Messages.DotnetTestTab_noFrameworks); }