Ignore:
Timestamp:
2018-08-12T14:27:32+02:00 (9 months ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.main - new class OsmDataManager

File:
1 edited

Legend:

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

    r13654 r14143  
    1010import javax.swing.table.TableModel;
    1111
    12 import org.openstreetmap.josm.Main;
    1312import org.openstreetmap.josm.data.UserIdentityManager;
    1413import org.openstreetmap.josm.data.osm.DataSet;
     
    102101        referenceRelationMemberTableModel = new DiffTableModel();
    103102
    104         if (Main.main != null) {
    105             DataSet ds = MainApplication.getLayerManager().getActiveDataSet();
    106             if (ds != null) {
    107                 ds.addDataSetListener(this);
    108             }
     103        DataSet ds = MainApplication.getLayerManager().getActiveDataSet();
     104        if (ds != null) {
     105            ds.addDataSetListener(this);
    109106        }
    110107        MainApplication.getLayerManager().addActiveLayerChangeListener(this);
Note: See TracChangeset for help on using the changeset viewer.