-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathimportOPMLtoselectednode.addon.mm
535 lines (492 loc) · 26.6 KB
/
importOPMLtoselectednode.addon.mm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
<map version="freeplane 1.5.9">
<!--To view this file, download free mind mapping software Freeplane from http://freeplane.sourceforge.net -->
<attribute_registry SHOW_ATTRIBUTES="hide"/>
<node TEXT="Import OPML to selected node" FOLDED="false" ID="ID_1723255651" CREATED="1283093380553" MODIFIED="1485298692207" LINK="https://github.com/adxsoft/ImportOPMLtoselectednode.addon" BACKGROUND_COLOR="#97c7dc">
<font SIZE="16" BOLD="true" ITALIC="true"/>
<hook NAME="MapStyle">
<properties show_icon_for_attributes="true" fit_to_viewport="false;" show_note_icons="true"/>
<map_styles>
<stylenode LOCALIZED_TEXT="styles.root_node" STYLE="oval" UNIFORM_SHAPE="true" VGAP_QUANTITY="24.0 pt">
<font SIZE="24"/>
<stylenode LOCALIZED_TEXT="styles.predefined" POSITION="right" STYLE="bubble">
<stylenode LOCALIZED_TEXT="default" MAX_WIDTH="600.0 px" COLOR="#000000" STYLE="as_parent">
<font NAME="SansSerif" SIZE="10" BOLD="false" ITALIC="false"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.details"/>
<stylenode LOCALIZED_TEXT="defaultstyle.attributes">
<font SIZE="9"/>
</stylenode>
<stylenode LOCALIZED_TEXT="defaultstyle.note"/>
<stylenode LOCALIZED_TEXT="defaultstyle.floating">
<edge STYLE="hide_edge"/>
<cloud COLOR="#f0f0f0" SHAPE="ROUND_RECT"/>
</stylenode>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.user-defined" POSITION="right" STYLE="bubble">
<stylenode LOCALIZED_TEXT="styles.topic" COLOR="#18898b" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subtopic" COLOR="#cc3300" STYLE="fork">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.subsubtopic" COLOR="#669900">
<font NAME="Liberation Sans" SIZE="10" BOLD="true"/>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.important">
<icon BUILTIN="yes"/>
</stylenode>
</stylenode>
<stylenode LOCALIZED_TEXT="styles.AutomaticLayout" POSITION="right" STYLE="bubble">
<stylenode LOCALIZED_TEXT="AutomaticLayout.level.root" COLOR="#000000">
<font SIZE="18"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,1" COLOR="#0033ff">
<font SIZE="16"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,2" COLOR="#00b439">
<font SIZE="14"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,3" COLOR="#990000">
<font SIZE="12"/>
</stylenode>
<stylenode LOCALIZED_TEXT="AutomaticLayout.level,4" COLOR="#111111">
<font SIZE="10"/>
</stylenode>
</stylenode>
</stylenode>
</map_styles>
</hook>
<hook NAME="AutomaticEdgeColor" COUNTER="11" RULE="ON_BRANCH_CREATION"/>
<attribute_layout NAME_WIDTH="99.89999523639702 pt" VALUE_WIDTH="296.9999858379371 pt"/>
<attribute NAME="name" VALUE="ImportOPMLtoselectednode"/>
<attribute NAME="link" VALUE="https://github.com/adxsoft/ImportOPMLtoselectednode.addon" OBJECT="java.net.URI|https://github.com/adxsoft/ImportOPMLtoselectednode.addon"/>
<attribute NAME="version" VALUE="v0.2"/>
<attribute NAME="author" VALUE="adxsoft (Allan)"/>
<attribute NAME="freeplaneVersionFrom" VALUE="v1.3.5"/>
<attribute NAME="freeplaneVersionTo" VALUE=""/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
The homepage of this add-on should be set as the link of the root node.
</p>
<p>
The basic properties of this add-on. They can be used in script names and other attributes, e.g. "${name}.groovy".
</p>
<ul>
<li>
name: The name of the add-on, normally a technically one (no spaces, no special characters except _.-).
</li>
<li>
author: Author's name(s) and (optionally) email adresses.
</li>
<li>
version: Since it's difficult to protect numbers like 1.0 from Freeplane's number parser it's advised to prepend a 'v' to the number, e.g. 'v1.0'.
</li>
<li>
freeplane-version-from: The oldest compatible Freeplane version. The add-on will not be installed if the Freeplane version is too old.
</li>
<li>
freeplane-version-to: Normally empty: The newest compatible Freeplane version. The add-on will not be installed if the Freeplane version is too new.
</li>
</ul>
</body>
</html>
</richcontent>
<node TEXT="scripts" FOLDED="true" POSITION="right" ID="ID_1694956411" CREATED="1381771547809" MODIFIED="1385408757667">
<edge COLOR="#00007c"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
An add-on may contain multiple scripts. The node text defines the script name (e.g. inserInlineImage.groovy). Its properties have to be configured via attributes:
</p>
<p>
</p>
<p>
* menuLocation: <locationkey>
</p>
<p>
   - Defines where the menu location.
