Ignore:
Timestamp:
2013-05-05T19:03:05+02:00 (11 years ago)
Author:
bastiK
Message:

replace tabs by spaces

File:
1 edited

Legend:

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

    r5360 r5925  
    1717public class HistoryInfoAction extends JosmAction {
    1818
    19         public HistoryInfoAction() {
    20                 super(tr("History"), "about",
    21                                 tr("Display history information about OSM ways, nodes, or relations."),
    22                                 Shortcut.registerShortcut("core:historyinfo",
    23                                 tr("History"), KeyEvent.VK_H, Shortcut.CTRL), false);
    24                 putValue("help", ht("/Action/ObjectHistory"));
    25                 putValue("toolbar", "action/historyinfo");
    26                 Main.toolbar.register(this);
    27         }
     19    public HistoryInfoAction() {
     20        super(tr("History"), "about",
     21                tr("Display history information about OSM ways, nodes, or relations."),
     22                Shortcut.registerShortcut("core:historyinfo",
     23                tr("History"), KeyEvent.VK_H, Shortcut.CTRL), false);
     24        putValue("help", ht("/Action/ObjectHistory"));
     25        putValue("toolbar", "action/historyinfo");
     26        Main.toolbar.register(this);
     27    }
    2828
    29         @Override
    30         public void actionPerformed(ActionEvent ae) {
    31                 DataSet set = getCurrentDataSet();
    32                 if (set != null) {
    33                         HistoryBrowserDialogManager.getInstance().showHistory(set.getAllSelected());
    34                 }
    35         }
     29    @Override
     30    public void actionPerformed(ActionEvent ae) {
     31        DataSet set = getCurrentDataSet();
     32        if (set != null) {
     33            HistoryBrowserDialogManager.getInstance().showHistory(set.getAllSelected());
     34        }
     35    }
    3636
    37         @Override
    38         public void updateEnabledState() {
    39                 if (getCurrentDataSet() == null) {
    40                         setEnabled(false);
    41                 } else {
    42                         updateEnabledState(getCurrentDataSet().getAllSelected());
    43                 }
    44         }
     37    @Override
     38    public void updateEnabledState() {
     39        if (getCurrentDataSet() == null) {
     40            setEnabled(false);
     41        } else {
     42            updateEnabledState(getCurrentDataSet().getAllSelected());
     43        }
     44    }
    4545
    46         @Override
    47         protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) {
    48                 setEnabled(!selection.isEmpty());
    49         }
     46    @Override
     47    protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) {
     48        setEnabled(!selection.isEmpty());
     49    }
    5050}
Note: See TracChangeset for help on using the changeset viewer.