Changeset 11161 in osm for applications/editors/josm/plugins
- Timestamp:
- 2008-10-13T12:58:38+02:00 (16 years ago)
- Location:
- applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java
r11157 r11161 72 72 this.data = dataSet; 73 73 DataSet.selListeners.add(new SelectionChangedListener() { 74 @Override75 74 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 76 75 selection = newSelection; … … 128 127 129 128 g.drawImage(icon.getImage(), p.x - (width / 2), p.y - (height / 2), new ImageObserver() { 130 @Override131 129 public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) { 132 130 return false; … … 209 207 } 210 208 211 @Override212 209 public void mouseClicked(MouseEvent e) { 213 210 if(e.getButton() == MouseEvent.BUTTON1) { … … 221 218 } 222 219 223 @Override224 220 public void mousePressed(MouseEvent e) { 225 221 mayTriggerPopup(e); 226 222 } 227 223 228 @Override229 224 public void mouseReleased(MouseEvent e) { 230 225 mayTriggerPopup(e); … … 243 238 } 244 239 245 @Override246 240 public void mouseEntered(MouseEvent e) {} 247 241 248 @Override249 242 public void mouseExited(MouseEvent e) {} 250 243 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java
r11157 r11161 181 181 private boolean download = true; 182 182 183 @Override184 183 public void actionPerformed(ActionEvent e) { 185 184 active = toggle.isSelected(); 186 185 if (toggle.isSelected() && download) { 187 186 Main.worker.execute(new Runnable() { 188 @Override189 187 public void run() { 190 188 updateData(); … … 205 203 } 206 204 207 @Override208 205 public void activeLayerChange(Layer oldLayer, Layer newLayer) {} 209 206 210 @Override211 207 public void layerAdded(Layer newLayer) { 212 208 if(newLayer instanceof OsmDataLayer) { … … 218 214 } 219 215 220 @Override221 216 public void layerRemoved(Layer oldLayer) { 222 217 if(oldLayer == layer) { -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbUploadHook.java
r11157 r11161 39 39 public class OsbUploadHook implements UploadHook { 40 40 41 @Override42 41 public boolean checkUpload(Collection<OsmPrimitive> add, Collection<OsmPrimitive> update, 43 42 Collection<OsmPrimitive> delete) -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java
r11157 r11161 112 112 refresh.setIcon(OsbPlugin.loadIcon("view-refresh22.png")); 113 113 refresh.addActionListener(new ActionListener() { 114 @Override 114 115 115 public void actionPerformed(ActionEvent e) { 116 116 // check zoom level … … 145 145 // add a selection listener to the data 146 146 DataSet.selListeners.add(new SelectionChangedListener() { 147 @Override148 147 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 149 148 fireSelectionChanged = false; … … 165 164 } 166 165 167 @Override168 166 public synchronized void update(final DataSet dataset) { 169 167 Node lastNode = OsbAction.getSelectedNode(); … … 181 179 } 182 180 183 @Override184 181 public void valueChanged(ListSelectionEvent e) { 185 182 if(list.getSelectedValues().length == 0) { … … 224 221 } 225 222 226 @Override227 223 public void activeLayerChange(Layer oldLayer, Layer newLayer) {} 228 224 229 @Override230 225 public void layerAdded(Layer newLayer) { 231 226 if(newLayer == osbPlugin.getLayer()) { … … 235 230 } 236 231 237 @Override238 232 public void layerRemoved(Layer oldLayer) { 239 233 if(oldLayer == osbPlugin.getLayer()) { … … 242 236 } 243 237 244 @Override245 238 public void dataChanged(OsmDataLayer l) { 246 239 update(l.data); … … 252 245 } 253 246 254 @Override255 247 public void mouseClicked(MouseEvent e) { 256 248 if(e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) { … … 260 252 } 261 253 262 @Override263 254 public void mousePressed(MouseEvent e) { 264 255 mayTriggerPopup(e); 265 256 } 266 257 267 @Override268 258 public void mouseReleased(MouseEvent e) { 269 259 mayTriggerPopup(e); … … 280 270 } 281 271 282 @Override283 272 public void mouseEntered(MouseEvent e) {} 284 273 285 @Override286 274 public void mouseExited(MouseEvent e) {} 287 275 288 @Override289 276 public void actionPerformed(OsbAction action) { 290 277 if(action instanceof AddCommentAction || action instanceof CloseIssueAction) { … … 294 281 295 282 private class BugComparator implements Comparator<Node> { 296 @Override 283 297 284 public int compare(Node o1, Node o2) { 298 285 String state1 = o1.get("state"); -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbListCellRenderer.java
r11157 r11161 46 46 private Color altBackground = new Color(250, 250, 220); 47 47 48 @Override49 48 public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, 50 49 boolean cellHasFocus) { -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/NewIssueAction.java
r11157 r11161 74 74 } 75 75 76 @Override77 76 public void mouseClicked(MouseEvent e) { 78 77 addNewIssue(e); 79 78 } 80 79 81 @Override82 80 public void mouseEntered(MouseEvent e) {} 83 81 84 @Override85 82 public void mouseExited(MouseEvent e) {} 86 83 87 @Override88 84 public void mousePressed(MouseEvent e) { 89 85 addNewIssue(e); … … 96 92 JOptionPane.QUESTION_MESSAGE); 97 93 98 if(result != null && !result.isEmpty()) {94 if(result != null && result.length() > 0) { 99 95 try { 100 96 Node n = newAction.execute(e.getPoint(), result); … … 117 113 } 118 114 119 @Override120 115 public void mouseReleased(MouseEvent e) {} 121 116 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/action/OsbAction.java
r11157 r11161 54 54 } 55 55 56 @Override57 56 public void actionPerformed(ActionEvent e) { 58 57 try {
Note:
See TracChangeset
for help on using the changeset viewer.