Changeset 27744 in osm for applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustPlugin.java
- Timestamp:
- 2012-02-10T20:08:20+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imageryadjust/src/imageryadjust/ImageryAdjustPlugin.java
r24812 r27744 1 1 package imageryadjust; 2 2 3 import javax.swing.Action; 3 4 import org.openstreetmap.josm.gui.IconToggleButton; 4 5 import org.openstreetmap.josm.gui.MapFrame; … … 14 15 @Override 15 16 public void mapFrameInitialized(MapFrame oldFrame, MapFrame newFrame) { 16 if ( newFrame == null) return;17 if (oldFrame == null && newFrame != null) { 17 18 newFrame.addMapMode(new IconToggleButton(new ImageryAdjustMapMode(newFrame))); 19 } 18 20 } 19 21 }
Note:
See TracChangeset
for help on using the changeset viewer.