Changeset 34508 in osm for applications/editors/josm
- Timestamp:
- 2018-08-18T17:13:25+02:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/eventbus
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/eventbus/build.xml
r34102 r34508 5 5 <property name="commit.message" value="Commit message"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 3558"/>7 <property name="plugin.main.version" value="14153"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/eventbus/src/org/openstreetmap/josm/plugins/eventbus/EventBusPlugin.java
r34102 r34508 6 6 import java.awt.event.KeyEvent; 7 7 8 import org.openstreetmap.josm.Main;9 8 import org.openstreetmap.josm.actions.ExpertToggleAction; 10 9 import org.openstreetmap.josm.actions.ExpertToggleAction.ExpertModeChangeListener; … … 12 11 import org.openstreetmap.josm.data.SystemOfMeasurement; 13 12 import org.openstreetmap.josm.data.SystemOfMeasurement.SoMChangeListener; 13 import org.openstreetmap.josm.data.UndoRedoHandler; 14 14 import org.openstreetmap.josm.data.UndoRedoHandler.CommandQueueListener; 15 15 import org.openstreetmap.josm.data.conflict.ConflictCollection; … … 38 38 import org.openstreetmap.josm.data.osm.history.HistoryDataSetListener; 39 39 import org.openstreetmap.josm.data.projection.ProjectionChangeListener; 40 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 40 41 import org.openstreetmap.josm.gui.MainApplication; 41 42 import org.openstreetmap.josm.gui.MapFrame; … … 383 384 */ 384 385 void registerAllJosmListeners() { 385 Main.addProjectionChangeListener(projectionChangeListener);386 ProjectionRegistry.addProjectionChangeListener(projectionChangeListener); 386 387 MainApplication.getLayerManager().addLayerChangeListener(layerChangeListener); 387 388 MainApplication.getLayerManager().addActiveLayerChangeListener(activeLayerChangeListener); 388 389 MainApplication.getLayerManager().addLayerAvailabilityListener(layerAvailabilityListener); 389 MainApplication.undoRedo.addCommandQueueListener(commandQueueListener);390 UndoRedoHandler.getInstance().addCommandQueueListener(commandQueueListener); 390 391 ChangesetCache.getInstance().addChangesetCacheListener(changesetCacheListener); 391 392 DataSet.addSelectionListener(selectionChangedListener); … … 406 407 */ 407 408 void unregisterAllJosmListeners() { 408 Main.removeProjectionChangeListener(projectionChangeListener);409 ProjectionRegistry.removeProjectionChangeListener(projectionChangeListener); 409 410 MainApplication.getLayerManager().removeLayerChangeListener(layerChangeListener); 410 411 MainApplication.getLayerManager().removeActiveLayerChangeListener(activeLayerChangeListener); 411 412 MainApplication.getLayerManager().removeLayerAvailabilityListener(layerAvailabilityListener); 412 MainApplication.undoRedo.removeCommandQueueListener(commandQueueListener);413 UndoRedoHandler.getInstance().removeCommandQueueListener(commandQueueListener); 413 414 ChangesetCache.getInstance().removeChangesetCacheListener(changesetCacheListener); 414 415 DataSet.removeSelectionListener(selectionChangedListener);
Note:
See TracChangeset
for help on using the changeset viewer.