public boolean isTablePollEnabled() { // Poll is enabled only when there is something being cleared for (TransMemory tm : getAllTranslationMemories()) { if (isTransMemoryBeingCleared(tm.getSlug())) { return true; } } return false; }
@Override public int compare(TransMemory o1, TransMemory o2) { SortingType.SortOption selectedSortOption = sortingType.getSelectedSortOption(); if (!selectedSortOption.isAscending()) { TransMemory temp = o1; o1 = o2; o2 = temp; } if (selectedSortOption.equals(SortingType.SortOption.ALPHABETICAL)) { return o1.getSlug().compareToIgnoreCase(o2.getSlug()); } else { return o1.getCreationDate().compareTo(o2.getCreationDate()); } }