Ticket #13000: plugin-FixAddresses-listener-removal.patch

File plugin-FixAddresses-listener-removal.patch, 2.4 KB (added by michael2402, 6 years ago)
  • FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/actions/AddressActions.java

    diff --git a/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/actions/AddressActions.java b/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/actions/AddressActions.java
    index a96dcfd..00a7b9f 100644
    a b package org.openstreetmap.josm.plugins.fixAddresses.gui.actions; 
    33
    44public final class AddressActions {
    55    /* Global action objects */
    6     private static SelectAddressesInMapAction selectAction = new SelectAddressesInMapAction();
    7     private static GuessAddressDataAction guessDataAction = new GuessAddressDataAction();
    8     private static ApplyAllGuessesAction applyGuessesAction = new ApplyAllGuessesAction();
    9     private static RemoveAddressTagsAction removeTagsAction = new RemoveAddressTagsAction();
    10     private static AssignAddressToStreetAction resolveAction = new AssignAddressToStreetAction();
    11     private static ConvertToRelationAction convertToRelationAction = new ConvertToRelationAction();
    12     private static ConvertAllToRelationAction convertAllToRelationAction = new ConvertAllToRelationAction();
    13    
    146    public static SelectAddressesInMapAction getSelectAction() {
    15         return selectAction;
     7        return new SelectAddressesInMapAction();
    168    }
    179    public static GuessAddressDataAction getGuessAddressAction() {
    18         return guessDataAction;
     10        return new GuessAddressDataAction();
    1911    }
    2012    public static ApplyAllGuessesAction getApplyGuessesAction() {
    21         return applyGuessesAction;
     13        return new ApplyAllGuessesAction();
    2214    }
    2315    public static RemoveAddressTagsAction getRemoveTagsAction() {
    24         return removeTagsAction;
     16        return new RemoveAddressTagsAction();
    2517    }
    2618    public static AssignAddressToStreetAction getResolveAction() {
    27         return resolveAction;
     19        return new AssignAddressToStreetAction();
    2820    }
    2921    public static ConvertToRelationAction getConvertToRelationAction() {
    30         return convertToRelationAction;
     22        return new ConvertToRelationAction();
    3123    }
    3224    public static ConvertAllToRelationAction getConvertAllToRelationAction() {
    33         return convertAllToRelationAction;
     25        return new ConvertAllToRelationAction();
    3426    }
    3527}