protected DefaultTableModel createModel() {
   final MyTableModel tableModel = new MyTableModel();
   final String[] urls = getModel().getRootUrls(AnnotationOrderRootType.getInstance());
   for (String javadocUrl : urls) {
     tableModel.addTableItem(new TableItem(javadocUrl));
   }
   return tableModel;
 }
Beispiel #2
0
 public void actionPerformed(ActionEvent e) {
   VirtualFile[] files = getFiles();
   final MyTableModel tableModel = (MyTableModel) myTable.getModel();
   boolean changes = false;
   for (final VirtualFile file : files) {
     if (file != null) {
       tableModel.addTableItem(new TableItem(file));
       changes = true;
     }
   }
   if (changes) {
     saveData();
     TableUtil.selectRows(myTable, new int[] {tableModel.getRowCount() - 1});
   }
 }