Changes between Version 8 and Version 9 of Nl:Help/Plugin/Scripting


Ignore:
Timestamp:
2021-08-08T16:40:02+02:00 (5 years ago)
Author:
DiGro
Comment:

adjusted to revision 19

Legend:

Unmodified
Added
Removed
Modified
  • Nl:Help/Plugin/Scripting

    v8 v9  
    1 [[TranslatedPages(revision=18)]]
    2 = Scripting =
     1[[TranslatedPages(revision=19)]]
     2= Plug-in -> Scripting =
    33
     4[[Image(https://josm.openstreetmap.de/pluginicon/scripting.jar/images/script-engine.png,link=,48)]]
    45[[PageOutline(2-4,Inhoud,inline)]]
    56
    67
    78== Doel ==
    8 
    99Gebruik het om kleine taken, waarvoor geen bestaande plug-in beschikbaar is, te automatiseren, d.i.
    1010* aanvullende kwaliteitstesten waarvoor geen testen van Validatie beschikbaar zijn
     
    1414
    1515== Hoe scripts uit te voeren ==
    16 
    1716De [https://gubaer.github.io/josm-scripting-plugin plug-in Scripting] stelt u in staat scripts uit te voeren binnen JOSM.
    1817
     
    2019
    2120== Hoe u uw eigen scripts kunt schrijven ==
    22 
    2321Inspecteer 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.
    2624
    2725Voor het schrijven van meer functionelere scripts dan "josm.alert(josm.menu.length);" zou u voorbeelden vanaf verschillende pagina's moeten combineren, bijvoorbeeld:
     
    2927
    3028== Details voor implementaties ==
    31 
    3229De plug-in bevat een ingebedde scriptingmachine van Javascript, gebaseerd op Mozilla Rhino en een
    3330[https://gubaer.github.io/josm-scripting-plugin/apidoc/modules/josm.html Javascript API] voor de JOSM applicatie-objecten.\\
    3431Als 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].\\
    3633[https://github.com/gubaer/josm-scripting-plugin Broncode op GitHub].
    3734
    3835== Scripts ==
    3936=== Scripts in JavaScript ===
    40 
    4137* https://gist.github.com/Rub21/feb83f57a727ac0d8a34 - Expand abbreviations (US)
    4238* https://gist.github.com/Rub21/47838797856566a8b6ba - Capitalize names and eliminate "name=S/N"
     
    5248
    5349== Uitgebreide instellingen ==
    54 
    5550Zoek naar de subtekenreeks {{{scripting.}}}.
    5651
     52{{{#!comment
    5753== Zie ook ==
    58 * [wikitr:/Help/Plugins Plug-in Help]
     54}}}
    5955
    6056----
     57Terug naar [wikitr:/Help/Plugins Plug-in Help]
    6158Terug naar [wikitr:/Help Help]