本文整理了Java中org.eclipse.swt.widgets.Button.isDisposed()
方法的一些代码示例,展示了Button.isDisposed()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.isDisposed()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:isDisposed
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public void closeActiveButton() {
if ( button != null && !button.isDisposed() ) {
button.dispose();
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if (button != null && !button.isDisposed()) {
button.setText(text);
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void
run()
{
if ( !start_button.isDisposed()){
start_button.setEnabled( true );
}
if ( !cancel_button.isDisposed()){
cancel_button.setEnabled( false );
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if(btnOk == null || btnOk.isDisposed())
return;
btnOk.setEnabled(true);
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if (button != null && !button.isDisposed()) {
button.setText(text);
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if (button != null && !button.isDisposed()) {
button.setEnabled(b);
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if (btnShowDND != null && !btnShowDND.isDisposed()) {
btnShowDND.setSelection(hide_dnd_files);
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void widgetSelected(SelectionEvent e) {
bAutoScroll = false;
if (buttonAutoScroll != null && !buttonAutoScroll.isDisposed())
buttonAutoScroll.setSelection(false);
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if(bTestTCP != null && ! bTestTCP.isDisposed())
bTestTCP.setEnabled(true);
if(bTestUDP != null && ! bTestUDP.isDisposed())
bTestUDP.setEnabled(true);
if(bApply != null && ! bApply.isDisposed())
bApply.setEnabled(true);
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void
run()
{
if ( !start_button.isDisposed()){
start_button.setEnabled( true );
}
if ( !cancel_button.isDisposed()){
cancel_button.setEnabled( false );
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void runSupport() {
if (button != null && !button.isDisposed()) {
button.setSelection(checked);
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.datatools.connectivity.ui
protected void setPingButtonEnabled(boolean enabled)
{
if (btnPing != null && !btnPing.isDisposed())
{
btnPing.setEnabled(enabled);
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void handleEvent(Event event) {
params.constraints.setData("skipset", null);
swt_updateFields();
if (btnSaveConstraint != null && !btnSaveConstraint.isDisposed()) {
btnSaveConstraint.setEnabled(false);
btnResetConstraint.setEnabled(false);
}
}
});
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void widgetDisposed(DisposeEvent e) {
if ( !btnTreeView.isDisposed()){
btnTreeView.setEnabled( true );
torrentOptions.removeListener( file_listener );
}
}
});
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
protected void updateButtonsEnableState(IStatus status) {
super.updateButtonsEnableState(status);
if (fApplyButton != null && !fApplyButton.isDisposed()) {
fApplyButton.setEnabled(hasChanges() && !status.matches(IStatus.ERROR));
}
if (fSaveButton != null && !fSaveButton.isDisposed()) {
fSaveButton.setEnabled(!validateProfileName().matches(IStatus.ERROR));
}
}
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void widgetDisposed(DisposeEvent e) {
try{
UIUpdaterSWT.getInstance().removeUpdater(viewUpdater);
if ( !btnCheckAvailability.isDisposed()){
btnCheckAvailability.setEnabled( true );
}
}finally{
availability.destroy();
}
}
});
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
protected void updateButtonsEnableState(IStatus status) {
super.updateButtonsEnableState(status);
Button addButton= getButton(ADD_ID);
if (addButton != null && !addButton.isDisposed())
addButton.setEnabled(!status.matches(IStatus.ERROR));
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
private static void saveBooleanSetting(String key, Button button) {
if (button != null && !button.isDisposed() && button.getEnabled())
JavaPlugin.getDefault().getDialogSettings().put(key, button.getSelection());
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
protected void dispose() {
if (!fValuesCombo.isDisposed())
fValuesCombo.removeModifyListener(this);
if (!fClearButton.isDisposed())
fClearButton.removeSelectionListener(this);
}
}
代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.jface
public void deactivate() {
if (button != null && !button.isDisposed()) {
button.removeFocusListener(getButtonFocusListener());
}
super.deactivate();
}
内容来源于网络,如有侵权,请联系作者删除!