@Override
  public void onProjectRemoved(Project project) {
    projects.remove(project);
    projectWidgets.remove(project);

    refreshTable(false);

    selectedProjects.remove(project);
    Ode.getInstance().getProjectToolbar().updateButtons();
  }
 private void changeSortOrder(SortField clickedSortField) {
   if (sortField != clickedSortField) {
     sortField = clickedSortField;
     sortOrder = SortOrder.ASCENDING;
   } else {
     if (sortOrder == SortOrder.ASCENDING) {
       sortOrder = SortOrder.DESCENDING;
     } else {
       sortOrder = SortOrder.ASCENDING;
     }
   }
   refreshTable(true);
 }
 @Override
 public void onProjectAdded(Project project) {
   projects.add(project);
   projectWidgets.put(project, new ProjectWidgets(project));
   refreshTable(true);
 }