TableItem[] item = checkTable.getCheckTable().getSelection();
if (item.length == 0) {
setErrorMessage("Voc� deve selecionar pelo menos um cheque.");
} else if (item.length == 1) {
setErrorMessage("");
Operation operation = ((Operation) system.query(new GetOperation(item[0].getText(1))));
PaymentCheck check = (PaymentCheck) operation.getPaymentType();
new ObservationCheckDialog(mainPanel.getShell(), check, operation, getMySelf()).open();
} else {
setErrorMessage("");
Map<String, PaymentCheck> checkMap = new HashMap<String, PaymentCheck>();
for (TableItem it : item) {
Operation operation = ((Operation) system.query(new GetOperation(it.getText(1))));
PaymentCheck check = (PaymentCheck) operation.getPaymentType();
checkMap.put(operation.getId(), check);
}
new ObservationCheckDialog(mainPanel.getShell(), checkMap, getMySelf()).open();
}