Ticket #4033: fullscreen-toggle-action-fixed.patch

File fullscreen-toggle-action-fixed.patch, 1.6 KB (added by avarab@…, 12 years ago)

Remove reference comment used during development

  • src/org/openstreetmap/josm/actions/FullscreenToggleAction.java

     
    4545         */
    4646        return Main.platform instanceof PlatformHookUnixoid && gd.isFullScreenSupported();
    4747    }
    48          /*
    49             final JCheckBoxMenuItem fullscreen = new JCheckBoxMenuItem(tr("Full Screen"));
    50             fullscreen.setSelected(Main.pref.getBoolean("draw.fullscreen", false));
    51             fullscreen.setAccelerator(Shortcut.registerShortcut("menu:view:fullscreen", tr("Toggle Full Screen view"),
    52                     KeyEvent.VK_F11, Shortcut.GROUP_DIRECT).getKeyStroke());
    5348
    54             fullscreen.addActionListener(new ActionListener() {
    55                 public void actionPerformed(ActionEvent ev) {
    56                     Main.pref.put("draw.fullscreen", fullscreen.isSelected());
    57 
    58                     if (Main.pref.getBoolean("draw.fullscreen")) {
    59                         Frame frame = (Frame)Main.parent;
    60                         gd.setFullScreenWindow(frame);
    61                     } else {
    62                         gd.setFullScreenWindow(null);
    63                     }
    64                 }
    65             });
    66             viewMenu.addSeparator();
    67             viewMenu.add(fullscreen);
    68         }
    69         */
    70 
    7149    public void addButtonModel(ButtonModel model) {
    7250        if (model != null && !buttonModels.contains(model)) {
    7351            buttonModels.add(model);