Controller.getCurrentController().selectMode(MModeController.MODENAME);
String urlText = JOptionPane.showInputDialog(KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner(),
TextUtils.getText("enter_map_url"), "http://");
if(urlText != null){
try {
String fixedUri = new FreeplaneUriConverter().fixPartiallyDecodedFreeplaneUriComingFromInternetExplorer(urlText);
URI uri = new URI(fixedUri);
LinkController.getController().loadURI(uri);
}
catch (Exception ex) {
UITools.errorMessage(TextUtils.format("url_open_error", urlText));