This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JFrame = javax.swing.JFrame; | |
var JLabel = javax.swing.JLabel; | |
var System = java.lang.System; | |
var fr = new JFrame("Uruchomiony"); | |
var lb = new JLabel("Wyłącz okno aby zakończyć działanie skryptu."); | |
fr.setSize(550, 50); | |
fr.setVisible(true); | |
fr.add(lb); | |
fr.addWindowListener(new JavaAdapter(java.awt.event.WindowAdapter){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JOptionPane = javax.swing.JOptionPane; | |
var Main = org.openstreetmap.josm.Main; | |
var Robot = java.awt.Robot; | |
var Point = java.awt.Point; | |
var System = java.lang.System; | |
var Node = org.openstreetmap.josm.data.osm.Node; | |
var Way = org.openstreetmap.josm.data.osm.Way; | |
var LatLon = org.openstreetmap.josm.data.coor.LatLon; | |
var AddCommand = org.openstreetmap.josm.command.AddCommand; | |
var SequenceCommand = org.openstreetmap.josm.command.SequenceCommand; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var System = java.lang.System; | |
var SelectionChangedListener = org.openstreetmap.josm.data.SelectionChangedListener; | |
var DataSet = org.openstreetmap.josm.data.osm.DataSet; | |
var SelectionAdapter = { | |
init: function() { | |
DataSet.addSelectionListener(this); | |
}, | |
selectionChanged: function (newSelection) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var JOptionPane = javax.swing.JOptionPane; | |
var Main = org.openstreetmap.josm.Main; | |
var DeleteCommand = org.openstreetmap.josm.command.DeleteCommand; | |
var ChangePropertyCommand = org.openstreetmap.josm.command.ChangePropertyCommand; | |
var SequenceCommand = org.openstreetmap.josm.command.SequenceCommand; | |
function getLayerManager() { | |
if (Main.main == null) return null; | |
if (Main.map == null) return null; | |
return Main.layerManager; |