svn commit: r17219 - trunk/src/argouml-app/src/org/argouml/persistence/PGMLStackParser.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-08-03 17:21:02-0700
New Revision: 17219

Modified:
   trunk/src/argouml-app/src/org/argouml/persistence/PGMLStackParser.java

Log:
Allow to create Figs by reflection that may not be public

Modified: trunk/src/argouml-app/src/org/argouml/persistence/PGMLStackParser.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/persistence/PGMLStackParser.java?view=diff&pathrev=17219&r1=17218&r2=17219
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/persistence/PGMLStackParser.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/persistence/PGMLStackParser.java	2009-08-03 17:21:02-0700
@@ -625,7 +625,8 @@
                     parameters[1] = bounds;
                     parameters[2] = 
                         ((ArgoDiagram) getDiagram()).getDiagramSettings();
-
+                    
+                    constructor.setAccessible(true);
                     f =  (Fig) constructor.newInstance(parameters);
                 }
                 // FigEdgeModelElements should match here (they have no bounds)
@@ -642,6 +643,7 @@
                     parameters[1] = 
                         ((ArgoDiagram) getDiagram()).getDiagramSettings();
 
+                    constructor.setAccessible(true);
                     f =  (Fig) constructor.newInstance(parameters);
                 }
             }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2379790

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.