Author: mvw Date: 2008-01-19 12:54:10-0800 New Revision: 14059 Modified: trunk/src_new/org/argouml/persistence/PGML.tee trunk/src_new/org/argouml/persistence/PGMLStackParser.java
Log: Fix for another part of issue 4951: Now the style (bold/italic) of the text area save and reload correctly. Modified: trunk/src_new/org/argouml/persistence/PGML.tee Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/persistence/PGML.tee?view=diff&rev=14059&p1=trunk/src_new/org/argouml/persistence/PGML.tee&p2=trunk/src_new/org/argouml/persistence/PGML.tee&r1=14058&r2=14059 ============================================================================== --- trunk/src_new/org/argouml/persistence/PGML.tee (original) +++ trunk/src_new/org/argouml/persistence/PGML.tee 2008-01-19 12:54:10-0800 @@ -218,7 +218,8 @@ FILL_AND_STROKE font="<ocl>self.fontFamily</ocl>" - + italic="<ocl>self.italic</ocl>" + bold="<ocl>self.bold</ocl>" textsize="<ocl>self.fontSize</ocl>" justification="<ocl>self.justificationByName</ocl>" ><ocl>self.text</ocl></text> Modified: trunk/src_new/org/argouml/persistence/PGMLStackParser.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/persistence/PGMLStackParser.java?view=diff&rev=14059&p1=trunk/src_new/org/argouml/persistence/PGMLStackParser.java&p2=trunk/src_new/org/argouml/persistence/PGMLStackParser.java&r1=14058&r2=14059 ============================================================================== --- trunk/src_new/org/argouml/persistence/PGMLStackParser.java (original) +++ trunk/src_new/org/argouml/persistence/PGMLStackParser.java 2008-01-19 12:54:10-0800 @@ -178,6 +178,14 @@ if (justification != null && !justification.equals("")) { text.setJustificationByName(justification); } + Boolean italic = Boolean.valueOf(attributes.getValue("italic")); + if (italic != null && !italic.equals("")) { + text.setItalic(italic); + } + Boolean bold = Boolean.valueOf(attributes.getValue("bold")); + if (bold != null && !bold.equals("")) { + text.setBold(bold); + } return new FigTextHandler(this, text); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
