distance = textDistance.getText();
Double d;
try {
d = Double.valueOf(distance);
} catch (NumberFormatException e) {
InfoMessage message = new InfoMessage(Messages.PrecisionParallel_error_distance_NaN, Type.ERROR);
messageImage.setImage(message.getImage());
messageText.setText(message.getText());
parallelContext.setMode(PrecisionToolsMode.ERROR);
parallelContext.update(PrecisionToolsContext.UPDATE_VIEW);
return;
}
if (d == 0) {
InfoMessage message = new InfoMessage(Messages.PrecisionParallel_error_distance_zero, Type.ERROR);
messageImage.setImage(message.getImage());
messageText.setText(message.getText());
parallelContext.setMode(PrecisionToolsMode.ERROR);
parallelContext.update(PrecisionToolsContext.UPDATE_VIEW);
return;
}
try {