public void enableFields() { wHashfield.setEnabled( wHashcode.getSelection() ); wHashfield.setVisible( wHashcode.getSelection() ); wlHashfield.setEnabled( wHashcode.getSelection() ); }
void refreshObject() { int index = list.getSelectionIndex(); if ( index == -1 ) { return; } if ( check.getSelection() ) { ByteArrayOutputStream stream = new ByteArrayOutputStream(); PrintStream s = new PrintStream( stream ); errors[index].printStackTrace( s ); text.setText( stream.toString() ); text.setVisible( true ); canvas.setVisible( false ); } else { canvas.setVisible( true ); text.setVisible( false ); canvas.redraw(); } }
@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; } } });
text.setVisible( false ); layout();
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() ); }
private void selectWSDLOperation( String anOperationName ) throws KettleException { // Tab management // loadOperation( anOperationName ); // We close all tabs and reconstruct it all to make sure we always show the correct data // if ( inWsdlParamContainer != null ) { wStep.setVisible( true ); wlStep.setVisible( true ); if ( !inWsdlParamContainer.isArray() ) { wStep.setText( "1" ); } addTabFieldIn(); setComboValues(); } else { wStep.setText( "1" ); removeTabField( tabItemFieldIn ); tabItemFieldIn = null; } if ( outWsdlParamContainer != null ) { addTabFieldOut(); } else { removeTabField( tabItemFieldOut ); tabItemFieldOut = null; } }
wHashcode.setSelection( input.useHash() ); wHashfield.setEnabled( input.useHash() ); wHashfield.setVisible( input.useHash() ); wlHashfield.setEnabled( input.useHash() );
logDisplayText = new Text( sash, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.READ_ONLY ); spoon.props.setLook( logDisplayText ); logDisplayText.setVisible( true );
logDisplayText = new Text( sash, SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.READ_ONLY ); spoon.props.setLook( logDisplayText ); logDisplayText.setVisible( true );
wText.setVisible( true );
fdHelpLabel.bottom = new FormAttachment( 100, 0 ); wlHelpLabel.setLayoutData( fdHelpLabel ); wlHelpLabel.setVisible( false );
fdHelpLabel.bottom = new FormAttachment( 100, 0 ); wlHelpLabel.setLayoutData( fdHelpLabel ); wlHelpLabel.setVisible( false );
fdHelpLabel.bottom = new FormAttachment( 100, 0 ); wlHelpLabel.setLayoutData( fdHelpLabel ); wlHelpLabel.setVisible( false );
public void setNewContextRoot(String newContextRoot) { if (newContextRoot != null && newContextRoot.length() > 1) { newContextRootText.setText(newContextRoot); } else { newContextRootLabel.setVisible(false); newContextRootText.setVisible(false); } }
@Override public void setVisible(boolean visible) { super.setVisible(visible); if (visible) { fPluginText.setVisible(visible); fPluginText.setFocus(); } }
public void setVisible(boolean visible) { if (fLabel != null) fLabel.setVisible(visible); if (fText != null) fText.setVisible(visible); if (fBrowse != null) fBrowse.setVisible(visible); }
private void showHideDelayAmountWidgets() { final boolean visible = (action == GroupElementPostLaunchAction.DELAY || action == GroupElementPostLaunchAction.OUTPUT_REGEXP); fActionParamLabel.setVisible(visible); fActionParamWidget.setVisible(visible); if (action == GroupElementPostLaunchAction.DELAY) { fActionParamLabel.setText(DebugUIMessages.GroupLaunchConfigurationSelectionDialog_9); } else if (action == GroupElementPostLaunchAction.OUTPUT_REGEXP) { fActionParamLabel.setText(DebugUIMessages.GroupLaunchConfigurationSelectionDialog_regexp); } fActionParamLabel.getParent().layout(); }
/** * Sets hint text to be displayed and requests the layout * * @param toDisplay */ private void setHintTextToDisplay(boolean toDisplay) { GridData data = (GridData) hintText.getLayoutData(); data.exclude = !toDisplay; hintText.setVisible(toDisplay); hintText.requestLayout(); this.displayHintText = toDisplay; }
@Override public void enable() { boolean mvValue = (null != selectedCP) && (selectedCP.isMultiValued()); valueText.setVisible((null != selectedCP) && (!selectedCP.isMultiValued())); valueTextCombo.setVisible((null != selectedCP) && (!selectedCP.isMultiValued())); addButton.setEnabled(mvValue); int selected = valueTable.getSelectionIndex(); editButton.setEnabled(mvValue && selected > -1); removeButton.setEnabled(mvValue && selected > -1); upButton.setEnabled(mvValue && selected > 0); downButton.setEnabled(mvValue && (selected > -1) && (selected < (valueTable.getItemCount() - 1))); valueText.getParent().redraw(); }
private void createText( Composite uiParent ) { if( text == null ) { text = new Text( uiParent, SWT.SEARCH | SWT.ICON_SEARCH | SWT.ICON_CANCEL ); text.setData( RWT.CUSTOM_VARIANT, CUSTOM_VARIANT_TABRIS_UI ); text.setLayoutData( createRowData( TEXT_WIDTH, SWT.DEFAULT, false ) ); text.setVisible( false ); text.addListener( SWT.DefaultSelection, new TextDefaultSelectionListener() ); text.addFocusListener( new TextFocusListener() ); } }