Changeset 33963 in osm for applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap
- Timestamp:
- 2017-12-28T15:37:27+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/AddressEditDialog.java
r32970 r33963 45 45 import org.openstreetmap.josm.plugins.fixAddresses.StringUtils; 46 46 import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.AbstractAddressEditAction; 47 import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.ApplyAllGuessesAction; 47 48 import org.openstreetmap.josm.plugins.fixAddresses.gui.actions.AddressActions; 48 49 import org.openstreetmap.josm.tools.ImageProvider; … … 61 62 private JTable streetTable; 62 63 64 private ApplyAllGuessesAction applyGuessesAction = AddressActions.getApplyGuessesAction(); 63 65 private AbstractAddressEditAction[] actions = new AbstractAddressEditAction[] { 64 66 AddressActions.getResolveAction(), 65 67 AddressActions.getGuessAddressAction(), 66 AddressActions.getApplyGuessesAction(), 67 AddressActions.getSelectAction(), 68 applyGuessesAction, 68 69 AddressActions.getRemoveTagsAction(), 69 AddressActions.getConvertToRelationAction(), 70 AddressActions.getConvertAllToRelationAction() 70 AddressActions.getSelectAction() 71 71 }; 72 72 … … 126 126 unresolvedTable.getSelectionModel().addListSelectionListener(this); 127 127 unresolvedTable.getSelectionModel().addListSelectionListener(new IncompleteAddressListener()); 128 unresolvedTable.addMouseListener( AddressActions.getApplyGuessesAction());128 unresolvedTable.addMouseListener(applyGuessesAction); 129 129 130 130 JTableHeader header = unresolvedTable.getTableHeader(); … … 146 146 try { 147 147 JPanel unresolvedButtons = new JPanel(new GridLayout(2, 5, 5, 5)); 148 SideButton assign = new SideButton(AddressActions.getResolveAction()); 149 unresolvedButtons.add(assign); 150 151 SideButton guess = new SideButton(AddressActions.getGuessAddressAction()); 152 unresolvedButtons.add(guess); 153 SideButton applyAllGuesses = new SideButton(AddressActions.getApplyGuessesAction()); 154 unresolvedButtons.add(applyAllGuesses); 155 156 SideButton removeAddressTags = new SideButton(AddressActions.getRemoveTagsAction()); 157 unresolvedButtons.add(removeAddressTags); 158 159 unresolvedButtons.add(new JPanel()); 160 161 SideButton selectInMap = new SideButton(AddressActions.getSelectAction()); 162 unresolvedButtons.add(selectInMap); 148 for (AbstractAddressEditAction action : actions) { 149 action.setContainer(addressEditContainer); 150 SideButton button = new SideButton(action); 151 unresolvedButtons.add(button); 152 } 163 153 headerPanel2.setMinimumSize(new Dimension(100, 70)); 164 154 … … 202 192 } else { 203 193 this.getContentPane().add(new JLabel(tr("(No data)")), BorderLayout.CENTER); 204 }205 206 for (int i = 0; i < actions.length; i++) {207 actions[i].setContainer(addressEditContainer);208 194 } 209 195
Note:
See TracChangeset
for help on using the changeset viewer.