Ignore:
Timestamp:
2013-07-17T00:01:49+02:00 (11 years ago)
Author:
stoecker
Message:

see #8853 remove tabs, trailing spaces, windows line ends, strange characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java

    r6020 r6070  
    147147            return new ActionDefinition(null);
    148148        }
    149        
     149
    150150        public boolean hasParameters() {
    151151            if (!(getAction() instanceof ParameterizedAction)) return false;
    152152            for (Object o: parameters.values()) {
    153153                if (o!=null) return true;
    154             } 
     154            }
    155155            return false;
    156156        }
     
    412412                            }
    413413                });
    414            
     414
    415415        JMenuItem configure = new JMenuItem(new AbstractAction(tr("Configure toolbar")) {
    416416            @Override
     
    430430                    p.setVisible(true);
    431431                // refresh toolbar to try using changed shortcuts without restart
    432                     Main.toolbar.refreshToolbarControl(); 
     432                    Main.toolbar.refreshToolbarControl();
    433433                }
    434434            });
     
    485485
    486486        private final class Move implements ActionListener {
    487             @Override 
     487            @Override
    488488            public void actionPerformed(ActionEvent e) {
    489489                if (e.getActionCommand().equals("<") && actionsTree.getSelectionCount() > 0) {
     
    10321032                final JButton b = addButtonAndShortcut(action);
    10331033                buttonActions.put(b, action);
    1034                
     1034
    10351035                Icon i = action.getDisplayIcon();
    10361036                if (i != null) {
     
    10551055        control.setVisible(control.getComponentCount() != 0);
    10561056    }
    1057    
     1057
    10581058    private JButton addButtonAndShortcut(ActionDefinition action) {
    10591059        Action act = action.getParametrizedAction();
    10601060        JButton b = control.add(act);
    1061        
     1061
    10621062        Shortcut sc = null;
    10631063        if (action.getAction() instanceof JosmAction) {
     
    10721072            paramCode =  action.parameters.hashCode();
    10731073        }
    1074        
     1074
    10751075        String tt = action.getDisplayTooltip();
    10761076        if (tt==null) {
     
    10911091            Main.unregisterShortcut(sc);
    10921092            Main.registerActionShortcut(act, sc);
    1093            
     1093
    10941094            // add shortcut info to the tooltip if needed
    10951095            if (sc.getAssignedUser()) {
     
    11001100            }
    11011101        }
    1102        
     1102
    11031103        if (!tt.isEmpty()) {
    11041104            b.setToolTipText(tt);
Note: See TracChangeset for help on using the changeset viewer.