@Override public void keyPressed( KeyEvent e ) { if ( e.character == SWT.CR ) { wLaunch.notifyListeners( SWT.Selection, new Event() ); } } } );
public void handleNotifyDefaultSelection( Button button, JsonObject properties ) { Event event = createSelectionEvent( SWT.DefaultSelection, properties ); button.notifyListeners( SWT.DefaultSelection, event ); }
@Override public void performAction() { if(buttons == null) return; if(!selected) return; for(int i = 0 ; i < buttons.length ; i++) { buttons[i].setSelection(false); buttons[i].notifyListeners(SWT.Selection,new Event()); } }
public void handleNotifySelection( Button button, JsonObject properties ) { Event event = createSelectionEvent( SWT.Selection, properties ); if( ( button.getStyle() & SWT.RADIO ) != 0 && !button.getSelection() ) { event.time = -1; } button.notifyListeners( SWT.Selection, event ); }
/** * For tests purpose only. Select/unselect auto-save checkbox button * programmatically. A call of this method when the auto-save preference * page is closed won't do anything. * * @param enable * true to select auto-save, false to unselect */ protected void selectAutoSaveButton(boolean enable) { if (autoSaveButton != null && !autoSaveButton.isDisposed()) { autoSaveButton.setSelection(enable); autoSaveButton.notifyListeners(SWT.Selection, new Event()); } }
protected void updateCheckBox(Button curr) { super.updateCheckBox(curr); Event event= new Event(); event.type= SWT.Selection; event.display= curr.getDisplay(); event.widget= curr; curr.notifyListeners(SWT.Selection, event); }
@Override protected void updateCheckBox(Button curr) { super.updateCheckBox(curr); Event event= new Event(); event.type= SWT.Selection; event.display= curr.getDisplay(); event.widget= curr; curr.notifyListeners(SWT.Selection, event); }
@Override protected void updateCheckBox(Button curr) { super.updateCheckBox(curr); Event event= new Event(); event.type= SWT.Selection; event.display= curr.getDisplay(); event.widget= curr; curr.notifyListeners(SWT.Selection, event); }
public void update(RemediationOperation operation) { this.remediationOperation = operation; currentRemedy = searchBestDefaultRemedy(); bestBeingInstalledRelaxedButton.setData(remediationOperation.bestSolutionChangingTheRequest()); bestInstalledRelaxedButton.setData(remediationOperation.bestSolutionChangingWhatIsInstalled()); bestBeingInstalledRelaxedButton.setEnabled(remediationOperation.bestSolutionChangingTheRequest() != null); bestInstalledRelaxedButton.setEnabled(remediationOperation.bestSolutionChangingWhatIsInstalled() != null); bestBeingInstalledRelaxedButton.setSelection(false); bestInstalledRelaxedButton.setSelection(false); buildMyOwnSolution.setSelection(false); if (currentRemedy == remediationOperation.bestSolutionChangingTheRequest()) { bestBeingInstalledRelaxedButton.setSelection(true); bestBeingInstalledRelaxedButton.notifyListeners(SWT.Selection, new Event()); } else if (currentRemedy == remediationOperation.bestSolutionChangingWhatIsInstalled()) { bestInstalledRelaxedButton.setSelection(true); bestInstalledRelaxedButton.notifyListeners(SWT.Selection, new Event()); } else { buildMyOwnSolution.setData(currentRemedy); buildMyOwnSolution.setSelection(true); buildMyOwnSolution.notifyListeners(SWT.Selection, new Event()); } }
@Override public void performDefaults() { boolean autoSave = getPreferenceStore().getDefaultBoolean(IPreferenceConstants.SAVE_AUTOMATICALLY); autoSaveButton.setSelection(autoSave); autoSaveButton.notifyListeners(SWT.Selection, new Event()); int interval = getPreferenceStore().getDefaultInt(IPreferenceConstants.SAVE_AUTOMATICALLY_INTERVAL); intervalField.setStringValue(String.valueOf(interval)); intervalField.setEnabled(autoSave, intervalComposite); super.performDefaults(); }
event.type= SWT.Selection; event.stateMask= e.stateMask; fFindNextButton.notifyListeners(SWT.Selection, event); e.doit= false; button.setSelection(!button.getSelection()); button.notifyListeners(SWT.Selection, event); e.detail= SWT.TRAVERSE_NONE; e.doit= true;
_useDefault.notifyListeners(SWT.Selection, new Event()); _useDefault.setSelection(false); _userDefined.setSelection(true); _userDefined.notifyListeners(SWT.Selection, new Event()); _userDefined.notifyListeners(SWT.Selection, new Event());
event.type= SWT.Selection; event.stateMask= e.stateMask; fFindNextButton.notifyListeners(SWT.Selection, event); e.doit= false; button.setSelection(!button.getSelection()); button.notifyListeners(SWT.Selection, event); e.detail= SWT.TRAVERSE_NONE; e.doit= true;