svn commit: r13292 - branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: b00__1
Date: 2007-08-11 04:34:06-0700
New Revision: 13292

Modified:
   branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java

Log:
Fix a bug - change Package (implicit java.lang.Package) to org.eclipse.uml2.Package

Modified: branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java?view=diff&rev=13292&p1=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java&p2=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java&r1=13291&r2=13292
==============================================================================
--- branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java	(original)
+++ branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreFactoryEUMLImpl.java	2007-08-11 04:34:06-0700
@@ -498,7 +498,7 @@
                 if (name != null) {
                     class_.setName(name);
                 }
-                if (owner instanceof Package) {
+                if (owner instanceof org.eclipse.uml2.uml.Package) {
                     class_.setPackage((org.eclipse.uml2.uml.Package) owner);
                 } else if (owner instanceof org.eclipse.uml2.uml.Class) {
                     ((org.eclipse.uml2.uml.Class) owner).getNestedClassifiers().add(
@@ -608,7 +608,7 @@
                 if (name != null) {
                     dataType.setName(name);
                 }
-                if (owner instanceof Package) {
+                if (owner instanceof org.eclipse.uml2.uml.Package) {
                     dataType.setPackage((org.eclipse.uml2.uml.Package) owner);
                 } else if (owner instanceof org.eclipse.uml2.uml.Class) {
                     ((org.eclipse.uml2.uml.Class) owner).getNestedClassifiers().add(
@@ -675,7 +675,7 @@
                 if (name != null) {
                     enumeration.setName(name);
                 }
-                if (owner instanceof Package) {
+                if (owner instanceof org.eclipse.uml2.uml.Package) {
                     enumeration.setPackage((org.eclipse.uml2.uml.Package) owner);
                 } else if (owner instanceof org.eclipse.uml2.uml.Class) {
                     ((org.eclipse.uml2.uml.Class) owner).getNestedClassifiers().add(
@@ -774,7 +774,7 @@
         RunnableClass run = new RunnableClass() {
             public void run() {
                 Interface interface_ = createInterface();
-                if (owner instanceof Package) {
+                if (owner instanceof org.eclipse.uml2.uml.Package) {
                     interface_.setPackage((org.eclipse.uml2.uml.Package) owner);
                 } else if (owner instanceof org.eclipse.uml2.uml.Class) {
                     ((org.eclipse.uml2.uml.Class) owner).getNestedClassifiers().add(
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.