CVS: xdoclet/core/src/xdoclet/tagshandler ClassTagsHandler.java,1.27,1.28

Paul Galbraith <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Update of /cvsroot/xdoclet/xdoclet/core/src/xdoclet/tagshandler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17588/src/xdoclet/tagshandler

Modified Files:
	ClassTagsHandler.java 
Log Message:
formatting

Index: ClassTagsHandler.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/tagshandler/ClassTagsHandler.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** ClassTagsHandler.java	26 Jul 2005 21:02:38 -0000	1.27
--- ClassTagsHandler.java	26 Jul 2005 21:35:53 -0000	1.28
***************
*** 678,710 ****
              classTagStack.push(currentTag);
          try {
!         boolean superclasses = TypeConversionUtil.stringToBoolean(attributes.getProperty("superclasses"), true);
!         Collection tags = getCurrentClass().getDoc().getTags(attributes.getProperty("tagName"), superclasses);
!         Set done = new HashSet();
! 
!         matchPattern = null;
! 
!         String tagKey = attributes.getProperty("tagKey");
! 
!         for (Iterator i = tags.iterator(); i.hasNext(); ) {
!             XTag tag = (XTag) i.next();
! 
!             if (tagKey != null) {
!                 String key = tag.getAttributeValue(tagKey);
! 
!                 if (!done.add(key)) {
!                     // no change to set, therefore we must have already done this tag
!                     continue;
                  }
-             }
  
!             setCurrentClassTag(tag);
  
!             generate(template);
          }
!         } finally {
!         if (classTagStack.size() == 0)
!             currentTag = null;
!         else
!             currentTag = (XTag) classTagStack.pop();
          }
          log.debug("popped [" + currentTag + "] off of class tag stack");
--- 678,714 ----
              classTagStack.push(currentTag);
          try {
!             boolean superclasses = TypeConversionUtil.stringToBoolean(
!                 attributes.getProperty("superclasses"), true);
!             Collection tags = getCurrentClass().getDoc().getTags(
!                 attributes.getProperty("tagName"), superclasses);
!             Set done = new HashSet();
! 
!             matchPattern = null;
! 
!             String tagKey = attributes.getProperty("tagKey");
! 
!             for (Iterator i = tags.iterator(); i.hasNext(); ) {
!                 XTag tag = (XTag) i.next();
! 
!                 if (tagKey != null) {
!                     String key = tag.getAttributeValue(tagKey);
! 
!                     if (!done.add(key)) {
!                         // no change to set, therefore we must have already done
!                         // this tag
!                         continue;
!                     }
                  }
  
!                 setCurrentClassTag(tag);
  
!                 generate(template);
!             }
          }
!         finally {
!             if (classTagStack.size() == 0)
!                 currentTag = null;
!             else
!                 currentTag = (XTag) classTagStack.pop();
          }
          log.debug("popped [" + currentTag + "] off of class tag stack");



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
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.