@Override public void widgetSelected(SelectionEvent e) { if (!currentText) { imageType.setEnabled(false); textType.setEnabled(true); if (label != null && !label.isDisposed()) { label.setVisible(false); label.dispose(); } text = new Text(grpValue, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI); text.setEditable(false); text.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); text.setText(value); tranformText(textType, text); currentText = true; } } });
@Override public void widgetSelected(SelectionEvent e) { if (currentText) { imageType.setEnabled(true); textType.setEnabled(false); if (text != null && !text.isDisposed()) { text.setVisible(false); text.dispose(); } label = new Label(grpValue, SWT.NONE); label.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); label.setAlignment(SWT.CENTER); tranformImage(imageType, label); currentText = false; } } });
private void enableFields() { boolean visible = selectedField != null; wgType.setVisible( visible ); wgData.setVisible( visible ); wlFieldName.setVisible( visible ); wFieldName.setVisible( visible ); wlDescription.setVisible( visible ); wDescription.setVisible( visible ); wlErrorCode.setVisible( visible ); wErrorCode.setVisible( visible ); wlErrorDescription.setVisible( visible ); wErrorDescription.setVisible( visible ); wlSourceStep.setEnabled( wSourceValues.getSelection() ); wSourceStep.setEnabled( wSourceValues.getSelection() ); wlSourceField.setEnabled( wSourceValues.getSelection() ); wSourceField.setEnabled( wSourceValues.getSelection() ); wlAllowedValues.setEnabled( !wSourceValues.getSelection() ); wAllowedValues.setEnabled( !wSourceValues.getSelection() ); wbAddAllowed.setEnabled( !wSourceValues.getSelection() ); wbRemoveAllowed.setEnabled( !wSourceValues.getSelection() ); }
btnRadioButton_1.setText(RedisClient.i18nFile.getText(I18nFile.IMAGE)); final Combo imageType = new Combo(grpValueType, SWT.DROP_DOWN | SWT.READ_ONLY); imageType.setEnabled(false); imageType.setItems(new String[] { RedisClient.i18nFile.getText(I18nFile.BASE64IMAGE) });
private void updateRuntimeDependency() { boolean depends = fEclipseButton.getSelection(); fEclipseCombo.setEnabled(depends); fOSGiCombo.setEnabled(!depends); }
private void handleGenProxy() { boolean enabled = genProxyCheckbox_.getSelection(); outputFolderCombo_.setEnabled( enabled ); showMappingsCheckbox_.setEnabled( enabled ); }
@Override protected void enable(boolean enable) { fGroup.setEnabled(enable); fTagsCombo.setEnabled(enable); } }
@Override protected void setOptionEnabled(boolean enabled) { if (fLabel != null) { fLabel.setEnabled(enabled); fCombo.setEnabled(enabled); } }
/** * @see at.spardat.xma.mdl.UIDelegateClient#setEnabled(boolean) */ public void setEnabled (boolean what) { enabled_ = what; if (isUIAttached()) combo_.setEnabled(what); }
@Override protected void updateWidgetEnablements() { boolean antScriptSave= fAntScriptSaveCheckbox.getSelection(); fAntScriptLabel.setEnabled(antScriptSave); fAntScriptNamesCombo.setEnabled(antScriptSave); fAntScriptBrowseButton.setEnabled(antScriptSave); }
public void setEnabled(boolean enabled) { fMainComp.setEnabled(enabled); for (Combo element : fCombo) { element.setEnabled(enabled); } } }
private void checkRadioButtons() { selectFileCombo.setEnabled(selectFileRadio.getSelection()); browseFileButton.setEnabled(selectFileRadio.getSelection()); if (showAllButton != null) { showAllButton.setEnabled(selectRegisteredRadio.getSelection()); } treeViewer.getTree().setEnabled(selectRegisteredRadio.getSelection()); selectUrlCombo.setEnabled(selectUrlRadio.getSelection()); setOkButton(); }
private void changeToStringStyle(int style) { fGenerationSettings.toStringStyle= style; skipNullsButton.setEnabled(style != GenerateToStringOperation.STRING_FORMAT); boolean enableFormat= (style != GenerateToStringOperation.CUSTOM_BUILDER); formatLabel.setEnabled(enableFormat); formatCombo.setEnabled(enableFormat); styleButton.setEnabled(style == GenerateToStringOperation.CUSTOM_BUILDER); updateOKStatus(); }
/** * @param b */ public void setEnabled(boolean b) { variableCheckbox.setEnabled(b); variableCombo.setEnabled(variableCheckbox.getSelection() && variableCheckbox.isEnabled()); setupVariableCheckboxToolTip(); }
public void widgetSelected(SelectionEvent e) { boolean isEnabled = !inWorkspaceButton.getSelection(); locationLabel.setEnabled(isEnabled); locationCombo.setEnabled(isEnabled); locationBrowseButton.setEnabled(isEnabled); if(modifyingListener != null) { modifyingListener.modifyText(null); } } });
@Override public void setEnabled(boolean enabled, Composite parent) { super.setEnabled(enabled, parent); getComboBoxControl(parent).setEnabled(enabled); } }
public void widgetSelected(SelectionEvent e) { boolean inWorkspace = isInWorkspace(); locationLabel.setEnabled(!inWorkspace); locationCombo.setEnabled(!inWorkspace); } });
@Override protected void updateWidget() { if (getKey() != null) { fCombo.setEnabled(getEnabled()); fCombo.setText(getSelectedItem()); } else { fCombo.setText(""); //$NON-NLS-1$ fCombo.setEnabled(false); } }
@Override protected void updateWidget() { if (getKey() != null) { fCombo.setEnabled(getEnabled()); fCombo.setText(getSelectedItem()); } else { fCombo.setText(""); //$NON-NLS-1$ fCombo.setEnabled(false); } }
@Override protected void updateEnableState() { super.updateEnableState(); if (isOkToUse(fComboControl)) { fComboControl.setEnabled(isEnabled()); } }