public void refreshLocale() { // OK, we have a distinct list of locale to work with... wLocale.removeAll(); wLocale.setItems( localeList.toArray( new String[localeList.size()] ) ); }
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] ); } } }
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() ); }
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() ); }
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 getData() { wListSource.removeAll(); if ( input != null ) { for ( int i = 0; i < input.length; i++ ) { wListSource.add( input[i] ); } } setPageComplete( canFlipToNextPage() ); }
private void refresh() { wSelection.removeAll();
public void refreshGrid() { applyChangedValue(); wTodo.removeAll(); wKey.setText( "" ); wMain.setText( "" ); wValue.setText( "" ); wSource.setText( "" ); selectedLocale = wLocale.getSelectionCount() == 0 ? null : wLocale.getSelection()[0]; selectedSourceFolder = wPackages.table.getSelectionCount() == 0 ? null : wPackages.table.getSelection()[0].getText( 1 ); selectedMessagesPackage = wPackages.table.getSelectionCount() == 0 ? null : wPackages.table.getSelection()[0].getText( 2 ); refreshPackages(); // Only continue with a locale & a messages package, otherwise we won't // budge ;-) // if ( selectedLocale != null && selectedSourceFolder != null && selectedMessagesPackage != null ) { // Get the list of keys that need a translation... // java.util.List<KeyOccurrence> todo = getTodoList( selectedLocale, selectedMessagesPackage, selectedSourceFolder, false ); String[] todoItems = new String[todo.size()]; for ( int i = 0; i < todoItems.length; i++ ) { todoItems[i] = todo.get( i ).getKey(); } wTodo.setItems( todoItems ); } }
wSamples.removeAll(); String[] samples = getRowSamples( position, width ); for ( int i = 0; i < samples.length; i++ ) {
wSamples.removeAll(); String[] samples = getRowSamples( from, length ); for ( int i = 0; i < samples.length; i++ ) {
wInputList.removeAll(); for ( int i = 0; i < definitions.size(); i++ ) { String 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 ); } }
System.arraycopy( diffObjects, 0, objects, 0, count ); System.arraycopy( diffErrors, 0, errors, 0, count ); list.removeAll(); text.setText( "" ); canvas.redraw();
wRegExpDisallowed.setText( Const.NVL( field.getRegularExpressionNotAllowed(), "" ) ); wAllowedValues.removeAll(); if ( field.getAllowedValues() != null ) { for ( String allowedValue : field.getAllowedValues() ) {