svn commit: r14983 - branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2008-06-17 04:58:30-0700
New Revision: 14983

Modified:
   branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java

Log:
update

Modified: branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java?view=diff&rev=14983&p1=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java&p2=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java&r1=14982&r2=14983
==============================================================================
--- branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java	(original)
+++ branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/explorer/rules/GoProfileToModel.java	2008-06-17 04:58:30-0700
@@ -33,7 +33,7 @@
 import org.argouml.profile.ProfileException;

 

 /**

- * Rule for Project->Profile.

+ * Rule for Profile->Model.

  *

  */

 public class GoProfileToModel extends AbstractPerspectiveRule {

@@ -51,7 +51,8 @@
     public Collection getChildren(Object parent) {

 	if (parent instanceof Profile) {

             try {

-                return ((Profile) parent).getProfilePackages();

+                Collection col = ((Profile) parent).getProfilePackages();

+                return col;

             } catch (ProfileException e) {

                 return Collections.EMPTY_SET;

             }
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.