Ignore:
Timestamp:
2016-07-02T03:55:03+02:00 (9 years ago)
Author:
donvip
Message:

checkstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetPlugin.java

    r31646 r32528  
     1// License: WTFPL. For details, see LICENSE file.
    12package iodb;
    23
     
    3132     * or completely unsuitable for imagery offset actions.
    3233     */
    33     public ImageryOffsetPlugin( PluginInformation info ) {
     34    public ImageryOffsetPlugin(PluginInformation info) {
    3435        super(info);
    3536
     
    4243        JMenu offsetMenu = version < 5803
    4344                ? Main.main.menu.addMenu("Offset", tr("Offset"), KeyEvent.VK_O, 6, "help")
    44                 : Main.main.menu.imageryMenu;
    45         offsetMenu.add(getAction);
    46         offsetMenu.add(storeAction);
     45                        : Main.main.menu.imageryMenu;
     46                offsetMenu.add(getAction);
     47                offsetMenu.add(storeAction);
    4748
    48         // an ugly hack to add this plugin to the toolbar
    49         if( Main.pref.getBoolean("iodb.modify.toolbar", true) ) {
    50             Collection<String> toolbar = new LinkedList<>(ToolbarPreferences.getToolString());
    51             if( !toolbar.contains("getoffset") ) {
    52                 toolbar.add("getoffset");
    53                 Main.pref.putCollection("toolbar", toolbar);
    54                 Main.toolbar.refreshToolbarControl();
    55             }
    56             Main.pref.put("iodb.modify.toolbar", false);
    57         }
     49                // an ugly hack to add this plugin to the toolbar
     50                if (Main.pref.getBoolean("iodb.modify.toolbar", true)) {
     51                    Collection<String> toolbar = new LinkedList<>(ToolbarPreferences.getToolString());
     52                    if (!toolbar.contains("getoffset")) {
     53                        toolbar.add("getoffset");
     54                        Main.pref.putCollection("toolbar", toolbar);
     55                        Main.toolbar.refreshToolbarControl();
     56                    }
     57                    Main.pref.put("iodb.modify.toolbar", false);
     58                }
    5859    }
    5960}
Note: See TracChangeset for help on using the changeset viewer.