public void actionPerformed(ActionEvent e) {
   int index = tablePlugins.getSelectedRow();
   CompilerPlugin plugin = (CompilerPlugin) getPluginsModel().getItem(index);
   EditPathDialog dialog = new EditPathDialog(myEditorContext.getProject(), CHOOSER_DESCRIPTOR);
   dialog.setPath(plugin.path());
   dialog.show();
   if (dialog.isOK()) {
     String path =
         CompilerPlugin.pathTo(new File(dialog.getPath()), myEditorContext.getModule());
     myPlugins.set(index, new CompilerPlugin(path, myEditorContext.getModule()));
     getPluginsModel().fireTableRowsUpdated(index, index);
   }
 }
 public void actionPerformed(ActionEvent e) {
   VirtualFile[] files =
       FileChooser.chooseFiles(myEditorContext.getProject(), CHOOSER_DESCRIPTOR);
   tablePlugins.clearSelection();
   for (VirtualFile file : files) {
     String path =
         CompilerPlugin.pathTo(VfsUtil.virtualToIoFile(file), myEditorContext.getModule());
     CompilerPlugin item = new CompilerPlugin(path, myEditorContext.getModule());
     getPluginsModel().addRow(item);
     tablePlugins.addSelection(item);
   }
   tablePlugins.requestFocusInWindow();
 }