Changeset 34560 in osm for applications/editors/josm/plugins
- Timestamp:
- 2018-08-18T20:25:21+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/tageditor
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/build.xml
r33806 r34560 2 2 <project name="tageditor" default="dist" basedir="."> 3 3 <property name="commit.message" value="Tageditor: help shortcut parser, rebuild"/> 4 <property name="plugin.main.version" value="1 2859"/>4 <property name="plugin.main.version" value="14153"/> 5 5 6 6 <property name="plugin.author" value="Karl Guggisberg"/> -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/LaunchAction.java
r32959 r34560 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.KeyEvent; 8 import java.util. Collection;8 import java.util.Set; 9 9 10 10 import org.openstreetmap.josm.actions.JosmAction; 11 import org.openstreetmap.josm.data.SelectionChangedListener; 12 import org.openstreetmap.josm.data.osm.DataSet; 11 import org.openstreetmap.josm.data.osm.DataSelectionListener; 13 12 import org.openstreetmap.josm.data.osm.OsmPrimitive; 13 import org.openstreetmap.josm.data.osm.event.SelectionEventManager; 14 14 import org.openstreetmap.josm.tools.Shortcut; 15 15 16 public class LaunchAction extends JosmAction implements SelectionChangedListener {16 public class LaunchAction extends JosmAction implements DataSelectionListener { 17 17 18 18 public LaunchAction() { … … 25 25 true, "tageditor/launch", true); 26 26 27 DataSet.addSelectionListener(this);27 SelectionEventManager.getInstance().addSelectionListener(this); 28 28 setEnabled(false); 29 29 } … … 46 46 47 47 @Override 48 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 48 public void selectionChanged(SelectionChangeEvent event) { 49 Set<OsmPrimitive> newSelection = event.getSelection(); 49 50 setEnabled(newSelection != null && newSelection.size() > 0); 50 51 } -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/TagEditorDialog.java
r33806 r34560 27 27 import javax.swing.SwingUtilities; 28 28 29 import org.openstreetmap.josm.Main;30 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; 31 30 import org.openstreetmap.josm.data.osm.Tag; … … 264 263 getClass().getName() + ".geometry", 265 264 WindowGeometry.centerInWindow( 266 Main .parent,265 MainApplication.getMainFrame(), 267 266 PREFERRED_SIZE 268 267 ) … … 319 318 setVisible(false); 320 319 tagEditor.getModel().updateJOSMSelection(); 321 Main .parent.repaint(); // repaint all - drawing could have been changed320 MainApplication.getMainFrame().repaint(); // repaint all - drawing could have been changed 322 321 } 323 322 -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagEditorModel.java
r33579 r34560 12 12 import org.openstreetmap.josm.command.Command; 13 13 import org.openstreetmap.josm.command.SequenceCommand; 14 import org.openstreetmap.josm.data.UndoRedoHandler; 14 15 import org.openstreetmap.josm.data.osm.OsmPrimitive; 15 16 import org.openstreetmap.josm.data.osm.Tag; … … 167 168 168 169 // executes the commands and adds them to the undo/redo chains 169 MainApplication.undoRedo.add(command);170 UndoRedoHandler.getInstance().add(command); 170 171 } 171 172 -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/PresetsTableColumnModel.java
r30488 r34560 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.plugins.tageditor.preset.ui; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 3 5 4 6 import javax.swing.table.DefaultTableColumnModel; 5 7 import javax.swing.table.TableCellRenderer; 6 8 import javax.swing.table.TableColumn; 7 import static org.openstreetmap.josm.tools.I18n.tr;8 9 9 10 public class PresetsTableColumnModel extends DefaultTableColumnModel {
Note:
See TracChangeset
for help on using the changeset viewer.