Author: david.lloyd(a)jboss.com
Date: 2009-08-31 17:43:58 -0400 (Mon, 31 Aug 2009)
New Revision: 5410
Modified:
remoting3/trunk/taglet/src/main/java/org/jboss/remoting3/taglet/RemotingTypeTaglet.java
Log:
Fix the taglet to use the newer taglet API
Modified:
remoting3/trunk/taglet/src/main/java/org/jboss/remoting3/taglet/RemotingTypeTaglet.java
===================================================================
---
remoting3/trunk/taglet/src/main/java/org/jboss/remoting3/taglet/RemotingTypeTaglet.java 2009-08-31
15:26:22 UTC (rev 5409)
+++
remoting3/trunk/taglet/src/main/java/org/jboss/remoting3/taglet/RemotingTypeTaglet.java 2009-08-31
21:43:58 UTC (rev 5410)
@@ -24,8 +24,11 @@
import java.util.Map;
+import com.sun.tools.doclets.internal.toolkit.taglets.Taglet;
+import com.sun.tools.doclets.internal.toolkit.taglets.TagletOutput;
+import com.sun.tools.doclets.internal.toolkit.taglets.TagletWriter;
import com.sun.javadoc.Tag;
-import com.sun.tools.doclets.Taglet;
+import com.sun.javadoc.Doc;
public abstract class RemotingTypeTaglet implements Taglet {
@@ -57,6 +60,20 @@
return false;
}
+ public TagletOutput getTagletOutput(final Tag tag, final TagletWriter tagletWriter)
throws IllegalArgumentException {
+ final TagletOutput output = tagletWriter.getOutputInstance();
+ output.setOutput(toString(tag.firstSentenceTags()));
+ return output;
+ }
+
+ public TagletOutput getTagletOutput(final Doc doc, final TagletWriter tagletWriter)
throws IllegalArgumentException {
+ final TagletOutput output = tagletWriter.getOutputInstance();
+ output.setOutput(toString(doc.tags(getName())));
+ return output;
+ }
+
+ public abstract String toString(final Tag tag);
+
public String toString(final Tag[] tags) {
return tags.length > 0 ? toString(tags[0]) : "";
}
Show replies by date