- Timestamp:
- 2015-06-02T14:03:31+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ImageryAdjustAction.java
r8377 r8441 132 132 if (offsetDialog != null) { 133 133 offsetDialog.updateOffset(); 134 } 135 if (Main.isDebugEnabled()) { 136 Main.debug(getClass().getName()+" consuming event "+kev); 134 137 } 135 138 kev.consume(); -
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r8395 r8441 647 647 if (!Main.isDisplayingMapView() || 648 648 !repeatedKeySwitchLassoOption || !getShortcut().isEvent(e)) return; 649 if (Main.isDebugEnabled()) { 650 Main.debug(getClass().getName()+" consuming event "+e); 651 } 649 652 e.consume(); 650 653 if (!lassoMode) { -
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r8430 r8441 456 456 // and the result differs from its default value 457 457 result = ExtendedDialog.DialogClosedOtherwise; 458 if (Main.isDebugEnabled()) { 459 Main.debug(getClass().getName()+" ESC action performed ("+actionEvent+") from "+new Exception().getStackTrace()[1]); 460 } 458 461 setVisible(false); 459 462 } … … 482 485 if (visible) { 483 486 repaint(); 487 } 488 489 if (Main.isDebugEnabled()) { 490 Main.debug(getClass().getName()+".setVisible("+visible+") from "+new Exception().getStackTrace()[1]); 484 491 } 485 492 … … 646 653 647 654 class HelpAction extends AbstractAction { 655 /** 656 * Constructs a new {@code HelpAction}. 657 */ 648 658 public HelpAction() { 649 659 putValue(SHORT_DESCRIPTION, tr("Show help information")); -
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r8419 r8441 966 966 Action menuAction = selectedItem.getAction(); 967 967 menuAction.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null)); 968 if (Main.isDebugEnabled()) { 969 Main.debug(getClass().getName()+" consuming event "+e); 970 } 968 971 e.consume(); 969 972 } -
trunk/src/org/openstreetmap/josm/gui/MenuScroller.java
r8291 r8441 507 507 firstIndex += mwe.getWheelRotation(); 508 508 refreshMenu(); 509 if (Main.isDebugEnabled()) { 510 Main.debug(getClass().getName()+" consuming event "+mwe); 511 } 509 512 mwe.consume(); 510 513 } -
trunk/src/org/openstreetmap/josm/gui/tagging/ac/AutoCompletingComboBox.java
r8429 r8441 46 46 */ 47 47 class AutoCompletingComboBoxDocument extends PlainDocument { 48 private JosmComboBox<AutoCompletionListItem> comboBox;48 private final JosmComboBox<AutoCompletionListItem> comboBox; 49 49 private boolean selecting = false; 50 50 … … 88 88 // if the current offset isn't at the end of the document we don't autocomplete. 89 89 // If a highlighted autocompleted suffix was present and we get here Swing has 90 // already removed it from the document. getLength() therefore doesn't include the 91 // autocompleted suffix. 90 // already removed it from the document. getLength() therefore doesn't include the autocompleted suffix. 92 91 if (offs + str.length() < getLength()) { 93 92 return; … … 109 108 item = lookupItem(curText, true); 110 109 } catch (NumberFormatException e) { 111 // either the new text or the current text isn't a number. We continue with 112 // autocompletion 110 // either the new text or the current text isn't a number. We continue with autocompletion 113 111 item = lookupItem(curText, false); 114 112 } -
trunk/src/org/openstreetmap/josm/gui/util/AdvancedKeyPressDetector.java
r8345 r8441 123 123 124 124 private void processKeyEvent(KeyEvent e) { 125 if (Main.isDebugEnabled()) { 126 Main.debug("AdvancedKeyPressDetector enabled="+enabled+" => processKeyEvent("+e+") from "+new Exception().getStackTrace()[2]); 127 } 125 128 if (e.getID() == KeyEvent.KEY_PRESSED) { 126 129 if (timer.isRunning()) { … … 130 133 if (isFocusInMainWindow()) { 131 134 for (KeyPressReleaseListener q: keyListeners) { 135 if (Main.isDebugEnabled()) { 136 Main.debug(q+" => doKeyPressed("+e+")"); 137 } 132 138 q.doKeyPressed(e); 133 139 } … … 142 148 if (isFocusInMainWindow()) { 143 149 for (KeyPressReleaseListener q: keyListeners) { 150 if (Main.isDebugEnabled()) { 151 Main.debug(q+" => doKeyReleased("+e+")"); 152 } 144 153 q.doKeyReleased(e); 145 154 } … … 192 201 public final void setEnabled(boolean enabled) { 193 202 this.enabled = enabled; 203 if (Main.isDebugEnabled()) { 204 Main.debug("AdvancedKeyPressDetector enabled="+enabled+" from "+new Exception().getStackTrace()[1]); 205 } 194 206 } 195 207
Note:
See TracChangeset
for help on using the changeset viewer.