|
16 | 16 | <node TEXT="MapDriveInator" LOCALIZED_STYLE_REF="AutomaticLayout.level.root" FOLDED="false" ID="ID_696401721" LINK="https://github.com/EdoFro/Freeplane_Map-Drive-Inator"> |
17 | 17 | <attribute_layout NAME_WIDTH="99.75 pt" VALUE_WIDTH="228.74999 pt"/> |
18 | 18 | <attribute NAME="name" VALUE="mapDriveInator"/> |
19 | | -<attribute NAME="version" VALUE="v0.0.12"/> |
| 19 | +<attribute NAME="version" VALUE="v0.0.13"/> |
20 | 20 | <attribute NAME="author" VALUE="EdoFro"/> |
21 | 21 | <attribute NAME="freeplaneVersionFrom" VALUE="v1.9.0"/> |
22 | 22 | <attribute NAME="freeplaneVersionTo" VALUE=""/> |
|
255 | 255 | <node TEXT="added getFileFromLink(n) to get to the real file if it is in another drive and link is relative" ID="ID_143420426"/> |
256 | 256 | <node TEXT="umweg to get canonicalPaths from files that are in other drives and have relative links" ID="ID_1146418895"/> |
257 | 257 | </node> |
258 | | -<node TEXT="v0.0.12" ID="ID_1823296301"> |
| 258 | +<node TEXT="v0.0.12" FOLDED="true" ID="ID_1823296301"> |
259 | 259 | <node TEXT="MapDriveInator: Logs MDI version, Map path, baseFolderNode properties" ID="ID_299612617"/> |
260 | 260 | </node> |
| 261 | +<node TEXT="v.0.0.13" FOLDED="true" ID="ID_1424599841"> |
| 262 | +<node TEXT="Refactoring MapDriveInator for future changes" ID="ID_1154677857"/> |
| 263 | +<node TEXT="Now it marks fileNodes that couldn't be moved in drive" ID="ID_465948501"/> |
| 264 | +<node TEXT="Added 'notMovedRenamed' style to template mindmap" ID="ID_1688035947"/> |
| 265 | +<node TEXT="Now it controls if the MDI template used in the map is up to date" ID="ID_1895041994"/> |
| 266 | +<node TEXT="It logs which files were moved/renamed and which couldn't be moved/renamed
(in log.0 file)" ID="ID_1258770961"/> |
| 267 | +<node TEXT="Now newImportsNode 's note can show different levels of logging:
 - (0) no log at all
 - (1) Legacy message
 - (2) + Failed actions in drive (default)
 - (3) + Moved/renamed files in drive
 - (4) + Changes made to mindMap
 - (5) + MDI debug info
 - (6) + Elapsed times
 - (7) + Lists calculated to MD-inate" ID="ID_1752132670"/> |
| 268 | +<node TEXT="Correction: MDI doesn't mark already marked nodes to not raise false 'node changed' events in Freeplane" ID="ID_835803694"/> |
| 269 | +<node TEXT="Better information about new created folders" ID="ID_678080904"/> |
| 270 | +</node> |
261 | 271 | </node> |
262 | 272 | <node TEXT="license" FOLDED="true" POSITION="top_or_left" ID="ID_1028448710"> |
263 | 273 | <edge COLOR="#00ff00"/> |
@@ -947,7 +957,7 @@ For each menu item with an icon add an attribute with the icon key (use develope |
947 | 957 | </richcontent> |
948 | 958 | <node TEXT="Build add-on" ID="ID_14185460" LINK="menuitem:_addons.devtools.checkAddOn_on_single_node"/> |
949 | 959 | <node TEXT="revisar MDI.version" ID="ID_561101604" LINK="menuitem:_ExecuteScriptForSelectionAction"> |
950 | | -<attribute NAME="script1" VALUE="import org.freeplane.main.addons.AddOnProperties;
import org.freeplane.main.addons.AddOnsController;



List<AddOnProperties> installedAddOns = AddOnsController.getController().getInstalledAddOns()

def installedVersion = installedAddOns.find{it.name == 'mapDriveInator'}.version
def mdiVersion = MDI.version
def addonMapVersion = node.mindMap.root['version']

def MDIactualizada = installedVersion == mdiVersion
MDIactualizada &= addonMapVersion == mdiVersion

if (!MDIactualizada){
 def msg = """
 Ojo, las versiones del addon son differentes
 
 addon actualmente instalado : ${installedVersion}
 Librería MDI (MDI.version) : ${mdiVersion}
 mapa addon (este mapa) : ${addonMapVersion}
 
 """
 ui.showMessage(msg,2)
} else {
 ui.informationMessage('Todo ok')
 c.select(node.next)
}"/> |
| 960 | +<attribute NAME="script1" VALUE="import org.freeplane.main.addons.AddOnProperties;
import org.freeplane.main.addons.AddOnsController;



List<AddOnProperties> installedAddOns = AddOnsController.getController().getInstalledAddOns()

def installedVersion = installedAddOns.find{it.name == 'mapDriveInator'}.version
def mdiVersion = MDI.version
def mdiMinTemplateVersion = MDI.minTemplateVersion
def addonMapVersion = node.mindMap.root['version']
def sep = File.separator
def pathName = c.userDirectory.path + sep + "templates" + sep + "MapDriveInator" + sep + "MDI styles template.mm"
def templateMap = getMapFromPath(pathName, false)
def templateVersion = templateMap.storage[MDI.MapTemplateVersionStorage]//.toString()

def MDIactualizada = installedVersion == mdiVersion
MDIactualizada &= addonMapVersion == mdiVersion
MDIactualizada &= MDI.mapHasMinTemplate(templateMap)
//return MDIactualizada

def msg = """
 addon actualmente instalado : ${installedVersion}
 Librería MDI (MDI.version) : ${mdiVersion}
 mapa addon (este mapa) : ${addonMapVersion}
 
 min Template version : ${mdiMinTemplateVersion}
 Template version : ${templateVersion}
 """

if (!MDIactualizada){
 msg = 'Ojo, las versiones del addon son differentes\n' + msg
 ui.showMessage(msg, 2)
} else {
 ui.showMessage('Todo ok\n' + msg, 1)
 c.select(node.next)
}

// region: --------------------------- help methods ------------------------

 def getMapFromPath(filePath, withView){
 if(exists(filePath)){
 def m = c.mapLoader(filePath)
 if(withView) m.withView()
 return m.getMindMap()
 }
 }

 def exists(String path){
 exists(new File(path))
 }

 def exists(File file){
 file.isFile()
 }

// end:"/> |
951 | 961 | </node> |
952 | 962 | <node TEXT="Package add-on for publication" ID="ID_1767675080" LINK="menuitem:_addons.devtools.releaseAddOn_on_single_node"/> |
953 | 963 | <node TEXT="Export Translations" ID="ID_1894374378" LINK="menuitem:_addons.devtools.exportTranslations_on_single_node"/> |
|
0 commit comments