public boolean isApply() { return btnOk.isEnabled(); }
public void modifyText( ModifyEvent e ) { if ( replaceText.getText() != null && replaceText.getText().length() > 0 && btnNext.isEnabled() ) { btnReplace.setEnabled( true ); btnReplaceAll.setEnabled( true ); } else { btnReplace.setEnabled( false ); btnReplaceAll.setEnabled( false ); } } } );
public void addRunConfigurationListenerForExpandRemoteOption() { wRunConfiguration.addModifyListener( modifyEvent -> { List<Object> items = Arrays.asList( wRunConfiguration.getText(), false ); try { ExtensionPointHandler.callExtensionPoint( Spoon.getInstance().getLog(), KettleExtensionPoint .RunConfigurationIsRemote.id, items ); } catch ( KettleException ignored ) { // Ignore errors } getConfiguration().setRunConfiguration( wRunConfiguration.getText() ); wExpandRemote.setEnabled( (Boolean) items.get( 1 ) ); wExpandRemote.setSelection( wExpandRemote.isEnabled() && wExpandRemote.getSelection() ); } ); } }
in.setUseAutoinc( wAutoinc.getSelection() && wAutoinc.isEnabled() ); in.setReplaceFields( wReplace.getSelection() ); in.setUseHash( wHashcode.getSelection() );
@Override public void doubleClick(DoubleClickEvent event) { if (fEditButton.isEnabled()) editSelectedWorkingSet(); } });
/** * @return whether to generate p2 metadata on export */ protected boolean doExportMetadata() { return fExportMetadata.isEnabled() && fExportMetadata.getSelection(); }
@Override public void handleEvent(Event e) { if ( e.character == SWT.ESC){ if ( ok.isEnabled()){ shell.dispose(); } } } });
@Override public void handleEvent(Event e) { if ( e.character == SWT.ESC){ if ( cancel.isEnabled()){ wizardWindow.dispose(); } } } });
@SuppressWarnings("synthetic-access") @Override public void keyPressed(KeyEvent event) { if (event.character == SWT.DEL && event.stateMask == 0) { if (SREsPreferencePage.this.removeButton.isEnabled()) { removeSREs(); } } } });
/** * @param b */ public void setEnabled(boolean b) { variableCheckbox.setEnabled(b); variableCombo.setEnabled(variableCheckbox.getSelection() && variableCheckbox.isEnabled()); setupVariableCheckboxToolTip(); }
private IPluginModelBase getSelectedModel() { if (fTracingCheck.isEnabled()) { Object item = fPluginViewer.getStructuredSelection().getFirstElement(); if (item instanceof IPluginModelBase) return ((IPluginModelBase) item); } return null; }
/** * Returns <code>true</code> if searching should be restricted to entire * words, <code>false</code> if not. This is the case if the respective * checkbox is turned on, regex is off, and the checkbox is enabled, i.e. * the current find string is an entire word. * * @return <code>true</code> if the search is restricted to whole words */ private boolean isWholeWordSearch() { return isWholeWordSetting() && !isRegExSearchAvailableAndChecked() && (okToUse(fWholeWordCheckBox) ? fWholeWordCheckBox.isEnabled() : true); }
@Override boolean traverseReturn () { if (defaultButton == null || defaultButton.isDisposed ()) return false; if (!defaultButton.isVisible () || !defaultButton.isEnabled ()) return false; defaultButton.click (); return true; }
public void dispose() { if (saveSettings() && fRenameSubpackages.isEnabled()) saveBooleanSetting(RenameRefactoringWizard.PACKAGE_RENAME_SUBPACKAGES, fRenameSubpackages); super.dispose(); }
@Override public void dispose() { if (saveSettings()) if (fUpdateSimilarElements != null && !fUpdateSimilarElements.isDisposed() && fUpdateSimilarElements.isEnabled()) { saveBooleanSetting(RenameRefactoringWizard.TYPE_UPDATE_SIMILAR_ELEMENTS, fUpdateSimilarElements); getRefactoringSettings().put(RenameRefactoringWizard.TYPE_SIMILAR_MATCH_STRATEGY, fSelectedStrategy); } super.dispose(); }
@Override public void dispose() { if (saveSettings()) if (fUpdateSimilarElements != null && !fUpdateSimilarElements.isDisposed() && fUpdateSimilarElements.isEnabled()) { saveBooleanSetting(RenameRefactoringWizard.TYPE_UPDATE_SIMILAR_ELEMENTS, fUpdateSimilarElements); getRefactoringSettings().put(RenameRefactoringWizard.TYPE_SIMILAR_MATCH_STRATEGY, fSelectedStrategy); } super.dispose(); }
public void dispose() { if (saveSettings()) if (fUpdateSimilarElements != null && !fUpdateSimilarElements.isDisposed() && fUpdateSimilarElements.isEnabled()) { saveBooleanSetting(RenameRefactoringWizard.TYPE_UPDATE_SIMILAR_ELEMENTS, fUpdateSimilarElements); getRefactoringSettings().put(RenameRefactoringWizard.TYPE_SIMILAR_MATCH_STRATEGY, fSelectedStrategy); } super.dispose(); }