return false;
}
if (transferData.getDestinations().size() > 0) {
Hermes hermes = null;
if (transferData.getHermesId() != null) {
hermes = (Hermes) HermesBrowser.getBrowser().getContext().lookup(transferData.getHermesId());
} else if (getSelectedHermesNode() != null) {
hermes = getSelectedHermesNode().getHermes();
}
if (hermes != null) {
StringBuffer question = new StringBuffer();
if (transferData.getDestinations().size() == 1) {
question.append("Do you want to add this destination to " + hermes.getId() + " ?");
} else {
question.append("Do you want to add these " + transferData.getDestinations().size() + " destinations to " + hermes.getId() + " ?");
}
if (JOptionPane.showConfirmDialog(HermesBrowser.getBrowser(), question.toString(), "Please confirm.", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
for (Iterator iter = transferData.getDestinations().iterator(); iter.hasNext();) {
DestinationConfig dConfig = (DestinationConfig) iter.next();