public void addToTable(String typename) {

    TreeIter row = ls.appendRow();
    ls.setValue(row, ColData, typename);
    ls.setValue(row, ColObj, null);
    table.showAll();
  }
  public void fillList() {
    ArrayList filelist;
    table = (TreeView) app.getWidget("configwindow.files.table");

    ColData = new DataColumnString();
    ColObj = new DataColumnObject();
    ls = new ListStore(new DataColumn[] {ColData, ColObj});

    table.setEnableSearch(true); /*
         * allows to use keyboard to search
         * items matching the pressed keys
         */

    table.setAlternateRowColor(true); /* no comments smile */
    table.setModel(ls);

    TreeViewColumn col2 = new TreeViewColumn();
    CellRendererText render2 = new CellRendererText();
    col2.packStart(render2, true);
    col2.addAttributeMapping(render2, CellRendererText.Attribute.MARKUP, ColData);

    TreeViewColumn col3 = new TreeViewColumn();
    CellRendererText render3 = new CellRendererText();
    col3.packStart(render3, true);
    col3.setVisible(false);

    table.setSearchDataColumn(ColData);
    /* append columns */
    table.appendColumn(col2);
    table.appendColumn(col3);

    filelist = ConfigReader.getWatches();
    Iterator ite = filelist.iterator();
    while (ite.hasNext()) {
      addToTable(ite.next().toString());
    }
  }