if(searchText.getText().equals("")) {
Map<String, ClassRoom> classRoomMap = (Map<String, ClassRoom>) system.query(new GetClassRoom());
List<ClassRoom> classRoomList = new ArrayList<ClassRoom>();
classRoomList.addAll(classRoomMap.values());
SortComparator comparator = new SortComparator();
Collections.sort(classRoomList, comparator);
for (ClassRoom classRoom : classRoomList) {
TableItem item = new TableItem(classRoomTable, SWT.NONE);
if(!classRoom.isActive()){
item.setForeground(new Color(null, 172,172,172));
}
item.setText(0, classRoom.getId());
item.setText(1, classRoom.getClassRoomName());
item.setText(2, String.valueOf(classRoom.getComputers().size()) + " computadores");
}
} else {
List<ClassRoom> list = (List<ClassRoom>) system.query(new GetClassRoomByToken(searchText.getText()));
SortComparator comparator = new SortComparator();
Collections.sort(list, comparator);
for (ClassRoom classRoom : list) {
TableItem item = new TableItem(classRoomTable, SWT.NONE);
if(!classRoom.isActive()){