Changeset 34508 in osm for applications/editors/josm


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

update to JOSM 14153

Location:
applications/editors/josm/plugins/eventbus
Files:
2 edited

Legend:

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

    r34102 r34508  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="13558"/>
     7    <property name="plugin.main.version" value="14153"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/eventbus/src/org/openstreetmap/josm/plugins/eventbus/EventBusPlugin.java

    r34102 r34508  
    66import java.awt.event.KeyEvent;
    77
    8 import org.openstreetmap.josm.Main;
    98import org.openstreetmap.josm.actions.ExpertToggleAction;
    109import org.openstreetmap.josm.actions.ExpertToggleAction.ExpertModeChangeListener;
     
    1211import org.openstreetmap.josm.data.SystemOfMeasurement;
    1312import org.openstreetmap.josm.data.SystemOfMeasurement.SoMChangeListener;
     13import org.openstreetmap.josm.data.UndoRedoHandler;
    1414import org.openstreetmap.josm.data.UndoRedoHandler.CommandQueueListener;
    1515import org.openstreetmap.josm.data.conflict.ConflictCollection;
     
    3838import org.openstreetmap.josm.data.osm.history.HistoryDataSetListener;
    3939import org.openstreetmap.josm.data.projection.ProjectionChangeListener;
     40import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    4041import org.openstreetmap.josm.gui.MainApplication;
    4142import org.openstreetmap.josm.gui.MapFrame;
     
    383384     */
    384385    void registerAllJosmListeners() {
    385         Main.addProjectionChangeListener(projectionChangeListener);
     386        ProjectionRegistry.addProjectionChangeListener(projectionChangeListener);
    386387        MainApplication.getLayerManager().addLayerChangeListener(layerChangeListener);
    387388        MainApplication.getLayerManager().addActiveLayerChangeListener(activeLayerChangeListener);
    388389        MainApplication.getLayerManager().addLayerAvailabilityListener(layerAvailabilityListener);
    389         MainApplication.undoRedo.addCommandQueueListener(commandQueueListener);
     390        UndoRedoHandler.getInstance().addCommandQueueListener(commandQueueListener);
    390391        ChangesetCache.getInstance().addChangesetCacheListener(changesetCacheListener);
    391392        DataSet.addSelectionListener(selectionChangedListener);
     
    406407     */
    407408    void unregisterAllJosmListeners() {
    408         Main.removeProjectionChangeListener(projectionChangeListener);
     409        ProjectionRegistry.removeProjectionChangeListener(projectionChangeListener);
    409410        MainApplication.getLayerManager().removeLayerChangeListener(layerChangeListener);
    410411        MainApplication.getLayerManager().removeActiveLayerChangeListener(activeLayerChangeListener);
    411412        MainApplication.getLayerManager().removeLayerAvailabilityListener(layerAvailabilityListener);
    412         MainApplication.undoRedo.removeCommandQueueListener(commandQueueListener);
     413        UndoRedoHandler.getInstance().removeCommandQueueListener(commandQueueListener);
    413414        ChangesetCache.getInstance().removeChangesetCacheListener(changesetCacheListener);
    414415        DataSet.removeSelectionListener(selectionChangedListener);
Note: See TracChangeset for help on using the changeset viewer.