Ignore:
Timestamp:
2013-07-26T13:38:17+02:00 (6 years ago)
Author:
bastiK
Message:

see #8902 - add missing @Override annotations (patch by shinigami)

Location:
trunk/src/org/openstreetmap/josm/gui/history
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/AdjustmentSynchronizer.java

    r5266 r6084  
    5858     *
    5959     */
     60    @Override
    6061    public void adjustmentValueChanged(AdjustmentEvent e) {
    6162        if (! enabledMap.get(e.getAdjustable()))
     
    124125        //
    125126        view.addItemListener(new ItemListener() {
     127            @Override
    126128            public void itemStateChanged(ItemEvent e) {
    127129                switch(e.getStateChange()) {
     
    142144        observable.addObserver(
    143145                new Observer() {
     146                    @Override
    144147                    public void update(Observable o, Object arg) {
    145148                        boolean sync = isParticipatingInSynchronizedScrolling(adjustable);
  • trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java

    r6070 r6084  
    281281        }
    282282
     283        @Override
    283284        public void update(Observable o, Object arg) {
    284285            refresh();
     
    294295        }
    295296
     297        @Override
    296298        protected void build() {
    297299            setLayout(new GridBagLayout());
     
    319321        }
    320322
     323        @Override
    321324        protected void refresh() {
    322325            HistoryOsmPrimitive p = getPrimitive();
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java

    r5832 r6084  
    122122    /* interface HistoryDataSetListener                                                   */
    123123    /* ---------------------------------------------------------------------------------- */
     124    @Override
    124125    public void historyUpdated(HistoryDataSet source, PrimitiveId primitiveId) {
    125126        if (primitiveId == null || primitiveId.equals(browser.getHistory().getPrimitiveId())) {
     
    128129    }
    129130
     131    @Override
    130132    public void historyDataSetCleared(HistoryDataSet source) {
    131133        closeAction.run();
     
    146148        }
    147149
     150        @Override
    148151        public void actionPerformed(ActionEvent e) {
    149152            run();
     
    158161        }
    159162
     163        @Override
    160164        public void actionPerformed(ActionEvent e) {
    161165            HistoryLoadTask task = new HistoryLoadTask();
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java

    r5495 r6084  
    124124    /* LayerChangeListener                                                           */
    125125    /* ----------------------------------------------------------------------------- */
     126    @Override
    126127    public void activeLayerChange(Layer oldLayer, Layer newLayer) {}
     128    @Override
    127129    public void layerAdded(Layer newLayer) {}
    128130
     131    @Override
    129132    public void layerRemoved(Layer oldLayer) {
    130133        // remove all history browsers if the number of layers drops to 0
  • trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java

    r6009 r6084  
    682682    /* DataSetListener                                                        */
    683683    /* ---------------------------------------------------------------------- */
     684    @Override
    684685    public void nodeMoved(NodeMovedEvent event) {
    685686        Node node = event.getNode();
     
    689690    }
    690691
     692    @Override
    691693    public void primitivesAdded(PrimitivesAddedEvent event) {
    692694        for (OsmPrimitive p: event.getPrimitives()) {
     
    697699    }
    698700
     701    @Override
    699702    public void primitivesRemoved(PrimitivesRemovedEvent event) {
    700703        for (OsmPrimitive p: event.getPrimitives()) {
     
    705708    }
    706709
     710    @Override
    707711    public void relationMembersChanged(RelationMembersChangedEvent event) {
    708712        Relation r = event.getRelation();
     
    712716    }
    713717
     718    @Override
    714719    public void tagsChanged(TagsChangedEvent event) {
    715720        OsmPrimitive prim = event.getPrimitive();
     
    719724    }
    720725
     726    @Override
    721727    public void wayNodesChanged(WayNodesChangedEvent event) {
    722728        Way way = event.getChangedWay();
     
    726732    }
    727733
     734    @Override
    728735    public void dataChanged(DataChangedEvent event) {
    729736        OsmPrimitive primitive = event.getDataset().getPrimitiveById(history.getId(), history.getType());
     
    738745    }
    739746
     747    @Override
    740748    public void otherDatasetChange(AbstractDatasetChangedEvent event) {
    741749        // Irrelevant
     
    745753    /* LayerChangeListener                                                    */
    746754    /* ---------------------------------------------------------------------- */
     755    @Override
    747756    public void activeLayerChange(Layer oldLayer, Layer newLayer) {
    748757        if (oldLayer != null && oldLayer instanceof OsmDataLayer) {
     
    768777    }
    769778
     779    @Override
    770780    public void layerAdded(Layer newLayer) {}
     781    @Override
    771782    public void layerRemoved(Layer oldLayer) {}
    772783
     
    778789        private HistoryOsmPrimitive clone;
    779790
     791        @Override
    780792        public void visit(Node n) {
    781793            clone = new HistoryNode(n.getId(), n.getVersion(), n.isVisible(), getCurrentUser(), 0, null, n.getCoor(), false);
     
    783795        }
    784796
     797        @Override
    785798        public void visit(Relation r) {
    786799            clone = new HistoryRelation(r.getId(), r.getVersion(), r.isVisible(), getCurrentUser(), 0, null, false);
     
    792805        }
    793806
     807        @Override
    794808        public void visit(Way w) {
    795809            clone = new HistoryWay(w.getId(), w.getVersion(), w.isVisible(), getCurrentUser(), 0, null, false);
  • trunk/src/org/openstreetmap/josm/gui/history/NodeListTableCellRenderer.java

    r5627 r6084  
    4747
    4848    // Warning: The model pads with null-rows to match the size of the opposite table. 'value' could be null
     49    @Override
    4950    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    5051            int row, int column) {
  • trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java

    r5958 r6084  
    202202        }
    203203
     204        @Override
    204205        public void actionPerformed(ActionEvent e) {
    205206            if (!isEnabled()) return;
     
    248249        }
    249250
     251        @Override
    250252        public void actionPerformed(ActionEvent e) {
    251253            if (!isEnabled()) return;
     
    263265            }
    264266            Runnable r = new Runnable() {
     267                @Override
    265268                public void run() {
    266269                    final History h = HistoryDataSet.getInstance().getHistory(primitiveId);
  • trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java

    r5835 r6084  
    7676
    7777    // Warning: The model pads with null-rows to match the size of the opposite table. 'value' could be null
     78    @Override
    7879    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    7980            int row, int column) {
  • trunk/src/org/openstreetmap/josm/gui/history/SelectionSynchronizer.java

    r3083 r6084  
    2626    }
    2727
     28    @Override
    2829    public void valueChanged(ListSelectionEvent e) {
    2930        DefaultListSelectionModel referenceModel = (DefaultListSelectionModel)e.getSource();
  • trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java

    r5832 r6084  
    7575    }
    7676
     77    @Override
    7778    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
    7879            int row, int column) {
  • trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java

    r5929 r6084  
    133133    }
    134134
     135    @Override
    135136    public void update(Observable o, Object arg) {
    136137        lblInfo.setText(getInfoText());
  • trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java

    r5958 r6084  
    8282    }
    8383
     84    @Override
    8485    public void update(Observable o, Object arg) {
    8586        repaint();
     
    164165    public static class RadioButtonRenderer extends JRadioButton implements TableCellRenderer {
    165166
     167        @Override
    166168        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,int row,int column) {
    167169            setSelected(value != null && (Boolean)value);
     
    196198        }
    197199
     200        @Override
    198201        public void itemStateChanged(ItemEvent e) {
    199202            fireEditingStopped();
     
    205208            setHorizontalAlignment(hAlignment);
    206209        }
     210        @Override
    207211        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,int row,int column) {
    208212            String v = value.toString();
Note: See TracChangeset for help on using the changeset viewer.