コード例 #1
0
 @Override
 public void setMultipleSelections(List<Object[]> items) {
   if (items.isEmpty()) {
     infoPanel.setTitle("");
   } else {
     infoPanel.setTitle("Multiple projects (" + items.size() + ")");
   }
   details.removeAll();
   details.updateUI();
 }
コード例 #2
0
    private void refreshSelectedProject() {
      infoPanel.setTitle(projectName);

      details.removeAll();
      details.updateUI();

      if (detailsWorker != null) {
        detailsWorker.cancel(true);
      }
      detailsWorker = new DetailsWorker(projectName);
      detailsWorker.execute();
    }