Changeset 372 for trunk/JFCMonitor
- Timestamp:
- 01/30/12 15:05:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/JFCListener.java
r371 r372 64 64 65 65 if (event instanceof MouseEvent) { 66 MouseEvent mouseEvent = (MouseEvent) event;67 66 if (!isMouseMovement(event.getID())) { 67 MouseEvent mouseEvent = (MouseEvent) event; 68 68 builder.append("<event id=\"" + event.getID() + "\">" 69 69 + StringTools.ENDLINE); … … 82 82 } 83 83 } 84 if (event instanceof KeyEvent) {85 KeyEvent keyEvent = (KeyEvent) event;86 if (keyEvent.getID() == KeyEvent.KEY_PRESSED87 || keyEvent.getID() == KeyEvent.KEY_RELEASED) {84 else if (event instanceof KeyEvent) { 85 if (event.getID() == KeyEvent.KEY_PRESSED 86 || event.getID() == KeyEvent.KEY_RELEASED) { 87 KeyEvent keyEvent = (KeyEvent) event; 88 88 builder.append("<event id=\"" + event.getID() + "\">" 89 89 + StringTools.ENDLINE); … … 97 97 } 98 98 } 99 if (event instanceof FocusEvent) { 100 FocusEvent focusEvent = (FocusEvent) event; 101 if (focusEvent.getID() == FocusEvent.FOCUS_GAINED) { 99 else if (event instanceof FocusEvent) { 100 if (event.getID() == FocusEvent.FOCUS_GAINED) { 102 101 builder.append("<event id=\"" + event.getID() + "\">" 103 102 + StringTools.ENDLINE);
Note: See TracChangeset
for help on using the changeset viewer.