harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r606861 - /harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/HTMLParser.java
Date Wed, 26 Dec 2007 09:16:38 GMT
Author: apetrenko
Date: Wed Dec 26 01:16:36 2007
New Revision: 606861

URL: http://svn.apache.org/viewvc?rev=606861&view=rev
Log:
Applet viewer now reads applet parameters

Modified:
    harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/HTMLParser.java

Modified: harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/HTMLParser.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/HTMLParser.java?rev=606861&r1=606860&r2=606861&view=diff
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/HTMLParser.java
(original)
+++ harmony/enhanced/jdktools/trunk/modules/tools/src/main/java/org/apache/harmony/tools/appletviewer/HTMLParser.java
Wed Dec 26 01:16:36 2007
@@ -75,7 +75,12 @@
 				appletInfo.setWidth(attrs.getValue("width"));
 				appletInfo.setHeight(attrs.getValue("height"));
 				list.add(appletInfo);
-			}			
+				return;
+			}
+			
+			if (appletInfo != null && qName.equalsIgnoreCase("PARAM")) {
+				appletInfo.setParameter(attrs.getValue("name"), attrs.getValue("value"));
+			}
 		}
 		
 		public void endElement(String uri, String lName, String qName) throws SAXException {



Mime
View raw message