Ignore:
Timestamp:
2018-08-18T20:25:21+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

Location:
applications/editors/josm/plugins/tageditor
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tageditor/build.xml

    r33806 r34560  
    22<project name="tageditor" default="dist" basedir=".">
    33    <property name="commit.message" value="Tageditor:  help shortcut parser, rebuild"/>
    4     <property name="plugin.main.version" value="12859"/>
     4    <property name="plugin.main.version" value="14153"/>
    55   
    66        <property name="plugin.author" value="Karl Guggisberg"/>
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/LaunchAction.java

    r32959 r34560  
    66import java.awt.event.ActionEvent;
    77import java.awt.event.KeyEvent;
    8 import java.util.Collection;
     8import java.util.Set;
    99
    1010import org.openstreetmap.josm.actions.JosmAction;
    11 import org.openstreetmap.josm.data.SelectionChangedListener;
    12 import org.openstreetmap.josm.data.osm.DataSet;
     11import org.openstreetmap.josm.data.osm.DataSelectionListener;
    1312import org.openstreetmap.josm.data.osm.OsmPrimitive;
     13import org.openstreetmap.josm.data.osm.event.SelectionEventManager;
    1414import org.openstreetmap.josm.tools.Shortcut;
    1515
    16 public class LaunchAction extends JosmAction implements SelectionChangedListener {
     16public class LaunchAction extends JosmAction implements DataSelectionListener {
    1717
    1818    public LaunchAction() {
     
    2525                true, "tageditor/launch", true);
    2626
    27         DataSet.addSelectionListener(this);
     27        SelectionEventManager.getInstance().addSelectionListener(this);
    2828        setEnabled(false);
    2929    }
     
    4646
    4747    @Override
    48     public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) {
     48    public void selectionChanged(SelectionChangeEvent event) {
     49        Set<OsmPrimitive> newSelection = event.getSelection();
    4950        setEnabled(newSelection != null && newSelection.size() > 0);
    5051    }
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/TagEditorDialog.java

    r33806 r34560  
    2727import javax.swing.SwingUtilities;
    2828
    29 import org.openstreetmap.josm.Main;
    3029import org.openstreetmap.josm.data.osm.OsmPrimitive;
    3130import org.openstreetmap.josm.data.osm.Tag;
     
    264263                    getClass().getName() + ".geometry",
    265264                    WindowGeometry.centerInWindow(
    266                             Main.parent,
     265                            MainApplication.getMainFrame(),
    267266                            PREFERRED_SIZE
    268267                    )
     
    319318            setVisible(false);
    320319            tagEditor.getModel().updateJOSMSelection();
    321             Main.parent.repaint(); // repaint all - drawing could have been changed
     320            MainApplication.getMainFrame().repaint(); // repaint all - drawing could have been changed
    322321        }
    323322
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagEditorModel.java

    r33579 r34560  
    1212import org.openstreetmap.josm.command.Command;
    1313import org.openstreetmap.josm.command.SequenceCommand;
     14import org.openstreetmap.josm.data.UndoRedoHandler;
    1415import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1516import org.openstreetmap.josm.data.osm.Tag;
     
    167168
    168169        // executes the commands and adds them to the undo/redo chains
    169         MainApplication.undoRedo.add(command);
     170        UndoRedoHandler.getInstance().add(command);
    170171    }
    171172
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/ui/PresetsTableColumnModel.java

    r30488 r34560  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.plugins.tageditor.preset.ui;
     3
     4import static org.openstreetmap.josm.tools.I18n.tr;
    35
    46import javax.swing.table.DefaultTableColumnModel;
    57import javax.swing.table.TableCellRenderer;
    68import javax.swing.table.TableColumn;
    7 import static org.openstreetmap.josm.tools.I18n.tr;
    89
    910public class PresetsTableColumnModel extends DefaultTableColumnModel {
Note: See TracChangeset for help on using the changeset viewer.