Changes between Version 8 and Version 9 of Nl:Help/Plugin/Scripting
- Timestamp:
- 2021-08-08T16:40:02+02:00 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Nl:Help/Plugin/Scripting
v8 v9 1 [[TranslatedPages(revision=1 8)]]2 = Scripting = 1 [[TranslatedPages(revision=19)]] 2 = Plug-in -> Scripting = 3 3 4 [[Image(https://josm.openstreetmap.de/pluginicon/scripting.jar/images/script-engine.png,link=,48)]] 4 5 [[PageOutline(2-4,Inhoud,inline)]] 5 6 6 7 7 8 == Doel == 8 9 9 Gebruik het om kleine taken, waarvoor geen bestaande plug-in beschikbaar is, te automatiseren, d.i. 10 10 * aanvullende kwaliteitstesten waarvoor geen testen van Validatie beschikbaar zijn … … 14 14 15 15 == Hoe scripts uit te voeren == 16 17 16 De [https://gubaer.github.io/josm-scripting-plugin plug-in Scripting] stelt u in staat scripts uit te voeren binnen JOSM. 18 17 … … 20 19 21 20 == Hoe u uw eigen scripts kunt schrijven == 22 23 21 Inspecteer nauwkeurig beide bronnen: 24 * http://gubaer.github.io/josm-scripting-plugin/doc/documentation.html - volg hier alle links 25 * http://gubaer.github.io/josm-scripting-plugin/apidoc/modules/josm.html - scan wat alle klassen, modules, mixins en namespaces kunnen doen. 22 * https://gubaer.github.io/josm-scripting-plugin/doc/documentation.html - volg hier alle links 23 * https://gubaer.github.io/josm-scripting-plugin/apidoc/modules/josm.html - scan wat alle klassen, modules, mixins en namespaces kunnen doen. 26 24 27 25 Voor het schrijven van meer functionelere scripts dan "josm.alert(josm.menu.length);" zou u voorbeelden vanaf verschillende pagina's moeten combineren, bijvoorbeeld: … … 29 27 30 28 == Details voor implementaties == 31 32 29 De plug-in bevat een ingebedde scriptingmachine van Javascript, gebaseerd op Mozilla Rhino en een 33 30 [https://gubaer.github.io/josm-scripting-plugin/apidoc/modules/josm.html Javascript API] voor de JOSM applicatie-objecten.\\ 34 31 Als alternatief kunt u een willekeurige scripttaal gebruiken die een JSR-223 compatibel scriptingmachine verschaft, in het bijzonder 35 [http://groovy-lang.org/index.html Groovy], [http://www.jython.org/ Python], of [http://jruby.org/ Ruby].\\ 32 [https://groovy-lang.org/index.html Groovy], [https://www.jython.org/ Python], of [https://jruby.org/ Ruby].\\ 36 33 [https://github.com/gubaer/josm-scripting-plugin Broncode op GitHub]. 37 34 38 35 == Scripts == 39 36 === Scripts in JavaScript === 40 41 37 * https://gist.github.com/Rub21/feb83f57a727ac0d8a34 - Expand abbreviations (US) 42 38 * https://gist.github.com/Rub21/47838797856566a8b6ba - Capitalize names and eliminate "name=S/N" … … 52 48 53 49 == Uitgebreide instellingen == 54 55 50 Zoek naar de subtekenreeks {{{scripting.}}}. 56 51 52 {{{#!comment 57 53 == Zie ook == 58 * [wikitr:/Help/Plugins Plug-in Help] 54 }}} 59 55 60 56 ---- 57 Terug naar [wikitr:/Help/Plugins Plug-in Help] 61 58 Terug naar [wikitr:/Help Help]
