Changeset 1759 for trunk/autoquest-plugin-uml/src/main/java/de/ugoe/cs
- Timestamp:
- 09/22/14 15:25:22 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-uml/src/main/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtils.java
r1753 r1759 39 39 import org.eclipse.uml2.uml.Operation; 40 40 import org.eclipse.uml2.uml.Port; 41 import org.eclipse.uml2.uml.Profile; 41 42 import org.eclipse.uml2.uml.Region; 42 43 import org.eclipse.uml2.uml.StateMachine; 44 import org.eclipse.uml2.uml.Stereotype; 43 45 import org.eclipse.uml2.uml.Transition; 44 46 import org.eclipse.uml2.uml.UMLPackage; … … 272 274 } 273 275 274 Interaction interaction =275 (Interaction) model.createPackagedElement(interactionName,276 UMLPackage.Literals.INTERACTION);277 278 Lifeline userLifeline = interaction.createLifeline("user");279 280 276 Component testContext = 281 277 (Component) model.getPackagedElement("TestContext", true, 282 278 UMLPackage.Literals.COMPONENT, true); 279 280 final Profile utpProfile = model.getAppliedProfile("utp"); 281 final Stereotype utpTestCase = (Stereotype) utpProfile.getOwnedMember("TestCase"); 282 Operation operation = testContext.createOwnedOperation(interactionName, null, null); 283 operation.applyStereotype(utpTestCase); 284 285 Interaction interaction = 286 (Interaction) testContext.createPackagedElement(interactionName + "_Impl", 287 UMLPackage.Literals.INTERACTION); 288 289 Lifeline userLifeline = interaction.createLifeline("user"); 290 283 291 userLifeline.setRepresents(testContext.getAttribute("user", null)); 284 292
Note: See TracChangeset
for help on using the changeset viewer.