if (idOfNext == getNextPanelDescriptor())
{
// finish transition
ParsedRTPUrl destUrl = null;
TrackControl[] trackControls = result.processor.getTrackControls();
for (int i = 0; i < trackControls.length; ++i)
{
if (!trackControls[i].isEnabled())
continue;
boolean audio = true; // TODO
ComponentValidator v = new ComponentValidator();
try {
v.validateNotEmpty(getRTPDestPanel().getTextSessionAddress(i), getRTPDestPanel().getLabelSessionAddress());
v.validateNotEmpty(getRTPDestPanel().getTextPort(i), getRTPDestPanel().getLabelPort());
v.validateInteger(getRTPDestPanel().getTextPort(i), getRTPDestPanel().getLabelPort());
v.validateNotEmpty(getRTPDestPanel().getComboTTL(i), getRTPDestPanel().getLabelTTL());
v.validateInteger(getRTPDestPanel().getComboTTL(i), getRTPDestPanel().getLabelTTL());
}
catch (ComponentValidationException e) {
ErrorDialog.showError(getRTPDestPanel(), e.getMessage());
return false;
}
final String sessionAddress = getRTPDestPanel().getTextSessionAddress(i).getText();
final int port = Integer.parseInt(getRTPDestPanel().getTextPort(i).getText());
final int ttl = Integer.parseInt((String) getRTPDestPanel().getComboTTL(i).getSelectedItem());
ParsedRTPUrlElement e = new ParsedRTPUrlElement();
e.host = sessionAddress;
e.port = port;
e.ttl = ttl;
e.type = audio ? ParsedRTPUrlElement.AUDIO : ParsedRTPUrlElement.VIDEO;
logger.fine("ParsedRTPUrlElement: " + e);
destUrl = new ParsedRTPUrl(e); // TODO: other tracks
}
try
{
config.destUrl = destUrl.toString();
result.step4_setDestUrlAndStart(config);
} catch (WizardStepException e)
{
showError(e);
return false;