svn commit: r16302 - trunk/src: argouml-core-model-mdr/src/org/argouml/model/mdr argouml-core-model/src/org/argouml/model
Tom Morris <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2008-12-07 14:01:43-0800
New Revision: 16302
Modified:
trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreFactoryMDRImpl.java
trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java
Log:
Add createPackageImport. Deprecate createPermission.
Modified: trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreFactoryMDRImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreFactoryMDRImpl.java?view=diff&pathrev=16302&r1=16301&r2=16302
==============================================================================
--- trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreFactoryMDRImpl.java (original)
+++ trunk/src/argouml-core-model-mdr/src/org/argouml/model/mdr/CoreFactoryMDRImpl.java 2008-12-07 14:01:43-0800
@@ -368,14 +368,19 @@
}
+ @SuppressWarnings("deprecation")
+ @Deprecated
public Permission createPermission() {
+ return createPackageImport();
+ }
+
+ public Permission createPackageImport() {
Permission myPermission = getCorePackage()
.getPermission().createPermission();
super.initialize(myPermission);
return myPermission;
}
-
public Primitive createPrimitiveType() {
Primitive obj = getCorePackage().getPrimitive().createPrimitive();
super.initialize(obj);
@@ -890,7 +895,7 @@
private Permission buildPermissionInternal(ModelElement client,
ModelElement supplier) {
- Permission permission = createPermission();
+ Permission permission = createPackageImport();
permission.getSupplier().add(supplier);
permission.getClient().add(client);
if (client instanceof Namespace) {
Modified: trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java?view=diff&pathrev=16302&r1=16301&r2=16302
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java (original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/CoreFactory.java 2008-12-07 14:01:43-0800
@@ -267,10 +267,21 @@
* @return an initialized UML Permission instance.
* TODO: This needs an extra parameter to specify the model/extent where
* the new element should be created.
+ * @deprecated for 0.27.3 by tfmorris. Renamed in UML 2.x to PackageImport.
+ * Use {@link #createPackageImport()}.
*/
+ @Deprecated
Object createPermission();
-
+ /**
+ * Create an empty but initialized instance of a UML Permission.
+ *
+ * @return an initialized UML Permission instance.
+ * TODO: This needs an extra parameter to specify the model/extent where
+ * the new element should be created.
+ */
+ Object createPackageImport();
+
/**
* Create a UML PrimitiveType.
*
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=980917
To unsubscribe from this discussion, e-mail: [[email protected]].