forked from phoedos/pmd
Add new VBHTML report
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4333 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -9,6 +9,9 @@ import org.eclipse.core.runtime.QualifiedName;
|
||||
* @version $Revision$
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.8 2006/04/11 21:00:58 phherlin
|
||||
* Add new VBHTML report
|
||||
*
|
||||
* Revision 1.7 2005/10/24 22:36:42 phherlin
|
||||
* Integrating Sebastian Raffel's work
|
||||
*
|
||||
@ -148,6 +151,7 @@ public interface PMDPluginConstants {
|
||||
|
||||
public static final String REPORT_FOLDER = "reports";
|
||||
public static final String HTML_REPORT_NAME = "pmd-report.html";
|
||||
public static final String VBHTML_REPORT_NAME = "pmd-report.vb.html";
|
||||
public static final String CSV_REPORT_NAME = "pmd-report.csv";
|
||||
public static final String XML_REPORT_NAME = "pmd-report.xml";
|
||||
public static final String TXT_REPORT_NAME = "pmd-report.txt";
|
||||
|
@ -8,6 +8,7 @@ import net.sourceforge.pmd.eclipse.cmd.RenderReportCmd;
|
||||
import net.sourceforge.pmd.renderers.CSVRenderer;
|
||||
import net.sourceforge.pmd.renderers.HTMLRenderer;
|
||||
import net.sourceforge.pmd.renderers.TextRenderer;
|
||||
import net.sourceforge.pmd.renderers.VBHTMLRenderer;
|
||||
import net.sourceforge.pmd.renderers.XMLRenderer;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
@ -29,6 +30,9 @@ import org.eclipse.ui.IWorkbenchPart;
|
||||
* @version $Revision$
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.3 2006/04/11 21:01:17 phherlin
|
||||
* Add new VBHTML report
|
||||
*
|
||||
* Revision 1.2 2005/10/24 22:39:35 phherlin
|
||||
* Refactor command processing
|
||||
*
|
||||
@ -85,6 +89,13 @@ public class GenerateReportAction implements IObjectActionDelegate {
|
||||
cmd4.setReportName(PMDPluginConstants.TXT_REPORT_NAME);
|
||||
cmd1.setUserInitiated(true);
|
||||
cmd4.performExecute();
|
||||
|
||||
RenderReportCmd cmd5 = new RenderReportCmd();
|
||||
cmd5.setProject(project);
|
||||
cmd5.setRenderer(new VBHTMLRenderer());
|
||||
cmd5.setReportName(PMDPluginConstants.VBHTML_REPORT_NAME);
|
||||
cmd5.setUserInitiated(true);
|
||||
cmd5.performExecute();
|
||||
}
|
||||
} catch (CommandException e) {
|
||||
PMDPlugin.getDefault().showError(
|
||||
|
Reference in New Issue
Block a user