Author: bobtarling
Date: 2011-02-27 09:02:41-0800
New Revision: 19079
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ExtensionMechanismsFactoryEUMLImpl.java
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
Log:
Display buttons for tagged values in stereotype (which are in fact properties of a stereotype)
Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ExtensionMechanismsFactoryEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ExtensionMechanismsFactoryEUMLImpl.java?view=diff&pathrev=19079&r1=19078&r2=19079
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ExtensionMechanismsFactoryEUMLImpl.java (original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/ExtensionMechanismsFactoryEUMLImpl.java 2011-02-27 09:02:41-0800
@@ -138,8 +138,7 @@
}
public Object createTagDefinition() {
- // TODO: Auto-generated method stub
- return null;
+ return UMLFactory.eINSTANCE.createProperty();
}
public Object createTaggedValue() {
Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java?view=diff&pathrev=19079&r1=19078&r2=19079
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java (original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/UmlFactoryEUMLImpl.java 2011-02-27 09:02:41-0800
@@ -288,6 +288,8 @@
Object o = null;
if (elementType == metaTypes.getActor()) {
o = modelImpl.getUseCasesFactory().createActor();
+ } else if (elementType == metaTypes.getTagDefinition()) {
+ o = modelImpl.getExtensionMechanismsFactory().createTagDefinition();
} else if (elementType == metaTypes.getUseCase()) {
o = modelImpl.getUseCasesFactory().createUseCase();
} else if (elementType == metaTypes.getUMLClass()) {
@@ -387,6 +389,8 @@
o = modelImpl.getUseCasesFactory().createExtensionPoint();
} else if (elementType == metaTypes.getReception()) {
o = modelImpl.getCommonBehaviorFactory().createReception();
+ } else if (elementType == metaTypes.getProperty()) {
+ o = modelImpl.getCoreFactory().createAttribute();
} else if (elementType == metaTypes.getSubsystem()) {
// in UML2 subsystem is a Component with <<subsystem>> stereotype
// so this must occur after the metaTypes.getComponent() case
@@ -582,6 +586,12 @@
Signal.class
});
+ // specifies valid elements for a Package to contain
+ validContainmentMap.put(Stereotype.class,
+ new Class<?>[] {
+ Property.class
+ });
+
// valid elements for a Profile to contain
validContainmentMap.put(Profile.class,
new Class<?>[] {
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2708026
To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.