Package org.freeplane.features.map.MapReader

Examples of org.freeplane.features.map.MapReader.NodeTreeCreator.create()


      final MapReader mapReader = mapController.getMapReader();
      final NodeTreeCreator nodeTreeCreator = mapReader.nodeTreeCreator(target.getMap());
      nodeTreeCreator.setHint(Hint.MODE, Mode.CLIPBOARD);
      for (int i = 0; i < textLines.length; ++i) {
        try {
          final NodeModel newModel = nodeTreeCreator.create(new StringReader(textLines[i]));
          newModel.removeExtension(FreeNode.class);
          final boolean wasLeft = newModel.isLeft();
          mapController.insertNode(newModel, target, asSibling, isLeft, wasLeft != isLeft);
        }
        catch (final XMLException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.