public StateInteractive extent_to_whole_nets(){
  Set<Integer> curr_net_no_set=new TreeSet<Integer>();
  for (  BrdItem curr_item : items_list) {
    if (!(curr_item instanceof BrdConnectable))     continue;
    for (int index=0; index < curr_item.net_count(); ++index) {
      curr_net_no_set.add(curr_item.get_net_no(index));
    }
  }
  Set<BrdItem> new_selected_items=new TreeSet<BrdItem>();
  for (  Integer an_int : curr_net_no_set) {
    int curr_net_no=an_int.intValue();
    new_selected_items.addAll(r_brd.get_connectable_items(curr_net_no));
  }
  items_list=new_selected_items;
  if (new_selected_items.isEmpty()) {
    return return_state;
  }
  actlog_start_scope(LogfileScope.EXTEND_TO_WHOLE_NETS);
  filter();
  i_brd.repaint();
  return this;
}

public StateInteractive extent_to_whole_nets ( ) { Set < Integer > curr_net_no_set = new TreeSet < Integer > ( ) ; for ( BrdItem curr_item : items_list ) { if ( ! ( curr_item instanceof BrdConnectable ) ) continue ; for ( int index = 0 ; index < curr_item . net_count ( ) ; ++ index ) { curr_net_no_set . add ( curr_item . get_net_no ( index ) ) ; } } Set < BrdItem > new_selected_items = new TreeSet < BrdItem > ( ) ; for ( Integer an_int : curr_net_no_set ) { int curr_net_no = an_int . intValue ( ) ; new_selected_items . addAll ( r_brd . get_connectable_items ( curr_net_no ) ) ; } items_list = new_selected_items ; if ( new_selected_items . isEmpty ( ) ) { return return_state ; } actlog_start_scope ( LogfileScope . EXTEND_TO_WHOLE_NETS ) ; filter ( ) ; i_brd . repaint ( ) ; return this ; }
select also all items belonging to any net of the current selected items .
