Changeset 4964 in josm


Ignore:
Timestamp:
2012-02-17T17:47:15+01:00 (12 years ago)
Author:
stoecker
Message:

fix shortcut

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadAction.java

    r4191 r4964  
    2828    public DownloadAction() {
    2929        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.GROUPS_ALT1+Shortcut.GROUP_HOTKEY), true);
     30                Shortcut.registerShortcut("file:download", tr("File: {0}", tr("Download from OSM...")), KeyEvent.VK_D, Shortcut.GROUP_DIRECT), true);
    3131        putValue("help", ht("/Action/Download"));
    3232    }
  • trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java

    r4942 r4964  
    287287     */
    288288    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++) {
     296System.out.println("-- " + j + " " + i + " " + gc[i].getBounds());
     297            }
     298        }
    289299        /* TODO: implement this function properly */
    290300        return Toolkit.getDefaultToolkit().getScreenSize();
Note: See TracChangeset for help on using the changeset viewer.