Changeset 24106 in osm for applications/editors


Ignore:
Timestamp:
2010-11-07T12:24:51+01:00 (14 years ago)
Author:
oliverw
Message:

Added "convert street/addresses" to relation.

Location:
applications/editors/josm/plugins/FixAddresses
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/AddressEditDialog.java

    r24105 r24106  
    5858import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.ApplyAllGuessesAction;
    5959import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.AssignAddressToStreetAction;
     60import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.ConvertToRelationAction;
    6061import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.GuessAddressDataAction;
    6162import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.RemoveAddressTagsAction;
     
    8283        private SelectAddressesInMapAction selectAddressesInMapAction = new SelectAddressesInMapAction();
    8384        private RemoveAddressTagsAction removeAddressTagsAction = new RemoveAddressTagsAction();
     85        private ConvertToRelationAction convertToRelationAction = new ConvertToRelationAction();
    8486       
    8587        private AbstractAddressEditAction[] actions = new AbstractAddressEditAction[] {
     
    8890                applyAllGuessesAction,
    8991                selectAddressesInMapAction,
    90                 removeAddressTagsAction
     92                removeAddressTagsAction,
     93                convertToRelationAction
    9194        };
    9295        private JLabel streetLabel;
     
    127130                        headerPanel.add(streetLabel);
    128131                       
     132                        JPanel streetButtonPanel = new JPanel(new GridLayout(1, 4));
     133                        SideButton convertToRel = new SideButton(convertToRelationAction);                                                                                                                         
     134                        streetButtonPanel.add(convertToRel);
     135                       
     136                        streetPanel.add(streetButtonPanel, BorderLayout.SOUTH);
    129137                        streetPanel.add(headerPanel, BorderLayout.NORTH);
    130138                        streetPanel.setMinimumSize(new Dimension(350, 200));
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/actions/AbstractAddressEditAction.java

    r24105 r24106  
    4545        private AddressEditSelectionEvent event;
    4646        protected AddressEditContainer container;
    47         private List<Command> commands;
     47        protected List<Command> commands;
    4848        private String txName;
    4949
Note: See TracChangeset for help on using the changeset viewer.