File tree Expand file tree Collapse file tree
Tutorial-o-Matic/src/main/groovy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ class ToM{
163163 def infoAccion = toma. getActionInfoMap(nodo)
164164 if (infoAccion){
165165 def msgHtml = infoAccion. instructions
166- def bttnText = ' Show me '
166+ def bttnText = ' Show it in the menu '
167167 def bttnToolTip = " Click to see where is ${ toma.apos(infoAccion.label)} in Freeplane Menu"
168168 def bttnAction = { e ->
169169 def bttn = e. source
@@ -342,11 +342,12 @@ class ToM{
342342 def bttn = e. source
343343 bttn. setEnabled(enabled)
344344 def nodoTarget = c. selected
345+ def existentesNodoTarget = nodoTarget. findAll()
345346 nodoSource. children. each{n ->
346347 nodoTarget. appendBranch(n)
347348 }
348349 def idSource = ( nodoSource. findAll() - nodoSource )* . id
349- def idTarget = ( nodoTarget. findAll() - nodoTarget )* . id
350+ def idTarget = ( nodoTarget. findAll() - existentesNodoTarget )* . id
350351 for (def i = 0 ; i < idSource. size() ; i++ ){
351352 myP. idDictionary[ idSource[i] ] = idTarget[i]
352353 }
@@ -430,7 +431,7 @@ class ToM{
430431 // region: help / debug
431432
432433 def static uiMsg (texto ){
433- // ui.informationMessage(texto.toString())
434+ // ui.informationMessage(texto.toString())
434435 }
435436
436437 // end:
You can’t perform that action at this time.
0 commit comments