public void refreshList() { // OK, now we have a distinct list of directories or packages to work with... ArrayList<String> dirList = new ArrayList<String>( directories.keySet() ); Collections.sort( dirList ); // Put it in the listbox: wList.removeAll(); for ( int i = 0; i < dirList.size(); i++ ) { wList.add( dirList.get( i ) ); } }
public void getData() { if ( !opened ) { return; } wListSource.removeAll(); wListDest.removeAll(); for ( int i = 0; i < input.length; i++ ) { Integer idx = Integer.valueOf( i ); String str = selection.get( idx ); if ( str == null ) { // Not selected: show in source! wListSource.add( input[i] ); } else { // Selected, show in destination! wListDest.add( input[i] ); } } }
private void refreshFields() { wFields.removeAll(); for ( int i = 0; i < fields.size(); i++ ) { wFields.add( ( (BaseFileField) fields.get( i ) ).getName() ); } }
private void refreshFields() { wFields.removeAll(); for ( int i = 0; i < fields.size(); i++ ) { wFields.add( ( (TextFileInputField) fields.get( i ) ).getName() ); } }
private void refreshFields() { wFields.removeAll(); for ( int i = 0; i < fields.size(); i++ ) { wFields.add( fields.get( i ).getName() ); } }
private void refreshValidationsList() { wValidationsList.removeAll(); for ( Validation validation : selectionList ) { wValidationsList.add( validation.getName() ); } }
public void getData() { wListSource.removeAll(); wListDest.removeAll(); if ( input != null ) { for ( int i = 0; i < input.length; i++ ) { Integer idx = Integer.valueOf( i ); String str = selection.get( idx ); if ( str == null ) { // Not selected: show in source! wListSource.add( input[i] ); } else { // Selected, show in destination! wListDest.add( input[i] ); } } } setPageComplete( canFlipToNextPage() ); }
public void addAllToSelection() { // Just remove it all from both lists // Then add input[] to the destination list... // This is much faster. wListSource.removeAll(); wListDest.removeAll(); selection.clear(); for ( int i = 0; i < input.length; i++ ) { wListDest.add( input[i] ); selection.put( Integer.valueOf( i ), input[i] ); } setPageComplete( canFlipToNextPage() ); }
@Override public void mouseUp( MouseEvent mouseEvent ) { MappingIODefinition definition = new MappingIODefinition(); definition.setMainDataPath( true ); definitions.add( definition ); wInputList.add( tabTitle + ( definitions.size() > 1 ? String.valueOf( definitions.size() ) : "" ) ); wInputList.select( definitions.size() - 1 ); updateFields( definitions.get( wInputList.getSelectionIndex() ), input, wMainPath, wlInputStep, wInputStep, wbInputStep, wlOutputStep, wOutputStep, wbOutputStep, wlDescription, wDescription, wFieldMappings, wRenameOutput ); wlNoItems.setVisible( false ); wFieldsComposite.setVisible( true ); wRemoveButton.setEnabled( true ); } } );
public void getData() { wListSource.removeAll(); if ( input != null ) { for ( int i = 0; i < input.length; i++ ) { wListSource.add( input[i] ); } } setPageComplete( canFlipToNextPage() ); }
public void removeAllFromSelection() { // Just remove it all from both lists // Then add input[] to the source list... // This is much faster. wListSource.removeAll(); wListDest.removeAll(); selection.clear(); for ( int i = 0; i < input.length; i++ ) { wListSource.add( input[i] ); } setPageComplete( canFlipToNextPage() ); }
/** * Add one entry to the list of allowed values... */ protected void addAllowedValue() { EnterStringDialog dialog = new EnterStringDialog( shell, "", BaseMessages.getString( PKG, "ValidatorDialog.Dialog.AddAllowedValue.Title" ), BaseMessages.getString( PKG, "ValidatorDialog.Dialog.AddAllowedValue.Message" ), true, transMeta ); String value = dialog.open(); if ( !Utils.isEmpty( value ) ) { wAllowedValues.add( value ); } }
String[] samples = getRowSamples( position, width ); for ( int i = 0; i < samples.length; i++ ) { wSamples.add( samples[i] );
!Utils.isEmpty( definitions.get( i ).getInputStepname() ) ? definitions.get( i ).getInputStepname() : tabTitle + ( i > 0 ? String.valueOf( i + 1 ) : "" ); wInputList.add( label );
public void setAccessTypes() { if ( wDBType.getSelectionCount() < 1 ) { return; } int[] acc = DatabaseMeta.getAccessTypeList( wDBType.getSelection()[0] ); wAccType.removeAll(); for ( int i = 0; i < acc.length; i++ ) { wAccType.add( DatabaseMeta.getAccessTypeDescLong( acc[i] ) ); } // If nothing is selected: select the first item (mostly the native driver) if ( wAccType.getSelectionIndex() < 0 ) { wAccType.select( 0 ); } }
canvas.redraw(); for ( int i = 0; i < objects.length; i++ ) { list.add( objects[i].toString() );
if ( field.getAllowedValues() != null ) { for ( String allowedValue : field.getAllowedValues() ) { wAllowedValues.add( Const.NVL( allowedValue, "" ) );