Skip to content

Commit

Permalink
Added @cdk.bug tag and used this for some classes with long standing …
Browse files Browse the repository at this point in the history
…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
Show file tree
Hide file tree
Showing 8 changed files with 104 additions and 4 deletions.
93 changes: 93 additions & 0 deletions doc/javadoc/source/CDKBugTaglet.java
@@ -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]);
}
}

}
2 changes: 2 additions & 0 deletions javadoc.xml
Expand Up @@ -35,13 +35,15 @@
public="true"
windowtitle="CDK API - version ${version}">
<classpath refid="project.class.path" />
<tag name="cdk.set" scope="all" description="Belongs to the set:" />
<tag name="cdk.keyword" scope="all" description="Keywords:" />
<tag name="cdk.created" scope="all" description="Created on:" />
<tag name="cdk.require" scope="all" description="Requires:" />
<tag name="cdk.depends" scope="all" description="Required library to be able to run this class:" />
<tag name="cdk.builddepends" scope="all" description="Required library to be able to compile this class:" />
<taglet name="CDKModuleTaglet" path="doc/javadoc" />
<taglet name="CDKCiteTaglet" path="doc/javadoc" />
<taglet name="CDKBugTaglet" path="doc/javadoc" />
<packageset dir="${src}" defaultexcludes="yes">
<include name="org/openscience/cdk/**" />
<exclude name="org/openscience/cdk/test/**"/>
Expand Down
8 changes: 4 additions & 4 deletions src/org/openscience/cdk/Reaction.java
Expand Up @@ -28,7 +28,6 @@
*/
package org.openscience.cdk;


/**
* Represents the idea of a chemical reaction. The reaction consists of
* a set of reactants and a set of products.
Expand All @@ -39,9 +38,10 @@
*
* @cdk.module core
*
* @author Egon Willighagen <elw38@cam.ac.uk>
* @cdk.created 2003-02-13
* @cdk.keyword reaction
* @author Egon Willighagen <elw38@cam.ac.uk>
* @cdk.created 2003-02-13
* @cdk.keyword reaction
* @cdk.bug 1095690
*/
public class Reaction extends ChemObject implements java.io.Serializable, Cloneable {

Expand Down
1 change: 1 addition & 0 deletions src/org/openscience/cdk/io/CMLWriter.java
Expand Up @@ -114,6 +114,7 @@
* @cdk.depends pmrlib.jar
* @cdk.depends cmlAll.jar
* @cdk.require java1.4
* @cdk.bug 905062
*
* @see java.io.FileWriter
* @see java.io.StringWriter
Expand Down
1 change: 1 addition & 0 deletions src/org/openscience/cdk/libio/cml/Convertor.java
Expand Up @@ -74,6 +74,7 @@
* @cdk.module extra
* @cdk.keyword CML
* @cdk.keyword class convertor
* @cdk.bug 905062
*
* @cdk.builddepends base.jar
* @cdk.builddepends pmrlib.jar
Expand Down
1 change: 1 addition & 0 deletions src/org/openscience/cdk/renderer/Renderer2D.java
Expand Up @@ -93,6 +93,7 @@
*
* @cdk.created 2002-10-03
* @cdk.keyword viewer, 2D-viewer
* @cdk.bug 834515
*
* @see org.openscience.cdk.renderer.Renderer2DModel
*/
Expand Down
1 change: 1 addition & 0 deletions src/org/openscience/cdk/smiles/SmilesGenerator.java
Expand Up @@ -66,6 +66,7 @@
* @author Stefan Kuhn (chiral smiles)
* @cdk.created 2002-02-26
* @cdk.keyword SMILES, generator
* @cdk.bug 1089770
*/
public class SmilesGenerator {
private static boolean debug = false;
Expand Down
1 change: 1 addition & 0 deletions src/org/openscience/cdk/smiles/SmilesParser.java
Expand Up @@ -67,6 +67,7 @@
* @author Egon Willighagen
* @cdk.created 2002-04-29
* @cdk.keyword SMILES, parser
* @cdk.bug 1095696
*/
public class SmilesParser {

Expand Down

0 comments on commit bcaabdd

Please sign in to comment.