Ignore:
Timestamp:
2009-07-31T17:24:51+02:00 (15 years ago)
Author:
stoecker
Message:

fixed broken compilation again

Location:
applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/CzechAddressPlugin.java

    r16744 r16750  
    147147                reasoner.update(street);
    148148
    149             for (OsmPrimitive prim : Main.ds.allPrimitives()) {
     149            for (OsmPrimitive prim : Main.main.getCurrentDataSet().allPrimitives()) {
    150150                if (House.isMatchable(prim) || Street.isMatchable(prim))
    151151                    reasoner.update(prim);
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/MapUtils.java

    r16744 r16750  
    2222     */
    2323    public static void zoomToMany(Collection<OsmPrimitive> primitives) {
    24         Main.ds.setSelected(primitives);
     24        Main.main.getCurrentDataSet().setSelected(primitives);
    2525        (new AutoScaleAction("selection")).actionPerformed(null);
    2626    }
     
    3030     */
    3131    public static void zoomTo(OsmPrimitive primitive) {
    32         Main.ds.setSelected(primitive);
     32        Main.main.getCurrentDataSet().setSelected(primitive);
    3333        (new AutoScaleAction("selection")).actionPerformed(null);
    3434    }
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/FactoryAction.java

    r16744 r16750  
    107107        FactoryDialog.getInstance().selectionListenerActivated = false;
    108108        FactoryDialog.getInstance().selectNextUnmatchedHouseByCheckBox();
    109         Main.ds.addPrimitive(newNode);
    110         Main.ds.setSelected(newNode);
     109        Main.main.getCurrentDataSet().addPrimitive(newNode);
     110        Main.main.getCurrentDataSet().setSelected(newNode);
    111111        FactoryDialog.getInstance().selectionListenerActivated = true;
    112112    }
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/PointManipulatorAction.java

    r16744 r16750  
    4343     */
    4444    public void actionPerformed(ActionEvent e) {
    45         Collection<OsmPrimitive> data = Main.ds.getSelected();
     45        Collection<OsmPrimitive> data = Main.main.getCurrentDataSet().getSelected();
    4646
    4747        if (data.size() != 1) return;
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/actions/SplitAreaByEmptyWayAction.java

    r16744 r16750  
    5151    public void actionPerformed(ActionEvent e) {
    5252
    53         Collection<OsmPrimitive> selectedWays = Main.ds.getSelectedWays();
    54         Collection<OsmPrimitive> newSelection = Main.ds.getSelected();
     53        Collection<OsmPrimitive> selectedWays = Main.main.getCurrentDataSet().getSelectedWays();
     54        Collection<OsmPrimitive> newSelection = Main.main.getCurrentDataSet().getSelected();
    5555
    5656        for (OsmPrimitive prim : selectedWays) {
     
    5858                Way area = (Way) prim;
    5959
    60             for (OsmPrimitive prim2 : Main.ds.allNonDeletedPrimitives()) {
     60            for (OsmPrimitive prim2 : Main.main.getCurrentDataSet().allNonDeletedPrimitives()) {
    6161                if (!(prim2 instanceof Way)) continue;
    6262                if (prim2.equals(prim))      continue;
     
    8080
    8181                if (errorCode == 0) {
    82                     Main.ds.addPrimitive(newArea1);
    83                     Main.ds.addPrimitive(newArea2);
     82                    Main.main.getCurrentDataSet().addPrimitive(newArea1);
     83                    Main.main.getCurrentDataSet().addPrimitive(newArea2);
    8484
    8585                    area.delete(true);
     
    9696        }
    9797
    98         Main.ds.setSelected(newSelection);
     98        Main.main.getCurrentDataSet().setSelected(newSelection);
    9999    }
    100100
     
    124124        }
    125125
    126         for (Relation relation : Main.ds.relations)
     126        for (Relation relation : Main.main.getCurrentDataSet().relations)
    127127            for (RelationMember areaMember : relation.members)
    128128                if (area.equals(areaMember.member))
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/LocationSelector.java

    r16744 r16750  
    8383
    8484        BoundingXYVisitor visitor = new BoundingXYVisitor();
    85         for (OsmPrimitive op : Main.ds.allPrimitives()) {
     85        for (OsmPrimitive op : Main.main.getCurrentDataSet().allPrimitives()) {
    8686            if (op instanceof Node) {
    8787                ((Node) op).visit(visitor);
     
    103103            System.out.println("AUTO: Center is " + center);
    104104
    105         for (OsmPrimitive op : Main.ds.allPrimitives()) {
     105        for (OsmPrimitive op : Main.main.getCurrentDataSet().allPrimitives()) {
    106106
    107107            if (!(op instanceof Node)) {
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/ManagerDialog.java

    r16744 r16750  
    4747
    4848        Capitalizator cap = new Capitalizator(
    49                                 Main.ds.allPrimitives(),
     49                                Main.main.getCurrentDataSet().allPrimitives(),
    5050                                CzechAddressPlugin.getLocation().getStreets());
    5151
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/gui/PointManipulatorDialog.java

    r16744 r16750  
    9999            proposalContainer.applyAll();
    100100
    101             Main.ds.setSelected((Node) null); // TODO: This is an ugly hack.
    102             Main.ds.setSelected(proposalContainer.getTarget());
     101            Main.main.getCurrentDataSet().setSelected((Node) null); // TODO: This is an ugly hack.
     102            Main.main.getCurrentDataSet().setSelected(proposalContainer.getTarget());
    103103
    104104            AddressElement elem = (AddressElement) matchesComboBox.getSelectedItem();
  • applications/editors/josm/plugins/czechaddress/src/org/openstreetmap/josm/plugins/czechaddress/proposal/ExtractAddressIntoNodeProposal.java

    r16744 r16750  
    6666           way.remove(key);
    6767
    68         Main.ds.addPrimitive(addrNode);
     68        Main.main.getCurrentDataSet().addPrimitive(addrNode);
    6969    }
    7070
Note: See TracChangeset for help on using the changeset viewer.