Changeset 14866 in josm for trunk/src/org
- Timestamp:
- 2019-03-09T20:43:09+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/actions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AboutAction.java
r14822 r14866 67 67 } 68 68 69 protectedJPanel buildAboutPanel() {69 JPanel buildAboutPanel() { 70 70 final JTabbedPane about = new JTabbedPane(); 71 71 -
trunk/src/org/openstreetmap/josm/actions/AddImageryLayerAction.java
r14862 r14866 284 284 @Override 285 285 protected void updateEnabledState() { 286 if (info.isBlacklisted()) { 287 setEnabled(false); 288 } else { 289 setEnabled(true); 290 } 286 setEnabled(!info.isBlacklisted()); 291 287 } 292 288 -
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r14624 r14866 44 44 */ 45 45 public class ImageryAdjustAction extends MapMode implements AWTEventListener { 46 private static volatile ImageryOffsetDialog offsetDialog; 47 private static Cursor cursor = ImageProvider.getCursor("normal", "move"); 48 49 private OffsetBookmark old; 50 private OffsetBookmark tempOffset; 46 private static ImageryOffsetDialog offsetDialog; 47 48 private transient OffsetBookmark old; 49 private transient OffsetBookmark tempOffset; 51 50 private EastNorth prevEastNorth; 52 51 private transient AbstractTileSourceLayer<?> layer; … … 60 59 */ 61 60 public ImageryAdjustAction(AbstractTileSourceLayer<?> layer) { 62 super(tr("New offset"), "adjustimg", tr("Adjust the position of this imagery layer"), cursor); 61 super(tr("New offset"), "adjustimg", tr("Adjust the position of this imagery layer"), 62 ImageProvider.getCursor("normal", "move")); 63 63 putValue("toolbar", Boolean.FALSE); 64 64 this.layer = layer; … … 118 118 restoreOldMode = false; 119 119 doExitMode(); 120 }121 122 private void exitModeAndRestoreOldMode() {123 restoreOldMode = true;124 doExitMode();125 restoreOldMode = false;126 120 } 127 121 … … 241 235 private static final class ConfirmOverwriteBookmarkDialog extends ExtendedDialog { 242 236 ConfirmOverwriteBookmarkDialog() { 243 super(MainApplication.getMainFrame(), tr("Overwrite"), new String[] {tr("Overwrite"), tr("Cancel")});237 super(MainApplication.getMainFrame(), tr("Overwrite"), tr("Overwrite"), tr("Cancel")); 244 238 contentInsets = new Insets(10, 15, 10, 15); 245 239 setContent(tr("Offset bookmark already exists. Overwrite?")); … … 381 375 } 382 376 } 377 378 private void exitModeAndRestoreOldMode() { 379 restoreOldMode = true; 380 doExitMode(); 381 restoreOldMode = false; 382 } 383 383 } 384 384
Note:
See TracChangeset
for help on using the changeset viewer.