Changeset 8518 in josm for trunk/src


Ignore:
Timestamp:
2015-06-21T15:24:17+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: fix broken parsing of shortcuts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r8513 r8518  
    130130    @Override
    131131    public void initSystemShortcuts() {
     132        // CHECKSTYLE.OFF: LineLength
    132133        // TODO: Insert system shortcuts here. See Windows and especially OSX to see how to.
    133134        for (int i = KeyEvent.VK_F1; i <= KeyEvent.VK_F12; ++i) {
    134             Shortcut.registerSystemShortcut("screen:toogle"+i, tr("reserved"),
    135                     i, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK).setAutomatic();
    136         }
    137         Shortcut.registerSystemShortcut("system:reset", tr("reserved"),
    138                 KeyEvent.VK_DELETE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK).setAutomatic();
    139         Shortcut.registerSystemShortcut("system:resetX", tr("reserved"),
    140                 KeyEvent.VK_BACK_SPACE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK).setAutomatic();
     135            Shortcut.registerSystemShortcut("screen:toogle"+i, tr("reserved"), i, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK)
     136                .setAutomatic();
     137        }
     138        Shortcut.registerSystemShortcut("system:reset", tr("reserved"), KeyEvent.VK_DELETE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK)
     139            .setAutomatic();
     140        Shortcut.registerSystemShortcut("system:resetX", tr("reserved"), KeyEvent.VK_BACK_SPACE, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK)
     141            .setAutomatic();
     142        // CHECKSTYLE.ON: LineLength
    141143    }
    142144
    143145    /**
    144146     * This should work for all platforms. Yeah, should.
    145      * See PlatformHook.java for a list of reasons why
    146      * this is implemented here...
     147     * See PlatformHook.java for a list of reasons why this is implemented here...
    147148     */
    148149    @Override
     
    168169    public boolean canFullscreen() {
    169170        return !GraphicsEnvironment.isHeadless() &&
    170                 GraphicsEnvironment.getLocalGraphicsEnvironment()
    171         .getDefaultScreenDevice().isFullScreenSupported();
     171                GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().isFullScreenSupported();
    172172    }
    173173
     
    460460     *
    461461     * <p>The font configuration in Java doesn't include some Indic scripts,
    462      * even though MS Windows ships with fonts that cover these unicode
    463      * ranges.</p>
     462     * even though MS Windows ships with fonts that cover these unicode ranges.</p>
    464463     *
    465464     * <p>To fix this, the fontconfig.properties template is copied to the JOSM
     
    468467     * to the customized fontconfig.properties file.</p>
    469468     *
    470      * <p>This is a crude hack, but better than no font display at all for these
    471      * languages.
     469     * <p>This is a crude hack, but better than no font display at all for these languages.
    472470     * There is no guarantee, that the template file
    473471     * ($JAVA_HOME/lib/fontconfig.properties.src) matches the default
     
    568566     * Must be done without triggering the Java Font initialization.
    569567     * (See {@link #extendFontconfig(java.lang.String)}, have to set system
    570      * property first, which is then read by sun.awt.FontConfiguration upon
    571      * initialization.)
     568     * property first, which is then read by sun.awt.FontConfiguration upon initialization.)
    572569     *
    573570     * @return list of file names
     
    580577     * Get default list of additional fonts to add to the configuration.
    581578     *
    582      * Java will choose thee first font in the list that can render a certain
    583      * character.
     579     * Java will choose thee first font in the list that can render a certain character.
    584580     *
    585581     * @return list of FontEntry objects
Note: See TracChangeset for help on using the changeset viewer.