svn commit: r15346 - trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2008-07-22 17:13:49-0700
New Revision: 15346

Modified:
   trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl

Log:
Issue 5251: Add the new default settings to a project if they are not already there.

Modified: trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl?view=diff&rev=15346&p1=trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl&p2=trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl&r1=15345&r2=15346
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl	(original)
+++ trunk/src/argouml-app/src/org/argouml/persistence/upgrades/upgrade6.xsl	2008-07-22 17:13:49-0700
@@ -7,7 +7,7 @@
 

 <!-- Make sure pgml members appear immediately after xmi -->

     

-    <!-- Write member tags within members as profile, xmi, pgml, todo -->

+    <!-- Write <member> tags within <members> ordered by profile, xmi, pgml, todo -->

 	<xsl:template match='member[1]'>

 		<members>

 	        <xsl:for-each select='/uml/argo/member[./@type = "profile"]'>

@@ -53,7 +53,28 @@
  	<xsl:template match="/uml/pgml/group[contains(./private,'LAYER_NULL')]">

 	</xsl:template>

 	

-    

+	<!-- Add defaults for new settings issue 5231 -->

+ 	<xsl:template match="/uml/argo/settings">

+ 	   <settings>

+		<xsl:copy-of select="*"/>

+		<xsl:if test="count(showboldnames) = 0">

+			<showboldnames>false</showboldnames>

+		</xsl:if>

+		<xsl:if test="count(showassociationnames) = 0">

+			<showassociationnames>true</showassociationnames>

+		</xsl:if>

+		<xsl:if test="count(fontname) = 0">

+			<fontname>Dialog</fontname>

+		</xsl:if>

+		<xsl:if test="count(fontsize) = 0">

+			<fontsize>10</fontsize>

+		</xsl:if>

+		<xsl:if test="count(defaultstereotypeview) = 0">

+			<defaultstereotypeview>0</defaultstereotypeview>

+		</xsl:if>

+ 	   </settings>

+	</xsl:template>

+	

 <!-- 

 Anything not touched by the fixes above must be copied over unchanged

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