Changeset 1872
- Timestamp:
- 02/04/15 16:14:11 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/commands/CMDgenerateJacaretoReplay.java
r1857 r1872 15 15 package de.ugoe.cs.autoquest.plugin.jfc.commands; 16 16 17 import org.apache.commons.lang.StringEscapeUtils; 18 19 import java.awt.GraphicsDevice; 20 import java.awt.GraphicsEnvironment; 17 21 import java.io.BufferedWriter; 18 22 import java.io.File; … … 343 347 344 348 int index = 1; 345 for ( List<Event> sequence : sequences) {346 writeJacaretoXML(sequence, filename +"_"+index, classpath, basepath, classpathext);349 for (List<Event> sequence : sequences) { 350 writeJacaretoXML(sequence, filename + "_" + index, classpath, basepath, classpathext); 347 351 index++; 348 352 } … … 420 424 + "uuid=\"" + UUID.randomUUID() + "\" />" 421 425 ); 422 writeLine(writer, 423 "<SystemInfo procTime=\"0\" duration=\"0\" screenWidth=\"2646\" screenHeight=\"1024\" javaVersion=\"1.7.0_65\" " 424 + "lookAndFeel=\"" + UIManager.getLookAndFeel().getClass().getName() + "\" " 425 + "uuid=\"720f430f-52cf-4d8b-9fbe-58434f766efe\" />"); 426 GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(); 427 writeLine(writer, "<SystemInfo " 428 + "procTime=\"0\" " 429 + "duration=\"0\" " 430 + "screenWidth=\"" + gd.getDisplayMode().getWidth() + "\" " 431 + "screenHeight=\"" + gd.getDisplayMode().getHeight() + "\" " 432 + "javaVersion=\"" + System.getProperty("java.version") + "\" " 433 + "lookAndFeel=\"" + UIManager.getLookAndFeel().getClass().getName() + "\" " 434 + "uuid=\"" + UUID.randomUUID() + "\" />" 435 ); 426 436 writeLine(writer, 427 437 "<KeyboardState procTime=\"0\" duration=\"0\" isNumLockOn=\"false\" isScrollLockOn=\"false\" isCapsLockOn=\"false\" applyIsNumLockOn=\"true\" applyIsScrollLockOn=\"true\" applyIsCapsLockOn=\"true\" uuid=\"28146f79-9fc7-49f9-b4a8-5866a7625683\" />"); … … 516 526 } 517 527 else { 518 Console.traceln(Level.WARNING, "No handler for event \"" + event + 519 "\". Skipped."); 528 Console.traceln(Level.WARNING, "No handler for event \"" + event + "\". Skipped."); 520 529 } 521 530 } … … 823 832 + "uuid=\"" + UUID.randomUUID() + "\" " 824 833 + "ID=\"1001\" " 825 + "command=" + target.getName() + " "834 + "command=" + StringEscapeUtils.escapeXml(target.getName()) + " " 826 835 + "modifiers=\"" + getButtonModifier(info) + "\" />" 827 836 );
Note: See TracChangeset
for help on using the changeset viewer.