From 7df495aaa9adc75da285ecae5c6d41b0cb6cb1cd Mon Sep 17 00:00:00 2001 From: Dale Anson Date: Tue, 22 Apr 2008 18:53:58 +0000 Subject: [PATCH] doc update, fixed annoying anonymous messages git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6049 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd-jedit/PMDPlugin/build.xml | 98 +++++++-------- pmd-jedit/PMDPlugin/jedit.html | 116 +++++++++--------- pmd-jedit/PMDPlugin/pmd.props | 2 +- .../sourceforge/pmd/jedit/PMDJEditPlugin.java | 8 +- 4 files changed, 116 insertions(+), 108 deletions(-) diff --git a/pmd-jedit/PMDPlugin/build.xml b/pmd-jedit/PMDPlugin/build.xml index c84db00cb5..b60c696df6 100644 --- a/pmd-jedit/PMDPlugin/build.xml +++ b/pmd-jedit/PMDPlugin/build.xml @@ -1,65 +1,67 @@ - + - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - + - - - - - - + + + + + + - - - - - - - - + + + + + + + + + - + - - - - + + + + @@ -76,6 +78,6 @@ - + diff --git a/pmd-jedit/PMDPlugin/jedit.html b/pmd-jedit/PMDPlugin/jedit.html index 784d78005b..df0178112a 100644 --- a/pmd-jedit/PMDPlugin/jedit.html +++ b/pmd-jedit/PMDPlugin/jedit.html @@ -7,7 +7,7 @@ PMD-JEdit Plug-in Users' Guide
-

PMD-JEdit Plug-in User's Guide

+

PMD-JEdit Plug-in User's Guide

@@ -46,62 +46,68 @@ Take a look at the Release Notes and Changelog for m

Release Notes & Changelog

-

2.7 (2007-11-20)

-
    -
  1. Updated to PMD 4.1
  2. -
  3. New option: choose version of Java (1.4, 1.5, 1.6)
  4. -
  5. Fixed Bug [1501422] PMD Plugin: example box is not updated when new items hover filed in jEdit Plugins Bug tracker.
  6. -
  7. 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.
  8. -
  9. Added new option "Print Rulename in ErrorList" which is helpful to trace down what rule is generating this error.
  10. -
-

2.6

-
    -
  1. Updated to PMD 3.4
  2. -
  3. Updated to jEdit 4.3pre3
  4. -
  5. Added "Ignore Literals & identifiers" option for CPD.
  6. -
-

2.5

-
    -
  1. Updated to PMD 1.9
  2. -
  3. Removed Recursive Directory options and integrated them into FileChooser itself.
  4. -
  5. Complete redesign of the way PMD Rules and Copy/Paste Detector are used.
  6. -
  7. Fixed improper highlighting of Rule Violations. Because of this bug, any open file in jEdit was showing errors of other files too.
  8. -
  9. Lots of code cleanup and optimizations.
  10. -
+

2.9 (2008-04-04)

+
    +
  1. 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.
  2. +
  3. 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.
  4. +
  5. Revised the option pane so the layout is more compact and fits on the screen better.
  6. +
+

2.7 (2007-11-20)

+
    +
  1. Updated to PMD 4.1
  2. +
  3. New option: choose version of Java (1.4, 1.5, 1.6)
  4. +
  5. Fixed Bug [1501422] PMD Plugin: example box is not updated when new items hover filed in jEdit Plugins Bug tracker.
  6. +
  7. 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.
  8. +
  9. Added new option "Print Rulename in ErrorList" which is helpful to trace down what rule is generating this error.
  10. +
+

2.6

+
    +
  1. Updated to PMD 3.4
  2. +
  3. Updated to jEdit 4.3pre3
  4. +
  5. Added "Ignore Literals & identifiers" option for CPD.
  6. +
+

2.5

+
    +
  1. Updated to PMD 1.9
  2. +
  3. Removed Recursive Directory options and integrated them into FileChooser itself.
  4. +
  5. Complete redesign of the way PMD Rules and Copy/Paste Detector are used.
  6. +
  7. Fixed improper highlighting of Rule Violations. Because of this bug, any open file in jEdit was showing errors of other files too.
  8. +
  9. Lots of code cleanup and optimizations.
  10. +
-

2.4

-
    -
  1. Optimized usage of ErrorSource for faster Error Highlighting.
  2. -
  3. Updated to PMD 1.6
  4. -
  5. Fixed Run on save running when the buffer is non Java also.
  6. -
  7. Added option to export PMD results to a file in various formats such as HTML, XML, Text, CSV etc.
  8. -
  9. Added a new feature to show Progressbar when working on Large file sets.
  10. -
  11. Made Progress bar color user-configurable.
  12. -
  13. Improvement in Copy/Paste Detector.
  14. +

    2.4

    +
      +
    1. Optimized usage of ErrorSource for faster Error Highlighting.
    2. +
    3. Updated to PMD 1.6
    4. +
    5. Fixed Run on save running when the buffer is non Java also.
    6. +
    7. Added option to export PMD results to a file in various formats such as HTML, XML, Text, CSV etc.
    8. +
    9. Added a new feature to show Progressbar when working on Large file sets.
    10. +
    11. Made Progress bar color user-configurable.
    12. +
    13. Improvement in Copy/Paste Detector.
    14. -
    -

    2.3

    -
      -
    1. Updated to PMD 1.3
    2. -
    -

    2.2

    -
      -
    1. Updated to PMD 1.2.1
    2. -
    3. Updated to jEdit 4.2 API changes
    4. -
    5. Added PMD in jEdit's File System Browser Plugins Menu.
    6. -
    -

    2.1

    -
      -
    1. Added "clear ErrorList" option.
    2. -
    3. Added "check all open buffers" option.
    4. -
    5. Added support to define Custom RuleSets thereby facilitating integration of Custom Rulesets with built-in rulesets & their independent development.
    6. -
    7. 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.
    8. -
    -

    2.0

    -
      -
    1. Integrated Copy/Paste Detector(CPD) in jEdit.
    2. -
    3. Updated to use pmd-1.05
    4. -
    +
+

2.3

+
    +
  1. Updated to PMD 1.3
  2. +
+

2.2

+
    +
  1. Updated to PMD 1.2.1
  2. +
  3. Updated to jEdit 4.2 API changes
  4. +
  5. Added PMD in jEdit's File System Browser Plugins Menu.
  6. +
+

2.1

+
    +
  1. Added "clear ErrorList" option.
  2. +
  3. Added "check all open buffers" option.
  4. +
  5. Added support to define Custom RuleSets thereby facilitating integration of Custom Rulesets with built-in rulesets & their independent development.
  6. +
  7. 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.
  8. +
+

2.0

+
    +
  1. Integrated Copy/Paste Detector(CPD) in jEdit.
  2. +
  3. Updated to use pmd-1.05
  4. +

License

The PMD-JEdit plugin is free software released under the Apache license.

diff --git a/pmd-jedit/PMDPlugin/pmd.props b/pmd-jedit/PMDPlugin/pmd.props index 6103047d55..c179d561bb 100644 --- a/pmd-jedit/PMDPlugin/pmd.props +++ b/pmd-jedit/PMDPlugin/pmd.props @@ -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 diff --git a/pmd-jedit/PMDPlugin/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java b/pmd-jedit/PMDPlugin/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java index 65fb9297ab..43b6e300f7 100644 --- a/pmd-jedit/PMDPlugin/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java +++ b/pmd-jedit/PMDPlugin/src/net/sourceforge/pmd/jedit/PMDJEditPlugin.java @@ -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))