User: ko5tik  
  Date: 02/09/23 10:38:52

  Modified:    src/java/xdocletgui/swing TreeFactoryScratch.java
  Log:
  fixed bug in  in doc parsing
  ( now GUI sees duplicate tags )
  
  Revision  Changes    Path
  1.26      +19 -1     xdocletgui/src/java/xdocletgui/swing/TreeFactoryScratch.java
  
  Index: TreeFactoryScratch.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdocletgui/src/java/xdocletgui/swing/TreeFactoryScratch.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -w -r1.25 -r1.26
  --- TreeFactoryScratch.java   26 Aug 2002 15:30:43 -0000      1.25
  +++ TreeFactoryScratch.java   23 Sep 2002 17:38:51 -0000      1.26
  @@ -417,7 +417,25 @@
                        _log.debug( "tag family found: " + tf );
                        if( tf != null )
                        {
  -                             ( ( TagFamilyTreeNode ) familyMap.get( tf.getName() ) 
).add( createParsedTagNode( tf.getTag( tag.getName() ), tag ) );
  +                             /*
  +                              * quick hack for release - locate correct tag...
  +                              */
  +                             Tag res = null;
  +
  +                             for( int i = 0; i < tf.size(); i++ )
  +                             {
  +                                     //break on first accepted tag
  +                                     Tag tt = tf.getTag( i );
  +
  +                                     if( tt.supports( element ) && 
tt.getName().equals( tag.getName() ) )
  +                                     {
  +                                             res = tt;
  +                                     }
  +                             }
  +                             if( res != null )
  +                             {
  +                                     ( ( TagFamilyTreeNode ) familyMap.get( 
tf.getName() ) ).add( createParsedTagNode( res, tag ) );
  +                             }
                        }
                        else
                        {
  
  
  


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to