updateAsynchronousSettings();
updateResponseGeneratorLabel();
}
private void updateResponseGeneratorLabel() {
OperationId opId = model.getResponseGenerator();
if (opId == null) {
responseGeneratorLabel.setText("[Select an operation in the table above]");
responseGeneratorLabel.setForeground(Colors.ERROR_TEXT_COLOR);
responseGeneratorLabel.setIcon(null);
} else {
Operation op = (operationLookup != null ? operationLookup.getEntity(opId, Operation.class) : null);
responseGeneratorLabel.setText(op != null ? op.getName() : opId.toString());
responseGeneratorLabel.setForeground(Color.BLACK);
responseGeneratorLabel.setIcon(EntityIcons.forType(EntityType.Operation).getDefaultIcon(Size.SMALL));
}
}