</p>
<p>
   - See mindmapmodemenu.xml for how the menu locations look like.
</p>
<p>
   - http://freeplane.bzr.sf.net/bzr/freeplane/freeplane_program/trunk/annotate/head%3A/freeplane/resources/xml/mindmapmodemenu.xml
</p>
<p>
   - This attribute is mandatory
</p>
<p>
</p>
<p>
* menuTitleKey: <key>
</p>
<p>
   - The menu item title will be looked up under the translation key <key> - don't forget to define its translation.
</p>
<p>
   - This attribute is mandatory
</p>
<p>
</p>
<p>
* executionMode: <mode>
</p>
<p>
   - The execution mode as described in the Freeplane wiki (http://freeplane.sourceforge.net/wiki/index.php/Scripting)
</p>
<p>
   - ON_SINGLE_NODE: Execute the script once. The <i>node</i> variable is set to the selected node.
</p>
<p>
   - ON_SELECTED_NODE: Execute the script n times for n selected nodes, once for each node.
</p>
<p>
   - ON_SELECTED_NODE_RECURSIVELY: Execute the script on every selected node and recursively on all of its children.
</p>
<p>
   - In doubt use ON_SINGLE_NODE.
</p>
<p>
   - This attribute is mandatory
</p>
<p>
</p>
<p>
* keyboardShortcut: <shortcut>
</p>
<p>
   - Optional: keyboard combination / accelerator for this script, e.g. control alt I
</p>
<p>
   - Use lowercase letters for modifiers and uppercase for letters. Use no + signs.
</p>
<p>
   - The available key names are listed at http://download.oracle.com/javase/1.4.2/docs/api/java/awt/event/KeyEvent.html#VK_0
</p>
<p>
     In the list only entries with a 'VK_' prefix count. Omit the prefix in the shortcut definition.
</p>
<p>
</p>
<p>
* Permissions that the script(s) require, each either false or true:
</p>
<p>
   - execute_scripts_without_asking
</p>
<p>
   - execute_scripts_without_file_restriction: permission to read files
</p>
<p>
   - execute_scripts_without_write_restriction: permission to create/change/delete files
</p>
<p>
   - execute_scripts_without_exec_restriction: permission to execute other programs
</p>
<p>
   - execute_scripts_without_network_restriction: permission to access the network
</p>
<p>
  Notes:
</p>
<p>
  - The set of permissions is fixed.
</p>
<p>
  - Don't change the attribute names, don't omit one.
</p>
<p>
  - Set the values either to true or to false
</p>
<p>
  - In any case set execute_scripts_without_asking to true unless you want to annoy users.
</p>
</body>
</html>
</richcontent>
<node TEXT="ImportOPMLtoselectednode.groovy" FOLDED="true" ID="ID_1884275784" CREATED="1375422555989" MODIFIED="1484695129036">
<attribute_layout NAME_WIDTH="258.2999876832968 pt" VALUE_WIDTH="285.2999863958365 pt"/>
<attribute NAME="menuTitleKey" VALUE="Import OPML to selected node"/>
<attribute NAME="menuLocation" VALUE="/menu_bar/file/import"/>
<attribute NAME="executionMode" VALUE="on_single_node"/>
<attribute NAME="keyboardShortcut" VALUE=""/>
<attribute NAME="execute_scripts_without_asking" VALUE="true"/>
<attribute NAME="execute_scripts_without_file_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_write_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_exec_restriction" VALUE="true"/>
<attribute NAME="execute_scripts_without_network_restriction" VALUE="false"/>
<node TEXT="/*
Freeplane Addon Import OPML to currently selected node
v0.1 18th Jan 2017

Version History
v0.1 First Release

To Use Script
1. create new node or select an existing node
2. In Freeplane 'Tools' menu select 'Scripts'
3. Choose the script 'Import OPML to selected node'
4. Choose the opml file when requested
5. OPML nodes and notes will be imported within the selected node

Note. Before running this script you can add an attribute to the selected note
called 'opml file'.

The 'opml file' attribute value should have a valid full path to the
opml file (eg /Users/adxsoft/myopmldata.opml or c:/opmlfiles/myopmldata.opml).

The script checks to see if the 'opml file' attribute is present and uses
that information to find the opml file.

If the 'opml file' attribute is not in the selected node the user will
be prompted to locate the opml file.

*/
import javax.swing.JFileChooser
import javax.swing.filechooser.FileNameExtensionFilter
import static javax.xml.stream.XMLInputFactory.newInstance as staxFactory
import javax.xml.stream.XMLStreamReader as StaxReader
import java.io.File as File
import groovy.xml.dom.DOMCategory

import javax.swing.JFileChooser
import javax.swing.filechooser.FileNameExtensionFilter

import static java.nio.charset.StandardCharsets.*;

def validfile=false
if (node['opml file'].text != null) {
 def inputfile = new File(node['opml file'].text)
 if (inputfile.exists()) {
 opmlfiledata=inputfile.text
 validfile=true
 } else {
 c.statusInfo='file in attribute "opml file" > '+inputfile+' not found - script cancelled by user'
 return
 }
} else {
 chooser = new JFileChooser()
 chooser.setDialogTitle('Import OPML into selected node')
 FileNameExtensionFilter filter = new FileNameExtensionFilter("OPML files", "opml")
 chooser.setFileFilter(filter);
 returnVal = chooser.showOpenDialog();
 if (returnVal == JFileChooser.APPROVE_OPTION) {
 c.statusInfo='User has selected file '+chooser.selectedFile
 opmlfilename=chooser.selectedFile.toString()
 def inputfile = new File(opmlfilename)
 if (inputfile.exists()) {
 opmlfiledata = ''
 inrichcontent = false
 // preprocess any HTML data in richcontent tags
 inputfile.each { String line ->
 if (line.contains('<richcontent>')) {
 inrichcontent = true
 opmlfiledata += line + '\n'
 }
 else if (line.contains('</richcontent>')) {
 inrichcontent = false
 opmlfiledata += line + '\n'
 }
 else if (inrichcontent) {
 println "process ${line}"
 def unescapeddata = line.replaceAll('<', /&lt;/)
 .replaceAll('>', /&gt;/)
 .replaceAll('"', /&quot;/)
 .replaceAll("'", /&apos;/)
 .replaceAll('&', /&amp;/)
 opmlfiledata += unescapeddata + '\n'

 }
 else {
 opmlfiledata += line + '\n'
 }
 }

 validfile = true
 } else {
 c.statusInfo='file in attribute "opml file" > '+inputfile+' not found - script cancelled by user'
 return
 }
 } else {
 c.statusInfo='"Import OPML into selected node" script cancelled by user'
 return
 }
}

if (!validfile) return

def outlines = []
def outline
def seenTag

opmlreader = new StringReader(opmlfiledata)

StaxReader.metaClass.attr = {s -> delegate.getAttributeValue(null, s)}
def reader = staxFactory().createXMLStreamReader(opmlreader)
def name=''
def depth=0
def lastoutlinedetails=[:]
def currentnodes=[:]
def lastdepth=0
def lastoutlinetitle='top'
lastoutlinedetails[depth]=['top',-1]
currentnodes[depth]=node
currentnode=node
richcontent=null
while (reader.hasNext()) {
 if (reader.startElement) {
 name = reader.localName

 // found outline tag in opml file
 if (name == 'outline') {

 title = reader.attr('text')
 note = reader.attr('_note')
 outline = [text:reader.attr('text')]
 if (depth == lastdepth) {
 println '--'*depth+'add child '+title+' to parent '+lastoutlinedetails[depth][0]
 newnode=currentnode.createChild(title)
 if (note != null) {
 def escapednote = note.replaceAll(/&lt;/, '<')
 .replaceAll(/&gt;/, '>')
 .replaceAll(/&quot;/, '"')
 .replaceAll(/&apos;/, "'")
 .replaceAll(/&amp;/, '&')
 newnode.noteText="<html><head></head><body>${escapednote}</body></html>" // handles utf-8 ok
 }
 currentnode=newnode
 } else {
 println ' - creating SIBLING '+title+' of node '+lastoutlinedetails[depth][0]
 newnode=currentnodes[depth].createChild(title)
 if (note != null) {
 def escapednote = note.replaceAll(/&lt;/, '<')
 .replaceAll(/&gt;/, '>')
 .replaceAll(/&quot;/, '"')
 .replaceAll(/&apos;/, "'")
 .replaceAll(/&amp;/, '&')
 newnode.noteText="<html><head></head><body>${escapednote}</body></html>" // handles utf-8 ok
 }
 currentnode=newnode
 }
 depth+=1
 lastoutlinedetails[depth]=[title,note,richcontent]
 currentnodes[depth]=currentnode
 lastdepth=depth
 lastoutlinetitle=title
 }
 else if (name in ['note','richcontent']) {
 seenTag=name
 outline[seenTag]=''
 }
 } else if (reader.characters) {
 if (seenTag) {
 if (reader.text.trim() !='') {
 outline[seenTag] += reader.text.trim()
 }
 }
 } else if (reader.endElement) {
 name = reader.localName
 if (name == 'outline') {
 outlines +=outline
 depth-=1
 title = lastoutlinedetails[depth][0]
 note = lastoutlinedetails[depth][1]
 seenTag = null
 }
 if (name=='richcontent') {
 try {
 def escapeddetailsText = outline['richcontent'].replaceAll(/&lt;/, '<')
 .replaceAll(/&gt;/, '>')
 .replaceAll(/&quot;/, '"')
 .replaceAll(/&apos;/, "'")
 .replaceAll(/&amp;/, '&')
 newnode.detailsText = escapeddetailsText
 }
 catch (Exception e) {
 newnode.detailsText = "Unable to load node detail for node ${name}"
 }
 }
 }
 reader.next()
}
c.statusInfo='Imported OPML data into node "'+node.text+'"'" ID="ID_621368943" CREATED="1389207772225" MODIFIED="1484693332840"/>
</node>
</node>
<node TEXT="zips" POSITION="right" ID="ID_294220045" CREATED="1381771547840" MODIFIED="1385408757698">
<edge COLOR="#007c00"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
An add-on may contain any number of nodes containing zip files.
</p>
<p>
</p>
<p>
 - The immediate child nodes contain a description of the zip. The devtools script releaseAddOn.groovy allows automatic zip creation if the name of this node matches a directory in the current directory.
</p>
<p>
</p>
<p>
 - The child nodes of these nodes contain the actual zip files.
</p>
<p>
</p>
<p>
 - Any zip file will be extracted in the <installationbase>. Currently, <installationbase> is always Freeplane's <userhome>, e.g. ~/.freeplane/1.2.
</p>
<p>
</p>
<p>
 - The files will be processed in the sequence as seen in the map.
</p>
<p>
</p>
<p>
 - Zip files must be uploaded into the map via the script <i>Tools->Scripts->Insert Binary</i> since they have to be (base64) encoded as simple strings.
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="images" POSITION="right" ID="ID_64645831" CREATED="1381771547856" MODIFIED="1385408757698">
<edge COLOR="#7c007c"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
An add-on may define any number of images as child nodes of the images node. The actual image data has to be placed as base64 encoded binary data into the text of a subnode.
</p>
<p>
The images are saved to the <i>${installationbase}/resources/images</i> directory.
</p>
<p>
</p>
<p>
The following images should be present:
</p>
<ul>
<li>
<i>${name}.png</i>, like <i>oldicons-theme.png</i>. This will be used in the app-on details dialog.
</li>
<li>
<i>${name}-icon.png</i>, like <i>oldicons-theme-icon.png</i>. This will be used in the app-on overview.
</li>
</ul>
<p>
Images can be added automatically by releaseAddOn.groovy or must be uploaded into the map via the script <i>Tools->Scripts->Insert Binary</i> since they have to be (base64) encoded as simple strings.
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="description" FOLDED="true" POSITION="left" ID="ID_1720577024" CREATED="1381756995184" MODIFIED="1485297774595">
<edge COLOR="#ff0000"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
Description would be awkward to edit as an attribute.
</p>
<p>
So you have to put the add-on description as a child of the <i>'description'</i> node.
</p>
</body>
</html>
</richcontent>
<node ID="ID_1710504899" CREATED="1381010218612" MODIFIED="1485297774594"><richcontent TYPE="NODE">
<html>
<head>
</head>
<body>
<p>
 Freeplane Add-on to import an OPML file to Freeplane.
</p>
<p>
</p>
<p>
This script will import an OPML format file into Freemind nodes, notes and node details.
</p>
<p>
</p>
<p>
OPML is a popular export format for mind maps and OPML has nodes recorded in <b><i>outline </i></b>tags.
</p>
<p>
</p>
<p>
Within each <b><i>outline</i></b> tag there are
</p>
<ul>
<li>
a <i><b>text attribute</b></i> which is the node title
</li>
<li>
Optionally,  a <b><i>_note attribute</i></b> which is the note related to the node. If present the _note attribute value is copied to the <i><b>node note</b></i> (node.noteText)
</li>
<li>
Optionally, a child richcontent tag. If present the contents between the <richcontent> tag and the </richcontent> tag will be copied to the <b><i>node details</i></b> (node.detailsText)
</li>
</ul>
<p>
</p>
<p>
 To use the add-on
</p>
<ul>
<li>
create a new node or select an existing node in a map
</li>
<li>
In Freeplane menus choose 'File/Import/Import OPML to selected node'
</li>
<li>
Choose the opml file when requested <i>Note. if the selected node has an attribute called </i><b>'opml file' </b><i>with the value set to the full path of the opml file, then that file will be imported. if the selected node has no attribute 'opml file' you will be prompted for the files location</i>
</li>
<li>
OPML nodes and notes will be imported within the selected node
</li>
</ul>
</body>
</html>
</richcontent>
</node>
</node>
<node TEXT="changes" POSITION="left" ID="ID_1266504671" CREATED="1381756995246" MODIFIED="1385408757620">
<edge COLOR="#0000ff"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
Change log of this add-on: append one node for each noteworthy version and put the details for each version into a child node.
</p>
</body>
</html>
</richcontent>
<node TEXT="v0.1" ID="ID_989474074" CREATED="1381515647301" MODIFIED="1484694600222">
<node TEXT="first release" ID="ID_1447942083" CREATED="1381515663492" MODIFIED="1381515676152"/>
</node>
<node TEXT="v0.2" ID="ID_1223620623" CREATED="1485298411734" MODIFIED="1485298414748">
<node TEXT="add on incorrectly had a preferences tab panel. Preferences tab panel removed." ID="ID_1826970325" CREATED="1485298417221" MODIFIED="1485298477426"/>
</node>
</node>
<node TEXT="license" FOLDED="true" POSITION="left" ID="ID_1476305357" CREATED="1381756995277" MODIFIED="1385408757636">
<edge COLOR="#00ff00"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
The add-ons's license that the user has to accept before she can install it.
</p>
<p>
</p>
<p>
The License text has to be entered as a child of the <i>'license'</i> node, either as plain text or as HTML.
</p>
</body>
</html>
</richcontent>
<node TEXT="
This add-on is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
" ID="ID_99261528" CREATED="1381756995308" MODIFIED="1381756995308"/>
</node>
<node TEXT="preferences.xml" POSITION="left" ID="ID_1169408938" CREATED="1381756995418" MODIFIED="1385408757636">
<edge COLOR="#ff00ff"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
<font face="SansSerif, sans-serif" color="#000000">The child node contains the add-on configuration as an extension to mindmapmodemenu.xml (in Tools->Preferences->Add-ons). </font>
</p>
<p>
<font face="SansSerif, sans-serif" color="#000000">Every property in the configuration should receive a default value in <i>default.properties</i> node.</font>
</p>
</body>
</html>
</richcontent>
</node>
<node TEXT="default.properties" POSITION="left" ID="ID_1434342109" CREATED="1381006378455" MODIFIED="1484696895512">
<edge COLOR="#00ffff"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
These properties play together with the preferences: Each property defined in the preferences should have a default value in the attributes of this node.
</p>
</body>
</html>
</richcontent>
<attribute_layout NAME_WIDTH="181.7999913311009 pt" VALUE_WIDTH="271.79998703956664 pt"/>
</node>
<node TEXT="translations" FOLDED="true" POSITION="left" ID="ID_1618020204" CREATED="1381756995527" MODIFIED="1484696694296" HGAP_QUANTITY="19.399999742507948 pt" VSHIFT_QUANTITY="54.89999738216413 pt">
<edge COLOR="#ffff00"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
The translation keys that this script uses. Define one child node per supported locale. The attributes contain the translations. Define at least 'addons.${name}' for the add-on's name.
</p>
</body>
</html>
</richcontent>
<node TEXT="en" ID="ID_37110248" CREATED="1484684633238" MODIFIED="1484696682655" HGAP_QUANTITY="14.899999957084658 pt" VSHIFT_QUANTITY="72.89999652385728 pt">
<attribute NAME="addons.${name}" VALUE="Import OPML to selected node"/>
</node>
</node>
<node POSITION="right" ID="ID_248608830" CREATED="1379964830451" MODIFIED="1484692002894"><richcontent TYPE="NODE">
<html>
<head>
</head>
<body>
<p>
<b>Location menu:</b> File<i> > Import > Import OPML to selected node</i>
</p>
</body>
</html>
</richcontent>
<edge COLOR="#0000ff"/>
</node>
<node TEXT="deinstall" POSITION="right" ID="ID_18388134" CREATED="1484684633271" MODIFIED="1485298692206" HGAP_QUANTITY="-501.69997540950897 pt" VSHIFT_QUANTITY="39.599998111724915 pt">
<edge COLOR="#808080"/>
<richcontent TYPE="NOTE">
<html>
<head>
</head>
<body>
<p>
List of files and/or directories to remove on uninstall
</p>
</body>
</html>
</richcontent>
<attribute NAME="delete" VALUE="${installationbase}/addons/${name}.script.xml"/>
</node>
</node>
</map>