[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Feb 6 03:21:48 UTC 2005


CVS commit by okellogg: 

Apply <<oneway>> and <<readonly>> as defined by the UML Profile for CORBA.


  M +10 -1     idlimport.cpp   1.8


--- kdesdk/umbrello/umbrello/idlimport.cpp  #1.7:1.8
@@ -383,4 +383,8 @@ void parseFile(QString filename) {
                         }
                         importer->insertMethod(klass, op, Uml::Public, typeName, false, false, comment);
+                        if (isOneway) {
+                                op->setStereotype("oneway");
+                                isOneway = false;
+                        }
                         skipStmt();  // skip possible "raises" clause
                         comment = QString::null;
@@ -388,5 +392,10 @@ void parseFile(QString filename) {
                 }
                 // At this point we know it's some kind of attribute declaration.
-                importer->insertAttribute( klass, currentAccess, name, typeName, comment);
+                UMLObject *o = importer->insertAttribute(klass, currentAccess, name, typeName, comment);
+                UMLAttribute *attr = static_cast<UMLAttribute*>(o);
+                if (isReadonly) {
+                        attr->setStereotype("readonly");
+                        isReadonly = false;
+                }
                 currentAccess = Uml::Public;
                 if (source[srcIndex] != ";") {






More information about the umbrello-devel mailing list