Changeset 1916 for trunk


Ignore:
Timestamp:
03/12/15 15:24:31 (10 years ago)
Author:
sherbold
Message:
  • fixed bug; should now be working with SimpleSOAPEventType again
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-uml/src/main/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtils.java

    r1913 r1916  
    135135        for (List<Event> sequence : sequences) { 
    136136            for (Event event : sequence) { 
    137                 if (event.getType() instanceof SOAPEventType) { 
    138                     SOAPEventType eventType = (SOAPEventType) event.getType(); 
    139                     Set<String> curCalledMethods = calledMethods.get(eventType.getServiceName()); 
     137                String serviceName = getServiceNameFromEvent(event); 
     138                String calledMethod = getCalledMethodFromEvent(event); 
     139                if( serviceName!=null ) { 
     140                    Set<String> curCalledMethods = calledMethods.get(serviceName); 
    140141                    if (curCalledMethods == null) { 
    141142                        curCalledMethods = new TreeSet<>(); 
    142                         calledMethods.put(eventType.getServiceName(), curCalledMethods); 
    143                     } 
    144                     curCalledMethods.add(eventType.getCalledMethod()); 
     143                        calledMethods.put(serviceName, curCalledMethods); 
     144                    } 
     145                    curCalledMethods.add(calledMethod); 
    145146                } 
    146147            } 
     
    10141015            ubtInstSpecPkg = (Package) type.getModel().createPackagedElement(pkgUBTInstSpecs, UMLPackage.Literals.PACKAGE); 
    10151016        } 
    1016         String serviceName = ((SOAPEventType) event.getType()).getServiceName(); 
     1017        String serviceName = getServiceNameFromEvent(event); 
    10171018        Package serviceInstSpecPkg = (Package) ubtInstSpecPkg.getOwnedMember(serviceName); 
    10181019        if( serviceInstSpecPkg==null ) { 
Note: See TracChangeset for help on using the changeset viewer.