doc update, fixed annoying anonymous messages

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6049 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Dale Anson
2008-04-22 18:53:58 +00:00
parent 77f36ceac0
commit 7df495aaa9
4 changed files with 116 additions and 108 deletions

View File

@ -1,65 +1,67 @@
<project name="PMDPlugin" default="jar" basedir=".">
<property file="build.properties"/>
<property file="build.properties"/>
<property file="../build.properties"/>
<property name="config" value="."/>
<property name="src" value="src/"/>
<property name="lib" value="${basedir}/lib"/>
<property name="build" value="build"/>
<property name="pmdjar" value="pmd-4.1.jar"/>
<property name="pluginversion" value="2.7"/>
<property name="jedit.install.dir" value="../.."/>
<property name="jedit.jars.dir" value="${jedit.install.dir}/jars" />
<property name="install.dir" value="${jedit.jars.dir}"/>
<property name="config" location="."/>
<property name="src" location="src/"/>
<property name="lib" location="${basedir}/lib"/>
<property name="build" location="build"/>
<property name="docs" location="doc"/>
<property name="pmdjar" value="pmd-4.1.jar"/>
<property name="pluginversion" value="2.7"/>
<property name="jedit.install.dir" location="../.."/>
<property name="jedit.jars.dir" location="${jedit.install.dir}/jars" />
<property name="install.dir" location="${jedit.jars.dir}"/>
<path id="project.class.path">
<pathelement location="${jedit.install.dir}/jedit.jar"/>
<pathelement location="${jedit.jars.dir}/ErrorList.jar"/>
<pathelement location="${build}"/>
<fileset casesensitive="false" id="pmd.libs" dir="${lib}">
<include name="${pmdjar}"/>
<include name="asm-3.1.jar"/>
<include name="jaxen-1.1.1.jar"/>
<include name="junit-4.4.jar"/>
<include name="pmd-swingui-0.1.jar"/>
<include name="jakarta-oro-2.0.8.jar"/>
</fileset>
</path>
<path id="project.class.path">
<pathelement location="${jedit.install.dir}/jedit.jar"/>
<pathelement location="${jedit.jars.dir}/ErrorList.jar"/>
<pathelement location="${build}"/>
<fileset casesensitive="false" id="pmd.libs" dir="${lib}">
<include name="${pmdjar}"/>
<include name="asm-3.1.jar"/>
<include name="jaxen-1.1.1.jar"/>
<include name="junit-4.4.jar"/>
<include name="pmd-swingui-0.1.jar"/>
<include name="jakarta-oro-2.0.8.jar"/>
</fileset>
</path>
<target name="delete">
<delete dir="${build}"/>
<delete dir="${build}"/>
<mkdir dir="${build}"/>
</target>
<target name="compile">
<mkdir dir="${build}"/>
<javac
srcdir="${src}"
destdir="${build}"
debug="on"
deprecation="on">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="compile">
<mkdir dir="${build}"/>
<javac
srcdir="${src}"
destdir="${build}"
debug="on"
deprecation="on">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="jar" depends="compile">
<jar jarfile="${jedit.jars.dir}/${ant.project.name}.jar">
<fileset dir="${build}"/>
<fileset dir="${config}">
<include name="*.props"/>
<include name="*.xml"/>
<include name="*.html"/>
</fileset>
</jar>
<jar jarfile="${jedit.jars.dir}/${ant.project.name}.jar">
<fileset dir="${build}"/>
<fileset dir="${config}">
<include name="*.props"/>
<include name="*.xml"/>
<include name="*.html"/>
</fileset>
<fileset dir="." includes="doc/*.*"/>
</jar>
</target>
<target name="dist">
<target name="dist">
<antcall target="jar"/>
<copy todir="${jedit.jars.dir}" verbose="true">
<fileset refid="pmd.libs" />
</copy>
</target>
<copy todir="${jedit.jars.dir}" verbose="true">
<fileset refid="pmd.libs" />
</copy>
</target>
<target name="release">
<antcall target="clean"/>
@ -76,6 +78,6 @@
<delete dir="tmp"/>
</target>
<target name="clean" depends="delete" />
<target name="clean" depends="delete" />
</project>

View File

