if ( network.isEnabled() && network.isSearchable() ) { combo.add( network.getNetworkName() ); combo.setData( network.getNetworkName(), network ); } else if ( network.isSearchable() ){ combo.remove( network.getNetworkName() ); } try { combo.remove( G2GuiResources.getString( "S_ALL" ) ); } catch ( IllegalArgumentException e ) { }   if ( combo.getItemCount() > 1 ) { combo.add( G2GuiResources.getString( "S_ALL" ) ); combo.setData( G2GuiResources.getString( "S_ALL" ), null ); combo.select( combo.indexOf( G2GuiResources.getString( "S_ALL" ) ) ); combo.setEnabled( true ); } else { combo.select( 0 ); combo.setEnabled( false ); }
combo.removeAll(); fillCombo();
	public void update( Observable o, Object arg ) {		if ( combo.isDisposed() ) return;				final NetworkInfo network = ( NetworkInfo ) arg;		this.combo.getDisplay().asyncExec( new Runnable() {			public void run() {				if ( network.isEnabled() && network.isSearchable() ) {					combo.add( network.getNetworkName() );					combo.setData( network.getNetworkName(), network );				}				else if ( network.isSearchable() ){					combo.remove( network.getNetworkName() );				}				try {					combo.remove( G2GuiResources.getString( "S_ALL" ) );				}				catch ( IllegalArgumentException e ) { }												if ( combo.getItemCount() > 1 ) {					combo.add( G2GuiResources.getString( "S_ALL" ) );					combo.setData( G2GuiResources.getString( "S_ALL" ), null );					combo.select( combo.indexOf( G2GuiResources.getString( "S_ALL" ) ) );					combo.setEnabled( true );				}				else {					combo.select( 0 );					combo.setEnabled( false );				}			}		} );	}