Ignore:
Timestamp:
2017-08-27T22:22:31+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12678

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

Legend:

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

    r32680 r33579  
    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="10580"/>
     4    <property name="plugin.main.version" value="12678"/>
    55   
    66        <property name="plugin.author" value="Karl Guggisberg"/>
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/TagEditorDialog.java

    r33016 r33579  
    3131import org.openstreetmap.josm.data.osm.OsmPrimitive;
    3232import org.openstreetmap.josm.data.osm.Tag;
     33import org.openstreetmap.josm.gui.MainApplication;
    3334import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionList;
    3435import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionManager;
    3536import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
     37import org.openstreetmap.josm.gui.util.WindowGeometry;
    3638import org.openstreetmap.josm.plugins.tageditor.ac.AutoCompletionListViewer;
    3739import org.openstreetmap.josm.plugins.tageditor.editor.TagEditor;
     
    4244import org.openstreetmap.josm.plugins.tageditor.tagspec.ui.TabularTagSelector;
    4345import org.openstreetmap.josm.tools.ImageProvider;
    44 import org.openstreetmap.josm.tools.WindowGeometry;
    4546
    4647/**
     
    282283        tagEditor.getModel().clearAppliedPresets();
    283284        tagEditor.getModel().initFromJOSMSelection();
    284         autocomplete = Main.getLayerManager().getEditLayer().data.getAutoCompletionManager();
     285        autocomplete = MainApplication.getLayerManager().getEditLayer().data.getAutoCompletionManager();
    285286        tagEditor.setAutoCompletionManager(autocomplete);
    286287        getModel().ensureOneTag();
     
    319320            setVisible(false);
    320321            tagEditor.getModel().updateJOSMSelection();
    321             DataSet ds = Main.getLayerManager().getEditDataSet();
     322            DataSet ds = MainApplication.getLayerManager().getEditDataSet();
    322323            ds.fireSelectionChanged();
    323324            Main.parent.repaint(); // repaint all - drawing could have been changed
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/TagEditorPlugin.java

    r30488 r33579  
    22package org.openstreetmap.josm.plugins.tageditor;
    33
    4 import org.openstreetmap.josm.Main;
     4import org.openstreetmap.josm.gui.MainApplication;
    55import org.openstreetmap.josm.gui.MainMenu;
    66import org.openstreetmap.josm.plugins.Plugin;
     
    99public class TagEditorPlugin extends Plugin {
    1010    LaunchAction action;
    11    
     11
    1212    /**
    13      * constructor 
     13     * constructor
    1414     */
    1515    public TagEditorPlugin(PluginInformation info) {
    1616        super(info);
    1717        action = new LaunchAction();
    18         MainMenu.add(Main.main.menu.editMenu, action);
     18        MainMenu.add(MainApplication.getMenu().editMenu, action);
    1919    }
    2020}
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/ac/AutoCompletionContext.java

    r32508 r33579  
    22package org.openstreetmap.josm.plugins.tageditor.ac;
    33
    4 import org.openstreetmap.josm.Main;
    54import org.openstreetmap.josm.data.osm.DataSet;
     5import org.openstreetmap.josm.gui.MainApplication;
    66
    77public class AutoCompletionContext {
     
    1616
    1717    public void initFromJOSMSelection() {
    18         DataSet ds = Main.getLayerManager().getEditDataSet();
     18        DataSet ds = MainApplication.getLayerManager().getEditDataSet();
    1919        selectionIncludesNodes = !ds.getSelectedNodes().isEmpty();
    2020        selectionIncludesWays = !ds.getSelectedWays().isEmpty();
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/editor/TagEditorModel.java

    r33016 r33579  
    1010import javax.swing.DefaultListSelectionModel;
    1111
    12 import org.openstreetmap.josm.Main;
    1312import org.openstreetmap.josm.command.Command;
    1413import org.openstreetmap.josm.command.SequenceCommand;
    1514import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1615import org.openstreetmap.josm.data.osm.Tag;
     16import org.openstreetmap.josm.gui.MainApplication;
    1717import org.openstreetmap.josm.gui.tagging.TagModel;
    1818import org.openstreetmap.josm.gui.tagging.presets.TaggingPreset;
     
    147147    public void updateJOSMSelection() {
    148148        ArrayList<Command> commands = new ArrayList<>();
    149         Collection<OsmPrimitive> selection = Main.getLayerManager().getEditDataSet().getSelected();
     149        Collection<OsmPrimitive> selection = MainApplication.getLayerManager().getEditDataSet().getSelected();
    150150        if (selection == null)
    151151            return;
     
    167167
    168168        // executes the commands and adds them to the undo/redo chains
    169         Main.main.undoRedo.add(command);
     169        MainApplication.undoRedo.add(command);
    170170    }
    171171
     
    174174     */
    175175    public void initFromJOSMSelection() {
    176         Collection<OsmPrimitive> selection = Main.getLayerManager().getEditDataSet().getSelected();
     176        Collection<OsmPrimitive> selection = MainApplication.getLayerManager().getEditDataSet().getSelected();
    177177        clear();
    178178        for (OsmPrimitive element : selection) {
Note: See TracChangeset for help on using the changeset viewer.