protected void handleDelete(){
  ModifiableDBIDs todel=DBIDUtil.newHashSet();
  ModifiableDBIDs remain=DBIDUtil.newHashSet(dbids);
  DBIDArrayIter it=dbids.iter();
  for (  int row : table.getSelectedRows()) {
    it.seek(row);
    todel.add(it);
    remain.remove(it);
  }
  context.setSelection(new DBIDSelection(remain));
  for (DBIDIter iter=todel.iter(); iter.valid(); iter.advance()) {
    database.delete(iter);
  }
}

protected void handleDelete ( ) { ModifiableDBIDs todel = DBIDUtil . newHashSet ( ) ; ModifiableDBIDs remain = DBIDUtil . newHashSet ( dbids ) ; DBIDArrayIter it = dbids . iter ( ) ; for ( int row : table . getSelectedRows ( ) ) { it . seek ( row ) ; todel . add ( it ) ; remain . remove ( it ) ; } context . setSelection ( new DBIDSelection ( remain ) ) ; for ( DBIDIter iter = todel . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { database . delete ( iter ) ; } }
handle delete . < br > delete the marked objects in the database .
