Ignore:
Timestamp:
2016-06-21T00:58:45+02:00 (8 years ago)
Author:
Don-vip
Message:

see #13001 - replace calls to Main.main.getCurrentDataSet() by Main.getLayerManager().getEditDataSet()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r10378 r10446  
    125125            @Override
    126126            public void actionPerformed(ActionEvent e) {
    127                 final DataSet ds = Main.main.getCurrentDataSet();
     127                final DataSet ds = Main.getLayerManager().getEditDataSet();
    128128                if (ds == null) {
    129129                    return;
     
    174174    public void showNotify() {
    175175        DataSet.addSelectionListener(this);
    176         DataSet ds = Main.main.getCurrentDataSet();
     176        DataSet ds = Main.getLayerManager().getEditDataSet();
    177177        if (ds != null) {
    178178            updateSelection(ds.getAllSelected());
     
    342342            }
    343343        }
    344         DataSet ds = Main.main.getCurrentDataSet();
     344        DataSet ds = Main.getLayerManager().getEditDataSet();
    345345        if (ds != null) {
    346346            ds.setSelected(sel);
     
    479479
    480480            if (isDblClick) {
    481                 Main.main.getCurrentDataSet().setSelected(sel);
     481                Main.getLayerManager().getEditDataSet().setSelected(sel);
    482482                if (Main.pref.getBoolean("validator.autozoom", false)) {
    483483                    AutoScaleAction.zoomTo(sel);
     
    617617                    @Override
    618618                    public void run() {
    619                         Main.main.getCurrentDataSet().beginUpdate();
     619                        Main.getLayerManager().getEditDataSet().beginUpdate();
    620620                    }
    621621                });
     
    633633                        @Override
    634634                        public void run() {
    635                             Main.main.getCurrentDataSet().endUpdate();
     635                            Main.getLayerManager().getEditDataSet().endUpdate();
    636636                        }
    637637                    });
     
    644644                        Main.map.repaint();
    645645                        tree.resetErrors();
    646                         Main.main.getCurrentDataSet().fireSelectionChanged();
     646                        Main.getLayerManager().getEditDataSet().fireSelectionChanged();
    647647                    }
    648648                });
Note: See TracChangeset for help on using the changeset viewer.