@ -7,7 +7,7 @@ PMD-JEdit Plug-in Users' Guide
<TABLE CELLSPACING=0 BORDER=0 WIDTH="100%" bgcolor="#CCCCFF">
<TR>
<TD WIDTH="100%" VALIGN="MIDDLE">
<H1>PMD-JEdit Plug-in User's Guide</H1>
<H1>PMD-JEdit Plug-in User's Guide</H1>
</TD>
</TR>
</TABLE>
@ -46,62 +46,68 @@ Take a look at the <a href="#releasenotes">Release Notes and Changelog</a> for m
<a name="releasenotes"></a>
<h2>Release Notes &amp; Changelog</h2>
<h3>2.7 (2007-11-20) </h3>
<ol>
<li>Updated to PMD 4.1</li>
<li>New option: choose version of Java (1.4, 1.5, 1.6) </li>
<li>Fixed Bug [1501422] PMD Plugin: example box is not updated when new items hover filed in jEdit Plugins Bug tracker.</li>
<li>Changed the way Rules are managed and given for execution to PMD due to addition of new languages to PMD and was giving error due to language mismatch.</li>
<li>Added new option "Print Rulename in ErrorList" which is helpful to trace down what rule is generating this error.</li>
</ol>
<h3>2.6</h3>
<ol>
<li>Updated to PMD 3.4</li>
<li>Updated to jEdit 4.3pre3</li>
<li>Added &quot;Ignore Literals &amp; identifiers&quot; option for CPD. </li>
</ol>
<h3>2.5</h3>
<ol>
<li>Updated to PMD 1.9</li>
<li>Removed Recursive Directory options and integrated them into FileChooser itself.</li>
<li>Complete redesign of the way PMD Rules and Copy/Paste Detector are used.</li>
<li>Fixed improper highlighting of Rule Violations. Because of this bug, any open file in jEdit was showing errors of other files too.</li>
<li>Lots of code cleanup and optimizations.</li>
</ol>
<h3>2.9 (2008-04-04) </h3>
<ol>
<li>Fixed a bug in 'check all files in a directory' where the plugin always defaulted to Java 1.4 rather than the Java version selected in the option pane.</li>
<li>Revised the option pane to use a checkbox tree rather than a list of checkboxes. The list was long (just under 200 rules), and didn't have any grouping by ruleset. The checkbox tree groups the rules by ruleset, and clicking the checkbox on the ruleset checks all rules contained by that ruleset. This is way easier than looking through the long list to pick out the rules.</li>
<li>Revised the option pane so the layout is more compact and fits on the screen better.</li>
</ol>
<h3>2.7 (2007-11-20) </h3>
<ol>
<li>Updated to PMD 4.1</li>
<li>New option: choose version of Java (1.4, 1.5, 1.6) </li>
<li>Fixed Bug [1501422] PMD Plugin: example box is not updated when new items hover filed in jEdit Plugins Bug tracker.</li>
<li>Changed the way Rules are managed and given for execution to PMD due to addition of new languages to PMD and was giving error due to language mismatch.</li>
<li>Added new option "Print Rulename in ErrorList" which is helpful to trace down what rule is generating this error.</li>
</ol>
<h3>2.6</h3>
<ol>
<li>Updated to PMD 3.4</li>
<li>Updated to jEdit 4.3pre3</li>
<li>Added &quot;Ignore Literals &amp; identifiers&quot; option for CPD. </li>
</ol>
<h3>2.5</h3>
<ol>
<li>Updated to PMD 1.9</li>
<li>Removed Recursive Directory options and integrated them into FileChooser itself.</li>
<li>Complete redesign of the way PMD Rules and Copy/Paste Detector are used.</li>
<li>Fixed improper highlighting of Rule Violations. Because of this bug, any open file in jEdit was showing errors of other files too.</li>
<li>Lots of code cleanup and optimizations.</li>
</ol>
<h3>2.4</h3>
<ol>
<li>Optimized usage of ErrorSource for faster Error Highlighting.</li>
<li>Updated to PMD 1.6</li>
<li>Fixed Run on save running when the buffer is non Java also.</li>
<li>Added option to export PMD results to a file in various formats such as HTML, XML, Text, CSV etc.</li>
<li>Added a new feature to show Progressbar when working on Large file sets.</li>
<li>Made Progress bar color user-configurable.</li>
<li>Improvement in Copy/Paste Detector.</li>
<h3>2.4</h3>
<ol>
<li>Optimized usage of ErrorSource for faster Error Highlighting.</li>
<li>Updated to PMD 1.6</li>
<li>Fixed Run on save running when the buffer is non Java also.</li>
<li>Added option to export PMD results to a file in various formats such as HTML, XML, Text, CSV etc.</li>
<li>Added a new feature to show Progressbar when working on Large file sets.</li>
<li>Made Progress bar color user-configurable.</li>
<li>Improvement in Copy/Paste Detector.</li>
</ol>
<h3>2.3</h3>
<ol>
<li>Updated to PMD 1.3</li>
</ol>
<h3>2.2</h3>
<ol>
<li>Updated to PMD 1.2.1</li>
<li>Updated to jEdit 4.2 API changes</li>
<li>Added PMD in jEdit's File System Browser Plugins Menu.</li>
</ol>
<h3>2.1</h3>
<ol>
<li>Added "clear ErrorList" option.</li>
<li>Added "check all open buffers" option.</li>
<li>Added support to define Custom RuleSets thereby facilitating integration of Custom Rulesets with built-in rulesets & their independent development.</li>
<li>Added C/C++, PHP support to Copy/Paste Detector. Now you can find out duplicate code in your C/C++ & PHP code besides the usual Java code.</li>
</ol>
<h3>2.0</h3>
<ol>
<li>Integrated Copy/Paste Detector(CPD) in jEdit.</li>
<li>Updated to use pmd-1.05</li>
</ol>
</ol>
<h3>2.3</h3>
<ol>
<li>Updated to PMD 1.3</li>
</ol>
<h3>2.2</h3>
<ol>
<li>Updated to PMD 1.2.1</li>
<li>Updated to jEdit 4.2 API changes</li>
<li>Added PMD in jEdit's File System Browser Plugins Menu.</li>
</ol>
<h3>2.1</h3>
<ol>
<li>Added "clear ErrorList" option.</li>
<li>Added "check all open buffers" option.</li>
<li>Added support to define Custom RuleSets thereby facilitating integration of Custom Rulesets with built-in rulesets & their independent development.</li>
<li>Added C/C++, PHP support to Copy/Paste Detector. Now you can find out duplicate code in your C/C++ & PHP code besides the usual Java code.</li>
</ol>
<h3>2.0</h3>
<ol>
<li>Integrated Copy/Paste Detector(CPD) in jEdit.</li>
<li>Updated to use pmd-1.05</li>
</ol>
<h3>License</h3>
<p>The PMD-JEdit plugin is free software released under the Apache license.</p>

