Changeset 34509 in osm
- Timestamp:
- 2018-08-18T17:14:22+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/ext_tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ext_tools/build.xml
r33889 r34509 5 5 <property name="commit.message" value="ExtTools: help shortcut paser, rebuild"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 3007"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/ext_tools/src/ext_tools/DataSetToCmd.java
r33698 r34509 13 13 import org.openstreetmap.josm.command.ChangeNodesCommand; 14 14 import org.openstreetmap.josm.command.Command; 15 import org.openstreetmap.josm.data.osm.*; 15 import org.openstreetmap.josm.data.osm.DataSet; 16 import org.openstreetmap.josm.data.osm.Node; 17 import org.openstreetmap.josm.data.osm.OsmPrimitive; 18 import org.openstreetmap.josm.data.osm.PrimitiveId; 19 import org.openstreetmap.josm.data.osm.Relation; 20 import org.openstreetmap.josm.data.osm.RelationMember; 21 import org.openstreetmap.josm.data.osm.Way; 16 22 import org.openstreetmap.josm.gui.MainApplication; 17 23 -
applications/editors/josm/plugins/ext_tools/src/ext_tools/ExtTool.java
r33889 r34509 21 21 import javax.swing.SwingUtilities; 22 22 23 import org.openstreetmap.josm.Main;24 23 import org.openstreetmap.josm.command.Command; 25 24 import org.openstreetmap.josm.command.SequenceCommand; … … 38 37 import org.openstreetmap.josm.tools.Logging; 39 38 39 import org.openstreetmap.josm.data.UndoRedoHandler; 40 40 41 public class ExtTool { 41 42 … … 156 157 p.add(new JScrollPane(info), GBC.eop()); 157 158 } 158 JOptionPane.showMessageDialog(Main .parent, p, tr("External tool error"), JOptionPane.ERROR_MESSAGE);159 JOptionPane.showMessageDialog(MainApplication.getMainFrame(), p, tr("External tool error"), JOptionPane.ERROR_MESSAGE); 159 160 }); 160 161 } … … 236 237 final List<Command> cmdlist = new DataSetToCmd(ds).getCommandList(); 237 238 if (!cmdlist.isEmpty()) { 238 Main.main.undoRedo.add(new SequenceCommand(getName(), cmdlist));239 UndoRedoHandler.getInstance().add(new SequenceCommand(getName(), cmdlist)); 239 240 } 240 241 } catch (IllegalDataException e) { -
applications/editors/josm/plugins/ext_tools/src/ext_tools/preferences/EditToolDialog.java
r22531 r34509 13 13 import javax.swing.JTextField; 14 14 15 import org.openstreetmap.josm.Main;16 15 import org.openstreetmap.josm.gui.ExtendedDialog; 17 16 import org.openstreetmap.josm.tools.GBC; 18 17 19 18 import ext_tools.ExtTool; 19 import org.openstreetmap.josm.gui.MainApplication; 20 20 21 21 public class EditToolDialog extends ExtendedDialog { … … 44 44 45 45 public EditToolDialog(ExtTool tool) { 46 super(Main .parent, tr("Edit tool"),46 super(MainApplication.getMainFrame(), tr("Edit tool"), 47 47 new String[] { tr("OK"), tr("Cancel") }, 48 48 true); -
applications/editors/josm/plugins/ext_tools/src/ext_tools/preferences/MyToolsPanel.java
r33698 r34509 15 15 import javax.swing.JPanel; 16 16 17 import org.openstreetmap.josm.Main;18 19 17 import ext_tools.ExtTool; 20 18 import ext_tools.ToolsInformation; 19 import org.openstreetmap.josm.gui.MainApplication; 21 20 22 21 public class MyToolsPanel extends JPanel { … … 66 65 @Override 67 66 public void actionPerformed(ActionEvent arg0) { 68 if (JOptionPane.showConfirmDialog(Main .parent,67 if (JOptionPane.showConfirmDialog(MainApplication.getMainFrame(), 69 68 tr("Delete tool \"{0}\"?", tool.name), 70 69 tr("Are you sure?"),
Note:
See TracChangeset
for help on using the changeset viewer.