This adds support for the <isindex> tag. This tag is barely ever used, I
didn't even know that it exists. So the implementation is quite trivial
too.

2006-11-03  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/text/html/HTMLDocument.java
        (HTMLReader.IsindexAction.start): Implemented.

/Roman

Index: javax/swing/text/html/HTMLDocument.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/HTMLDocument.java,v
retrieving revision 1.44
diff -u -1 -5 -r1.44 HTMLDocument.java
--- javax/swing/text/html/HTMLDocument.java	3 Nov 2006 11:24:05 -0000	1.44
+++ javax/swing/text/html/HTMLDocument.java	3 Nov 2006 13:19:43 -0000
@@ -747,42 +747,45 @@
        */
       public void start(HTML.Tag t, MutableAttributeSet a)
       {
         blockOpen(t, a);
       }
       
       /**
        * Called when an end tag is seen for one of the types of tags associated
        * with this Action.
        */
       public void end(HTML.Tag t)
       {
         blockClose(t);
       } 
     }
-    
+
+    /**
+     * Handles &lt;isindex&gt; tags.
+     */
     public class IsindexAction extends TagAction
     {
       /**
        * This method is called when a start tag is seen for one of the types
        * of tags associated with this Action.
        */
       public void start(HTML.Tag t, MutableAttributeSet a)
-        throws NotImplementedException
       {
-        // FIXME: Implement.
-        print ("IsindexAction.start not implemented");
+        blockOpen(HTML.Tag.IMPLIED, new SimpleAttributeSet());
+        addSpecialElement(t, a);
+        blockClose(HTML.Tag.IMPLIED);
       }
     }
     
     public class ParagraphAction extends BlockAction
     {
       /**
        * This method is called when a start tag is seen for one of the types
        * of tags associated with this Action.
        */
       public void start(HTML.Tag t, MutableAttributeSet a)
       {
         blockOpen(t, a);
       }
       
       /**

Reply via email to