Changeset 296 for trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor
- Timestamp:
- 12/13/11 11:08:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JFCMonitor/src/de/ugoe/cs/eventbench/jfcmonitor/JFCListener.java
r277 r296 44 44 * Writes all received {@link MouseEvent}s and {@link KeyEvent}s to the 45 45 * {@link #outputWriter}. 46 * </p> 46 47 * 47 48 * @see java.awt.event.AWTEventListener#eventDispatched(java.awt.AWTEvent) … … 133 134 String text = (String) method.invoke(component, 134 135 new Object[] {}); 135 builder.append(" <param name=\"getText\" value=\"" + text + "\" />" + ENDLINE); 136 if( text!=null ) { 137 builder.append(" <param name=\"getText\" value=\"" + text + "\" />" + ENDLINE); 138 } 136 139 } 137 140 if (method.getName() == "getTitle") { 138 141 String title = (String) method.invoke(component, 139 142 new Object[] {}); 140 builder.append(" <param name=\"getTitle\" value=\"" + title + "\" />" + ENDLINE); 143 if( title!=null ) { 144 builder.append(" <param name=\"getTitle\" value=\"" + title + "\" />" + ENDLINE); 145 } 141 146 } 142 147 } catch (IllegalArgumentException e) { 143 148 } catch (IllegalAccessException e) { 144 149 } catch (InvocationTargetException e) { 150 System.err.println("Found method with name " + method.getName() + " but could not access it."); 145 151 } 146 152 }
Note: See TracChangeset
for help on using the changeset viewer.