protected void updateFilter() { pattern = null; filterString = null; if ( searchText != null && !searchText.isDisposed() && !Utils.isEmpty( searchText.getText() ) ) { if ( wbRegex.getSelection() ) { pattern = Pattern.compile( searchText.getText() ); } else { filterString = searchText.getText().toUpperCase(); } } refresh(); }
protected void updateFilter() { pattern = null; filterString = null; if ( searchText != null && !searchText.isDisposed() && !Utils.isEmpty( searchText.getText() ) ) { if ( wbRegex.getSelection() ) { pattern = Pattern.compile( searchText.getText() ); } else { filterString = searchText.getText().toUpperCase(); } } refreshTree(); if ( ( wbRegex.getSelection() && pattern != null ) || ( !wbRegex.getSelection() && filterString != null ) ) { while ( getNrEmptyFolders( wTree.getItems() ) > 0 ) { removeEmptyFolders( wTree.getItems() ); try { Thread.sleep( 0, 1 ); } catch ( InterruptedException e ) { // Ignore errors } } expandAllItems( wTree.getItems(), true ); } }
if ( wbRegex.getSelection() ) {
public void widgetSelected(SelectionEvent arg0) { commitMessageComponent .setSignedOffButtonSelection(signedOffItem .getSelection()); } });
public void widgetSelected(SelectionEvent e) { showUntracked = showUntrackedItem.getSelection(); filesViewer.refresh(true); updateFileSectionText(); updateMessage(); }
public void widgetSelected(SelectionEvent arg0) { commitMessageComponent.setChangeIdButtonSelection(changeIdItem .getSelection()); } });
public void widgetSelected(SelectionEvent arg0) { commitMessageComponent.setAmendingButtonSelection(amendingItem .getSelection()); } });
static void writeSelection( final ToolItem toolItem ) throws IOException { Boolean newValue = Boolean.valueOf( toolItem.getSelection() ); JSWriter writer = JSWriter.getWriterFor( toolItem ); writer.set( PROP_SELECTION, "selection", newValue, Boolean.FALSE ); }
static void preserveSelection( final ToolItem toolItem ) { IWidgetAdapter adapter = WidgetUtil.getAdapter( toolItem ); adapter.preserve( PROP_SELECTION, Boolean.valueOf( toolItem.getSelection() ) ); }
public void setSelection( boolean b ) { if ( item.isDisposed() || item.getSelection() == b ){ return; } item.setSelection( b ); }
boolean setRadioSelection (boolean value) { if ((style & SWT.RADIO) == 0) return false; if (getSelection () != value) { setSelection (value); sendSelectionEvent (SWT.Selection); } return true; }
boolean setRadioSelection (boolean value) { if ((style & SWT.RADIO) == 0) return false; if (getSelection () != value) { setSelection (value); sendSelectionEvent (SWT.Selection); } return true; }
private boolean isCommitWithoutFilesAllowed() { if (filesViewer.getCheckedElements().length > 0) return true; if (amendingItem.getSelection()) return true; return CommitHelper.isCommitWithoutFilesAllowed(repository); }
boolean setRadioSelection (boolean value) { if ((style & SWT.RADIO) == 0) return false; if (getSelection () != value) { setSelection (value); sendSelectionEvent (SWT.Selection); } return true; }
boolean setRadioSelection (boolean value) { if ((style & SWT.RADIO) == 0) return false; if (getSelection () != value) { setSelection (value); sendSelectionEvent (SWT.Selection); } return true; }
boolean setRadioSelection (boolean value) { if ((style & SWT.RADIO) == 0) return false; if (getSelection () != value) { setSelection (value); sendSelectionEvent (SWT.Selection); } return true; }
@Override protected String getValue() { int wrapStyle= getSelection(fWrapStyleItems); boolean forceSplit= fForceSplitItem.getSelection(); int indentStyle= getSelection(fIndentationItems); return DefaultCodeFormatterConstants.createAlignmentValue(forceSplit, wrapStyle, indentStyle); }
void sendSelection () { if ((style & SWT.RADIO) != 0) { if ((parent.getStyle () & SWT.NO_RADIO_GROUP) == 0) { selectRadio (); } } if ((style & SWT.CHECK) != 0) setSelection (!getSelection ()); sendSelectionEvent (SWT.Selection); }
public void handleNotifySelection( ToolItem item, JsonObject properties ) { Event event = createSelectionEvent( SWT.Selection, properties ); if( ( item.getStyle() & SWT.RADIO ) != 0 && !item.getSelection() ) { event.time = -1; } if( event.detail == SWT.ARROW ) { event.setBounds( getBounds( item ) ); } item.notifyListeners( SWT.Selection, event ); }
void recreateCanvas() { if (dbItem.getSelection() == ((canvas.getStyle() & SWT.DOUBLE_BUFFERED) != 0)) return; Object data = canvas.getLayoutData(); if (canvas != null) canvas.dispose(); createCanvas(parent); canvas.setLayoutData(data); parent.layout(true, true); }