Changeset 1759 for trunk/autoquest-plugin-uml
- Timestamp:
- 09/22/14 15:25:22 (10 years ago)
- Location:
- trunk/autoquest-plugin-uml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-uml/pom.xml
r1643 r1759 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 2 <parent> 3 <groupId>de.ugoe.cs.autoquest</groupId> 4 <artifactId>autoquest</artifactId> 5 <version>0.1.1-SNAPSHOT</version> 6 <relativePath>../autoquest/pom.xml</relativePath> 7 </parent> 8 <modelVersion>4.0.0</modelVersion> 9 <artifactId>autoquest-plugin-uml</artifactId> 10 <name>autoquest-plugin-uml</name> 11 <licenses> 12 <license> 13 <name>The Apache Software License, Version 2.0</name> 14 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 15 </license> 16 </licenses> 17 <scm> 18 <url>${autoquest-scm-trunk-dir}/${project.artifactId}</url> 19 <connection>scm:svn:${autoquest-scm-trunk-dir}/${project.artifactId}</connection> 20 </scm> 21 <dependencies> 22 <dependency> 23 <groupId>de.ugoe.cs</groupId> 24 <artifactId>java-utils</artifactId> 25 <version>0.1.1-SNAPSHOT</version> 26 </dependency> 27 <dependency> 28 <groupId>de.ugoe.cs.autoquest</groupId> 29 <artifactId>autoquest-plugin-core</artifactId> 30 <version>${project.parent.version}</version> 31 </dependency> 32 <dependency> 33 <groupId>commons-codec</groupId> 34 <artifactId>commons-codec</artifactId> 35 <version>1.6</version> 36 </dependency> 37 <dependency> 38 <groupId>de.ugoe.cs.autoquest</groupId> 39 <artifactId>autoquest-core-events</artifactId> 40 <version>${project.parent.version}</version> 41 </dependency> 42 <dependency> 43 <groupId>de.ugoe.cs.autoquest</groupId> 44 <artifactId>autoquest-core-usageprofiles</artifactId> 45 <version>${project.parent.version}</version> 46 </dependency> 47 <dependency> 48 <groupId>de.ugoe.cs.autoquest</groupId> 49 <artifactId>autoquest-misc</artifactId> 50 <version>${project.parent.version}</version> 51 </dependency> 52 <dependency> 53 <groupId>de.ugoe.cs.autoquest</groupId> 54 <artifactId>autoquest-plugin-http</artifactId> 55 <version>${project.parent.version}</version> 56 </dependency> 57 <dependency> 1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 3 <parent> 4 <groupId>de.ugoe.cs.autoquest</groupId> 5 <artifactId>autoquest</artifactId> 6 <version>0.1.1-SNAPSHOT</version> 7 <relativePath>../autoquest/pom.xml</relativePath> 8 </parent> 9 <modelVersion>4.0.0</modelVersion> 10 <artifactId>autoquest-plugin-uml</artifactId> 11 <name>autoquest-plugin-uml</name> 12 <licenses> 13 <license> 14 <name>The Apache Software License, Version 2.0</name> 15 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> 16 </license> 17 </licenses> 18 <scm> 19 <url>${autoquest-scm-trunk-dir}/${project.artifactId}</url> 20 <connection>scm:svn:${autoquest-scm-trunk-dir}/${project.artifactId}</connection> 21 </scm> 22 <dependencies> 23 <dependency> 24 <groupId>de.ugoe.cs</groupId> 25 <artifactId>java-utils</artifactId> 26 <version>0.1.1-SNAPSHOT</version> 27 </dependency> 28 <dependency> 29 <groupId>de.ugoe.cs.autoquest</groupId> 30 <artifactId>autoquest-plugin-core</artifactId> 31 <version>${project.parent.version}</version> 32 </dependency> 33 <dependency> 34 <groupId>commons-codec</groupId> 35 <artifactId>commons-codec</artifactId> 36 <version>1.6</version> 37 </dependency> 38 <dependency> 39 <groupId>de.ugoe.cs.autoquest</groupId> 40 <artifactId>autoquest-core-events</artifactId> 41 <version>${project.parent.version}</version> 42 </dependency> 43 <dependency> 44 <groupId>de.ugoe.cs.autoquest</groupId> 45 <artifactId>autoquest-core-usageprofiles</artifactId> 46 <version>${project.parent.version}</version> 47 </dependency> 48 <dependency> 49 <groupId>de.ugoe.cs.autoquest</groupId> 50 <artifactId>autoquest-misc</artifactId> 51 <version>${project.parent.version}</version> 52 </dependency> 53 <dependency> 54 <groupId>de.ugoe.cs.autoquest</groupId> 55 <artifactId>autoquest-plugin-http</artifactId> 56 <version>${project.parent.version}</version> 57 </dependency> 58 59 <dependency> 58 60 <groupId>org.eclipse.emf</groupId> 59 61 <artifactId>org.eclipse.emf.common</artifactId> … … 106 108 <version>4.1.0</version> 107 109 </dependency> 108 </dependencies> 109 <build> 110 <plugins> 111 <plugin> 112 <groupId>org.apache.maven.plugins</groupId> 113 <artifactId>maven-jar-plugin</artifactId> 114 <configuration> 115 <archive> 116 <manifest> 117 <addClasspath>true</addClasspath> 118 </manifest> 119 </archive> 120 </configuration> 121 </plugin> 122 </plugins> 123 </build> 110 111 <dependency> 112 <groupId>de.fraunhofer.fokus.testing</groupId> 113 <artifactId>de.fraunhofer.fokus.testing.modelutils</artifactId> 114 <version>1.0.1</version> 115 </dependency> 116 </dependencies> 117 <build> 118 <plugins> 119 <plugin> 120 <groupId>org.apache.maven.plugins</groupId> 121 <artifactId>maven-jar-plugin</artifactId> 122 <configuration> 123 <archive> 124 <manifest> 125 <addClasspath>true</addClasspath> 126 </manifest> 127 </archive> 128 </configuration> 129 </plugin> 130 </plugins> 131 </build> 124 132 </project> -
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.