Package org.freeplane.features.url

Examples of org.freeplane.features.url.FreeplaneUriConverter


        final URL url;
        if(fileArgument.startsWith("http://")) {
          LinkController.getController().loadURI(new URI(fileArgument));
        }
                else if (fileArgument.startsWith(UrlManager.FREEPLANE_SCHEME + ':')) {
          String fixedUri = new FreeplaneUriConverter().fixPartiallyDecodedFreeplaneUriComingFromInternetExplorer(fileArgument);
          LinkController.getController().loadURI(new URI(fixedUri));
        }
                else {
          if (!FileUtils.isAbsolutePath(fileArgument)) {
            fileArgument = System.getProperty("user.dir") + System.getProperty("file.separator") + fileArgument;
View Full Code Here


    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));
View Full Code Here

    controller.getViewController().out(idString);
  }

  public String uri(final NodeModel node, File mindmapFile) {
      final String fileBasedUri = mindmapFile.toURI().toString() + '#' + node.createID();
    final FreeplaneUriConverter freeplaneUriConverter = new FreeplaneUriConverter();
    return freeplaneUriConverter.freeplaneUriForFile(fileBasedUri);
    }
View Full Code Here

TOP

Related Classes of org.freeplane.features.url.FreeplaneUriConverter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.