Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added @cdk.bug tag and used this for some classes with long standing …
…bugs git-svn-id: https://cdk.svn.sourceforge.net/svnroot/cdk/trunk/cdk@3559 eb4e18e3-b210-0410-a6ab-dec725e4b171
- Loading branch information
egonw
committed
Jan 4, 2005
1 parent
f6b460e
commit bcaabdd
Showing
8 changed files
with
104 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* $RCSfile$ | ||
* $Author$ | ||
* $Date$ | ||
* $Revision$ | ||
* | ||
* Copyright (C) 2004 The Chemistry Development Kit (CDK) project | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public License | ||
* as published by the Free Software Foundation; either version 2.1 | ||
* of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
* | ||
*/ | ||
import com.sun.tools.doclets.Taglet; | ||
import com.sun.javadoc.*; | ||
import java.util.Map; | ||
|
||
/** | ||
* Taglet that expands @cdk.bug tag into a weblink to CDK's | ||
* SourceForge bug track system. It's typically used as: | ||
* <pre> | ||
* @cdk.bug 1095690 | ||
* </pre> | ||
*/ | ||
public class CDKBugTaglet implements Taglet { | ||
|
||
private static final String NAME = "cdk.bug"; | ||
|
||
public String getName() { | ||
return NAME; | ||
} | ||
|
||
public boolean inField() { | ||
return false; | ||
} | ||
|
||
public boolean inConstructor() { | ||
return false; | ||
} | ||
|
||
public boolean inMethod() { | ||
return false; | ||
} | ||
|
||
public boolean inOverview() { | ||
return false; | ||
} | ||
|
||
public boolean inPackage() { | ||
return false; | ||
} | ||
|
||
public boolean inType() { | ||
return true; | ||
} | ||
|
||
public boolean isInlineTag() { | ||
return false; | ||
} | ||
|
||
public static void register(Map tagletMap) { | ||
CDKBugTaglet tag = new CDKBugTaglet(); | ||
Taglet t = (Taglet) tagletMap.get(tag.getName()); | ||
if (t != null) { | ||
tagletMap.remove(tag.getName()); | ||
} | ||
tagletMap.put(tag.getName(), tag); | ||
} | ||
|
||
public String toString(Tag tag) { | ||
return "<DT><B>This class is affected by these bug(s): </B><DD>" | ||
+ "<a href=\"http://sourceforge.net/tracker/index.php?func=detail&group_id=20024&atid=120024&aid=" | ||
+ tag.text() + "\">" + tag.text() + "</a></DD>\n"; | ||
} | ||
|
||
public String toString(Tag[] tags) { | ||
if (tags.length == 0) { | ||
return null; | ||
} else { | ||
return toString(tags[0]); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters