- Timestamp:
- 2020-01-13T23:37:49+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ViewportFollowToggleAction.java
r15599 r15705 9 9 10 10 import org.openstreetmap.josm.actions.mapmode.DrawAction; 11 import org.openstreetmap.josm.gui.Notification; 12 import org.openstreetmap.josm.gui.util.GuiHelper; 11 13 import org.openstreetmap.josm.tools.Shortcut; 12 14 … … 37 39 toggleSelectedState(e); 38 40 DrawAction.VIEWPORT_FOLLOWING.put(isSelected()); 41 if (!getShortcut().getKeyText().isEmpty()) { 42 String msg = isSelected() 43 ? tr("Viewport following is enabled, press {0} to disable it", getShortcut().getKeyText()) 44 : tr("Viewport following is disabled"); 45 GuiHelper.runInEDT(() -> new Notification(msg).show()); 46 } 39 47 notifySelectedState(); 40 48 }
Note:
See TracChangeset
for help on using the changeset viewer.