Commits

Lynn Rees committed 8cdf2ba

- back to that

Comments (0)

Files changed (1)

scripts/org/hardknots/wikd/wikdnode/WikdNode.java

 import org.freeplane.features.mode.Controller;
 import org.freeplane.features.text.mindmapmode.MTextController;
 
-import com.google.common.collect.ImmutableList;
-
 public class WikdNode {
 
 	private static Boolean firstSplit = ResourceController
 		final Controller c = getCurrentControl();
 		final MMapController m = getMMControl();
 		final NodeModel selected = c.getSelection().getSelected();
-		for (final NodeModel n : ImmutableList.copyOf(getSelecteds(c))) {
+		for (Object i : getSelecteds(c).toArray()) {
+			final NodeModel n = (NodeModel) i;
 			collect.add(trim(getPlain(n)));
 			if (n != selected) {
 				m.deleteNode(n);
 					if (!firstSplit) {
 						m.insertNode(new NodeModel(txt, n.getMap()), n);
 					}
-					// modification
 					mtext.setNodeText(n, txt);
 					flag = false;
 				} else {