Changeset 10173 in josm
- Timestamp:
- 2016-05-10T14:54:38+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ImageryMenu.java
r9261 r10173 121 121 @Override 122 122 public void menuDeselected(MenuEvent e) { 123 // Do nothing 123 124 } 124 125 125 126 @Override 126 127 public void menuCanceled(MenuEvent e) { 128 // Do nothing 127 129 } 128 130 }); … … 238 240 @Override 239 241 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 242 // Do nothing 240 243 } 241 244 -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r9443 r10173 33 33 import org.openstreetmap.josm.actions.ChangesetManagerToggleAction; 34 34 import org.openstreetmap.josm.actions.CloseChangesetAction; 35 import org.openstreetmap.josm.actions.DeleteLayerAction;36 35 import org.openstreetmap.josm.actions.CombineWayAction; 37 36 import org.openstreetmap.josm.actions.CopyAction; … … 40 39 import org.openstreetmap.josm.actions.CreateMultipolygonAction; 41 40 import org.openstreetmap.josm.actions.DeleteAction; 41 import org.openstreetmap.josm.actions.DeleteLayerAction; 42 42 import org.openstreetmap.josm.actions.DialogsToggleAction; 43 43 import org.openstreetmap.josm.actions.DistributeAction; … … 403 403 public static final MenuListener menuSeparatorHandler = new MenuListener() { 404 404 @Override 405 public void menuCanceled(MenuEvent e) {} 405 public void menuCanceled(MenuEvent e) { 406 // Do nothing 407 } 406 408 407 409 @Override 408 public void menuDeselected(MenuEvent e) {} 410 public void menuDeselected(MenuEvent e) { 411 // Do nothing 412 } 409 413 410 414 @Override -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r9997 r10173 220 220 @Override 221 221 public void setBorder(Border b) { 222 // Do nothing 222 223 } 223 224 }; … … 546 547 547 548 @Override 548 public void popupMenuCanceled(PopupMenuEvent e) {} 549 public void popupMenuCanceled(PopupMenuEvent e) { 550 // Do nothing 551 } 549 552 }); 550 553 … … 777 780 778 781 @Override 779 public void layerAdded(Layer newLayer) { } 782 public void layerAdded(Layer newLayer) { 783 // Do nothing 784 } 780 785 781 786 @Override -
trunk/src/org/openstreetmap/josm/gui/PleaseWaitDialog.java
r10035 r10173 8 8 import java.awt.GridBagLayout; 9 9 import java.awt.event.ActionListener; 10 import java.awt.event.ComponentAdapter; 10 11 import java.awt.event.ComponentEvent; 11 import java.awt.event.ComponentListener;12 12 13 13 import javax.swing.BorderFactory; … … 65 65 setCustomText(""); 66 66 setLocationRelativeTo(getParent()); 67 addComponentListener(new ComponentListener() { 68 @Override 69 public void componentHidden(ComponentEvent e) {} 70 71 @Override 72 public void componentMoved(ComponentEvent e) {} 73 74 @Override 75 public void componentShown(ComponentEvent e) {} 76 67 addComponentListener(new ComponentAdapter() { 77 68 @Override 78 69 public void componentResized(ComponentEvent ev) { -
trunk/src/org/openstreetmap/josm/gui/SelectionManager.java
r10031 r10173 453 453 454 454 @Override 455 public void mouseClicked(MouseEvent e) {} 456 457 @Override 458 public void mouseEntered(MouseEvent e) {} 459 460 @Override 461 public void mouseExited(MouseEvent e) {} 462 463 @Override 464 public void mouseMoved(MouseEvent e) {} 455 public void mouseClicked(MouseEvent e) { 456 // Do nothing 457 } 458 459 @Override 460 public void mouseEntered(MouseEvent e) { 461 // Do nothing 462 } 463 464 @Override 465 public void mouseExited(MouseEvent e) { 466 // Do nothing 467 } 468 469 @Override 470 public void mouseMoved(MouseEvent e) { 471 // Do nothing 472 } 465 473 } -
trunk/src/org/openstreetmap/josm/gui/SplashScreen.java
r10121 r10173 310 310 @Override 311 311 public void setTicks(int ticks) { 312 // Not used 312 313 } 313 314 -
trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java
r10044 r10173 251 251 } 252 252 253 @Override public void windowOpened(WindowEvent e) {} 254 255 @Override public void windowClosing(WindowEvent e) {} 256 257 @Override public void windowIconified(WindowEvent e) {} 258 259 @Override public void windowDeiconified(WindowEvent e) {} 260 261 @Override public void windowActivated(WindowEvent e) {} 262 263 @Override public void windowDeactivated(WindowEvent e) {} 253 @Override public void windowOpened(WindowEvent e) { 254 // Do nothing 255 } 256 257 @Override public void windowClosing(WindowEvent e) { 258 // Do nothing 259 } 260 261 @Override public void windowIconified(WindowEvent e) { 262 // Do nothing 263 } 264 265 @Override public void windowDeiconified(WindowEvent e) { 266 // Do nothing 267 } 268 269 @Override public void windowActivated(WindowEvent e) { 270 // Do nothing 271 } 272 273 @Override public void windowDeactivated(WindowEvent e) { 274 // Do nothing 275 } 264 276 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r10043 r10173 459 459 /** 460 460 * Closes the detached dialog if this toggle dialog is currently displayed in a detached dialog. 461 *462 461 */ 463 462 public void closeDetachedDialog() { … … 474 473 */ 475 474 public void showNotify() { 476 477 } 478 479 /** 480 * Called when toggle dialog is hidden (collapsed, removed, MapFrame is removed, ...). Good place to unregister 481 * listeners 475 // Do nothing 476 } 477 478 /** 479 * Called when toggle dialog is hidden (collapsed, removed, MapFrame is removed, ...). Good place to unregister listeners 482 480 */ 483 481 public void hideNotify() { 484 482 // Do nothing 485 483 } 486 484 487 485 /** 488 486 * The title bar displayed in docked mode 489 *490 487 */ 491 488 protected class TitleBar extends JPanel { … … 855 852 */ 856 853 protected void toggleButtonHook() { 854 // Do nothing 857 855 } 858 856 … … 865 863 */ 866 864 protected void stateChanged() { 865 // Do nothing 867 866 } 868 867 -
trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java
r10035 r10173 477 477 478 478 protected void buildMainPanelAboveDownloadSelections(JPanel pnl) { 479 // Do nothing 479 480 } 480 481 -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r10055 r10173 153 153 /* ----------------------------------------------------------------------------- */ 154 154 @Override 155 public void activeLayerChange(Layer oldLayer, Layer newLayer) {} 155 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 156 // Do nothing 157 } 156 158 157 159 @Override 158 public void layerAdded(Layer newLayer) {} 160 public void layerAdded(Layer newLayer) { 161 // Do nothing 162 } 159 163 160 164 @Override -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r10109 r10173 761 761 762 762 @Override 763 public void layerAdded(Layer newLayer) {} 764 765 @Override 766 public void layerRemoved(Layer oldLayer) {} 763 public void layerAdded(Layer newLayer) { 764 // Do nothing 765 } 766 767 @Override 768 public void layerRemoved(Layer oldLayer) { 769 // Do nothing 770 } 767 771 768 772 /** -
trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
r9685 r10173 10 10 import java.awt.event.FocusAdapter; 11 11 import java.awt.event.FocusEvent; 12 import java.awt.event.KeyAdapter; 12 13 import java.awt.event.KeyEvent; 13 import java.awt.event.KeyListener;14 14 import java.util.Arrays; 15 15 import java.util.Collections; … … 135 135 hcb.getEditor().addActionListener(handler); 136 136 hcb.getEditorComponent().addKeyListener( 137 new Key Listener() {137 new KeyAdapter() { 138 138 @Override 139 139 public void keyTyped(KeyEvent e) { … … 141 141 handler.actionPerformed(new ActionEvent(hcb, 0, "focusDown")); 142 142 } 143 }144 145 @Override146 public void keyReleased(KeyEvent e) {147 // Do nothing148 }149 150 @Override151 public void keyPressed(KeyEvent e) {152 // Do nothing153 143 } 154 144 } -
trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java
r9776 r10173 14 14 import java.awt.event.FocusAdapter; 15 15 import java.awt.event.FocusEvent; 16 import java.awt.event.KeyAdapter; 16 17 import java.awt.event.KeyEvent; 17 import java.awt.event.KeyListener;18 18 import java.awt.event.WindowAdapter; 19 19 import java.awt.event.WindowEvent; … … 344 344 * If both text fields contain characters, submits the form by calling owner's {@link OKAction}. 345 345 */ 346 private static class TFKeyListener implements KeyListener {346 private static class TFKeyListener extends KeyAdapter { 347 347 protected CredentialDialog owner; // owner Dependency Injection to call OKAction 348 348 protected JTextField currentTF; … … 371 371 } 372 372 } 373 374 @Override375 public void keyReleased(KeyEvent e) {376 }377 378 @Override379 public void keyTyped(KeyEvent e) {380 }381 373 } 382 374 -
trunk/src/org/openstreetmap/josm/gui/io/DownloadFileTask.java
r9645 r10173 85 85 86 86 @Override 87 protected void finish() {} 87 protected void finish() { 88 // Do nothing 89 } 88 90 89 91 /** -
trunk/src/org/openstreetmap/josm/gui/io/RecentlyOpenedFilesMenu.java
r8836 r10173 27 27 private ClearAction clearAction; 28 28 29 /** 30 * Constructs a new {@code RecentlyOpenedFilesMenu}. 31 */ 29 32 public RecentlyOpenedFilesMenu() { 30 33 super(tr("Open Recent")); … … 42 45 @Override 43 46 public void menuDeselected(MenuEvent e) { 47 // Do nothing 44 48 } 45 49 46 50 @Override 47 51 public void menuCanceled(MenuEvent e) { 52 // Do nothing 48 53 } 49 54 }); -
trunk/src/org/openstreetmap/josm/gui/io/UploadStrategySelectionPanel.java
r9841 r10173 12 12 import java.awt.event.ActionEvent; 13 13 import java.awt.event.ActionListener; 14 import java.awt.event.FocusAdapter; 14 15 import java.awt.event.FocusEvent; 15 import java.awt.event.FocusListener;16 16 import java.awt.event.ItemEvent; 17 17 import java.awt.event.ItemListener; … … 389 389 } 390 390 391 static class TextFieldFocusHandler implements FocusListener {391 static class TextFieldFocusHandler extends FocusAdapter { 392 392 @Override 393 393 public void focusGained(FocusEvent e) { … … 398 398 } 399 399 } 400 401 @Override402 public void focusLost(FocusEvent e) {}403 400 } 404 401 … … 467 464 } 468 465 469 class StrategyChangeListener implements ItemListener, FocusListener, ActionListener {466 class StrategyChangeListener extends FocusAdapter implements ItemListener, ActionListener { 470 467 471 468 protected void notifyStrategy() { … … 489 486 490 487 @Override 491 public void focusGained(FocusEvent arg0) {}492 493 @Override494 488 public void focusLost(FocusEvent arg0) { 495 489 notifyStrategy(); -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r10142 r10173 195 195 @Override 196 196 public void actionPerformed(ActionEvent e) { 197 // Do nothing 197 198 } 198 199 -
trunk/src/org/openstreetmap/josm/gui/layer/ValidatorLayer.java
r10008 r10173 108 108 @Override 109 109 public void mergeFrom(Layer from) { 110 // Do nothing 110 111 } 111 112 … … 122 123 @Override 123 124 public void visitBoundingBox(BoundingXYVisitor v) { 125 // Do nothing 124 126 } 125 127 … … 142 144 @Override 143 145 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 146 // Do nothing 144 147 } 145 148 146 149 @Override 147 150 public void layerAdded(Layer newLayer) { 151 // Do nothing 148 152 } 149 153 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java
r10001 r10173 793 793 @Override 794 794 public void changedUpdate(DocumentEvent ev) { 795 // Do nothing 795 796 } 796 797 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java
r10031 r10173 900 900 @Override 901 901 public void layerAdded(Layer newLayer) { 902 // Do nothing 902 903 } 903 904 -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java
r9079 r10173 402 402 @Override 403 403 public void mouseEntered(MouseEvent e) { 404 // Do nothing 404 405 } 405 406 406 407 @Override 407 408 public void mouseExited(MouseEvent e) { 409 // Do nothing 408 410 } 409 411 410 412 @Override 411 413 public void mouseMoved(MouseEvent e) { 414 // Do nothing 412 415 } 413 416 -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackAction.java
r10001 r10173 119 119 @Override 120 120 protected void finish() { 121 // Do nothing 121 122 } 122 123 -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r9730 r10173 388 388 */ 389 389 public void actionPerformed(ActionEvent ev) { 390 // Do nothing 390 391 } 391 392 -
trunk/src/org/openstreetmap/josm/gui/oauth/FullyAutomaticAuthorizationUI.java
r10073 r10173 411 411 412 412 @Override 413 protected void finish() {} 413 protected void finish() { 414 // Do nothing 415 } 414 416 415 417 protected void alertAuthorisationFailed(OsmOAuthAuthorizationException e) { -
trunk/src/org/openstreetmap/josm/gui/oauth/OAuthAuthorizationWizard.java
r10035 r10173 13 13 import java.awt.Insets; 14 14 import java.awt.event.ActionEvent; 15 import java.awt.event.ComponentAdapter; 15 16 import java.awt.event.ComponentEvent; 16 import java.awt.event.ComponentListener;17 17 import java.awt.event.ItemEvent; 18 18 import java.awt.event.ItemListener; … … 216 216 spAuthorisationProcedureUI = GuiHelper.embedInVerticalScrollPane(new JPanel()); 217 217 spAuthorisationProcedureUI.getVerticalScrollBar().addComponentListener( 218 new Component Listener() {218 new ComponentAdapter() { 219 219 @Override 220 220 public void componentShown(ComponentEvent e) { … … 226 226 spAuthorisationProcedureUI.setBorder(null); 227 227 } 228 229 @Override230 public void componentResized(ComponentEvent e) {}231 232 @Override233 public void componentMoved(ComponentEvent e) {}234 228 } 235 229 ); -
trunk/src/org/openstreetmap/josm/gui/oauth/TestAccessTokenTask.java
r9309 r10173 78 78 79 79 @Override 80 protected void finish() {} 80 protected void finish() { 81 // Do nothing 82 } 81 83 82 84 protected void sign(HttpClient con) throws OAuthException { -
trunk/src/org/openstreetmap/josm/gui/preferences/ToolbarPreferences.java
r9983 r10173 462 462 463 463 @Override 464 public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {} 465 466 @Override 467 public void popupMenuCanceled(PopupMenuEvent e) {} 464 public void popupMenuWillBecomeInvisible(PopupMenuEvent e) { 465 // Do nothing 466 } 467 468 @Override 469 public void popupMenuCanceled(PopupMenuEvent e) { 470 // Do nothing 471 } 468 472 }); 469 473 add(remove); … … 820 824 p.setLayout(new LayoutManager() { 821 825 @Override 822 public void addLayoutComponent(String name, Component comp) {} 823 824 @Override 825 public void removeLayoutComponent(Component comp) {} 826 public void addLayoutComponent(String name, Component comp) { 827 // Do nothing 828 } 829 830 @Override 831 public void removeLayoutComponent(Component comp) { 832 // Do nothing 833 } 826 834 827 835 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/SingleProjectionChoice.java
r8444 r10173 54 54 @Override 55 55 public void setPreferences(Collection<String> args) { 56 // Do nothing 56 57 } 57 58 -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ApiUrlTestTask.java
r9309 r10173 143 143 144 144 @Override 145 protected void finish() {} 145 protected void finish() { 146 // Do nothing 147 } 146 148 147 149 /** -
trunk/src/org/openstreetmap/josm/gui/progress/ChildProgress.java
r9531 r10173 30 30 @Override 31 31 protected void doBeginTask() { 32 // Do nothing 32 33 } 33 34 -
trunk/src/org/openstreetmap/josm/gui/progress/NullProgressMonitor.java
r10121 r10173 16 16 17 17 private NullProgressMonitor() { 18 18 // Do nothing 19 19 } 20 20 21 21 @Override 22 22 public void addCancelListener(CancelListener listener) { 23 // Do nothing 23 24 } 24 25 … … 39 40 @Override 40 41 public void cancel() { 42 // Do nothing 41 43 } 42 44 … … 48 50 @Override 49 51 public void finishTask() { 50 } 51 52 public String getErrorMessage() { 53 return null; 52 // Do nothing 54 53 } 55 54 … … 68 67 @Override 69 68 public void invalidate() { 69 // Do nothing 70 70 } 71 71 … … 77 77 @Override 78 78 public void removeCancelListener(CancelListener listener) { 79 // Do nothing 79 80 } 80 81 81 82 @Override 82 83 public void setCustomText(String text) { 83 } 84 85 public void setErrorMessage(String message) { 84 // Do nothing 86 85 } 87 86 88 87 @Override 89 88 public void setExtraText(String text) { 89 // Do nothing 90 90 } 91 91 92 92 @Override 93 93 public void appendLogMessage(String message) { 94 } 95 96 public void setSilent(boolean value) { 94 // Do nothing 97 95 } 98 96 99 97 @Override 100 98 public void setTicks(int ticks) { 99 // Do nothing 101 100 } 102 101 103 102 @Override 104 103 public void setTicksCount(int ticks) { 104 // Do nothing 105 105 } 106 106 … … 114 114 @Override 115 115 public void worked(int ticks) { 116 // Do nothing 116 117 } 117 118 … … 123 124 @Override 124 125 public void setProgressTaskId(ProgressTaskId taskId) { 126 // Do nothing 125 127 } 126 128 -
trunk/src/org/openstreetmap/josm/gui/progress/SwingRenderingProgressMonitor.java
r9078 r10173 94 94 @Override 95 95 public void setProgressTaskId(ProgressTaskId taskId) { 96 // Do nothing 96 97 } 97 98 -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitPane.java
r9970 r10173 384 384 385 385 @Override 386 public void keyReleased(KeyEvent e) { } 387 388 @Override 389 public void keyTyped(KeyEvent e) { } 386 public void keyReleased(KeyEvent e) { 387 // Do nothing 388 } 389 390 @Override 391 public void keyTyped(KeyEvent e) { 392 // Do nothing 393 } 390 394 } 391 395 -
trunk/src/org/openstreetmap/josm/gui/widgets/PopupMenuLauncher.java
r8513 r10173 4 4 import java.awt.Component; 5 5 import java.awt.Point; 6 import java.awt.event.FocusAdapter; 6 7 import java.awt.event.FocusEvent; 7 import java.awt.event.FocusListener;8 8 import java.awt.event.MouseAdapter; 9 9 import java.awt.event.MouseEvent; … … 95 95 protected void checkFocusAndShowMenu(final Component component, final MouseEvent evt) { 96 96 if (component != null && component.isFocusable() && !component.hasFocus() && component.requestFocusInWindow()) { 97 component.addFocusListener(new FocusListener() { 98 @Override 99 public void focusLost(FocusEvent e) {} 100 97 component.addFocusListener(new FocusAdapter() { 101 98 @Override 102 99 public void focusGained(FocusEvent e) { -
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r9978 r10173 92 92 /** Do not let anyone add mouse listeners */ 93 93 @Override 94 public void addMouseListener(MouseListener l) { } 94 public void addMouseListener(MouseListener l) { 95 // Do nothing 96 } 95 97 96 98 /** … … 211 213 212 214 @Override 213 public void setArmed(boolean b) { } 214 215 @Override 216 public void setSelected(boolean b) { } 217 218 @Override 219 public void setPressed(boolean b) { } 215 public void setArmed(boolean b) { 216 // Do nothing 217 } 218 219 @Override 220 public void setSelected(boolean b) { 221 // Do nothing 222 } 223 224 @Override 225 public void setPressed(boolean b) { 226 // Do nothing 227 } 220 228 221 229 /** We disable focusing on the component when it is not enabled. */ -
trunk/src/org/openstreetmap/josm/io/GeoJSONWriter.java
r10171 r10173 114 114 @Override 115 115 public void visit(IRelation r) { 116 // Do nothing 116 117 } 117 118 } -
trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java
r10123 r10173 58 58 59 59 @Override 60 protected void finish() {} 60 protected void finish() { 61 // Do nothing 62 } 61 63 62 64 protected void processJarFile(File f, String pluginName) throws PluginException { -
trunk/src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java
r10043 r10173 97 97 98 98 @Override 99 protected void finish() {} 99 protected void finish() { 100 // Do nothing 101 } 100 102 101 103 /** -
trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java
r10166 r10173 108 108 @Override 109 109 public void afterPrefStartupHook() { 110 // Do nothing 110 111 } 111 112
Note:
See TracChangeset
for help on using the changeset viewer.