Ignore:
Timestamp:
2009-07-21T22:12:17+02:00 (15 years ago)
Author:
jttt
Message:

Make it work without Main.ds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/data/JOSMDataSource.java

    r16520 r16630  
    5050
    5151        public Iterable<Node> getNodes() {
    52                 return new FilteredOsmPrimitiveIterable<Node>(Main.ds.nodes);
     52                return new FilteredOsmPrimitiveIterable<Node>(Main.main.getCurrentDataSet().nodes);
    5353        }
    5454
    5555        public Iterable<Relation> getRelations() {
    56                 return new FilteredRelationIterable(Main.ds.relations);
     56                return new FilteredRelationIterable(Main.main.getCurrentDataSet().relations);
    5757        }
    5858
    5959        public Iterable<Way> getWays() {
    60                 return new FilteredOsmPrimitiveIterable<Way>(Main.ds.ways);
     60                return new FilteredOsmPrimitiveIterable<Way>(Main.main.getCurrentDataSet().ways);
    6161        }
    6262
Note: See TracChangeset for help on using the changeset viewer.