本文整理了Java中org.eclipse.swt.widgets.Button.isEnabled()
方法的一些代码示例,展示了Button.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.isEnabled()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:isEnabled
暂无
代码示例来源:origin: caoxinyu/RedisClient
public boolean isApply() {
return btnOk.isEnabled();
}
代码示例来源:origin: pentaho/pentaho-kettle
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 );
}
}
} );
代码示例来源:origin: caoxinyu/RedisClient
public boolean canClose(){
boolean apply = getApplyButtion() == null?false:getApplyButtion().isEnabled();
boolean ttlApply = getTTLBtnApplyButton().isEnabled();
return !apply && !ttlApply;
}
代码示例来源:origin: pentaho/pentaho-kettle
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() );
} );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
in.setUseAutoinc( wAutoinc.getSelection() && wAutoinc.isEnabled() );
in.setReplaceFields( wReplace.getSelection() );
in.setUseHash( wHashcode.getSelection() );
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
public void doubleClick(DoubleClickEvent event) {
if (fEditButton.isEnabled())
editSelectedWorkingSet();
}
});
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
/**
* @return whether to generate p2 metadata on export
*/
protected boolean doExportMetadata() {
return fExportMetadata.isEnabled() && fExportMetadata.getSelection();
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void handleEvent(Event e) {
if ( e.character == SWT.ESC){
if ( ok.isEnabled()){
shell.dispose();
}
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void handleEvent(Event e) {
if ( e.character == SWT.ESC){
if ( cancel.isEnabled()){
wizardWindow.dispose();
}
}
}
});
代码示例来源:origin: io.sarl/io.sarl.eclipse
@SuppressWarnings("synthetic-access")
@Override
public void keyPressed(KeyEvent event) {
if (event.character == SWT.DEL && event.stateMask == 0) {
if (SREsPreferencePage.this.removeButton.isEnabled()) {
removeSREs();
}
}
}
});
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
/**
* @param b
*/
public void setEnabled(boolean b) {
variableCheckbox.setEnabled(b);
variableCombo.setEnabled(variableCheckbox.getSelection() && variableCheckbox.isEnabled());
setupVariableCheckboxToolTip();
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
private IPluginModelBase getSelectedModel() {
if (fTracingCheck.isEnabled()) {
Object item = fPluginViewer.getStructuredSelection().getFirstElement();
if (item instanceof IPluginModelBase)
return ((IPluginModelBase) item);
}
return null;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
public void dispose() {
if (saveSettings()) {
if (fRenameGetter.isEnabled())
saveBooleanSetting(RenameRefactoringWizard.FIELD_RENAME_GETTER, fRenameGetter);
if (fRenameSetter.isEnabled())
saveBooleanSetting(RenameRefactoringWizard.FIELD_RENAME_SETTER, fRenameSetter);
}
super.dispose();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public void dispose() {
if (saveSettings()) {
if (fRenameGetter.isEnabled())
saveBooleanSetting(RenameRefactoringWizard.FIELD_RENAME_GETTER, fRenameGetter);
if (fRenameSetter.isEnabled())
saveBooleanSetting(RenameRefactoringWizard.FIELD_RENAME_SETTER, fRenameSetter);
}
super.dispose();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor
/**
* 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);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
boolean traverseReturn () {
if (defaultButton == null || defaultButton.isDisposed ()) return false;
if (!defaultButton.isVisible () || !defaultButton.isEnabled ()) return false;
defaultButton.click ();
return true;
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void dispose() {
if (saveSettings() && fRenameSubpackages.isEnabled())
saveBooleanSetting(RenameRefactoringWizard.PACKAGE_RENAME_SUBPACKAGES, fRenameSubpackages);
super.dispose();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@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();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@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();
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
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();
}
内容来源于网络,如有侵权,请联系作者删除!