Changeset 27


Ignore:
Timestamp:
04/14/11 14:45:53 (13 years ago)
Author:
sherbold
Message:

+ added parentTarget as additional winParamType for the rules.xml

Location:
trunk/EventBenchConsole
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/rules/ruleSchema.xsd

    r1 r27  
    189189      <xs:enumeration value="resourceId"/> 
    190190      <xs:enumeration value="hwnd"/> 
     191      <xs:enumeration value="parentTarget"/> 
    191192    </xs:restriction> 
    192193  </xs:simpleType> 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/EventGenerator.java

    r18 r27  
    546546                                } else if (paramString.equals("hwnd")) { 
    547547                                        value = "" + varMessage.getHwnd(); 
     548                                } else if (paramString.equals("parentTarget")) { 
     549                                        String target = varMessage.getXmlWindowDescription(); 
     550                                        int index = target.lastIndexOf("<"); 
     551                                        value = target.substring(0, index); 
    548552                                } 
    549553                        } 
Note: See TracChangeset for help on using the changeset viewer.