View File

@ -4,7 +4,7 @@
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.name=PMDPlugin
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.author=Jiger Patel, Tom Copeland, Alan Ezust, Dale Anson
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.version=2.9
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.docs=jedit.html
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.docs=doc/jedit.html
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.depend.0=jdk 1.5
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.depend.1=jedit 04.03.03.00
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.depend.2=plugin errorlist.ErrorListPlugin 1.3.2

View File

@ -299,9 +299,9 @@ public class PMDJEditPlugin extends EBPlugin
catch (PMDException pmde)
{
String msg="Error while processing " + buffer.getPath();
String msg="Error while processing " + buffer.getPath() + ":\n" + pmde.getMessage();
Log.log(Log.ERROR, this, msg, pmde);
JOptionPane.showMessageDialog(jEdit.getFirstView(), msg);
JOptionPane.showMessageDialog(view, msg, "PMD", JOptionPane.ERROR_MESSAGE);
}
catch(Exception e)
@ -393,9 +393,9 @@ public class PMDJEditPlugin extends EBPlugin
}
catch (PMDException pmde)
{
String msg = "Error while processing " + file.getAbsolutePath();
String msg = "Error while processing " + file.getAbsolutePath() + ":\n" + pmde.getMessage();
Log.log(Log.ERROR, this, msg, pmde);
JOptionPane.showMessageDialog(jEdit.getFirstView(), msg);
JOptionPane.showMessageDialog(view, msg, "PMD", JOptionPane.ERROR_MESSAGE);
}
if(jEdit.getBooleanProperty(SHOW_PROGRESS))