Changeset 4964 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-02-17T17:47:15+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAction.java
r4191 r4964 28 28 public DownloadAction() { 29 29 super(tr("Download from OSM..."), "download", tr("Download map data from the OSM server."), 30 Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download from OSM...")), KeyEvent.VK_D, Shortcut.GROUP S_ALT1+Shortcut.GROUP_HOTKEY), true);30 Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download from OSM...")), KeyEvent.VK_D, Shortcut.GROUP_DIRECT), true); 31 31 putValue("help", ht("/Action/Download")); 32 32 } -
trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java
r4942 r4964 287 287 */ 288 288 public static Dimension getScreenSize(String preferenceKey) { 289 GraphicsEnvironment ge = GraphicsEnvironment 290 .getLocalGraphicsEnvironment(); 291 GraphicsDevice[] gs = ge.getScreenDevices(); 292 for (int j = 0; j < gs.length; j++) { 293 GraphicsDevice gd = gs[j]; 294 GraphicsConfiguration[] gc = gd.getConfigurations(); 295 for (int i = 0; i < gc.length; i++) { 296 System.out.println("-- " + j + " " + i + " " + gc[i].getBounds()); 297 } 298 } 289 299 /* TODO: implement this function properly */ 290 300 return Toolkit.getDefaultToolkit().getScreenSize();
Note:
See TracChangeset
for help on using the changeset viewer.