24 Commits

Author SHA1 Message Date
a42391b252 Satisfied a feature request: http://sourceforge.net/tracker/?func=detail&aid=3292643&group_id=56262&atid=479924
When in a code editor hit the default binding key, F7, to trigger the code review.

Condensed the number of rule panels in the rule selection page, added hyperlink for the external info url to
the summary page. Disabled the PMD/CPD options for now in the File Filters page.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7601 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-21 08:00:52 +00:00
b52a5a0b2c optimizations, export improvements, bugfixes for new functionality
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7583 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-17 18:53:24 +00:00
40c10079bc Bugfixes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7582 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-16 15:40:58 +00:00
25fc4e95f1 Initial support for inclusion/exclusion file filters brought in during ruleset imports. Not tied into PMD itself at the moment though. Includes new preference page.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7571 51baf565-9d33-0410-a72c-fc3788e3496d
2011-12-11 21:06:25 +00:00
b0324e9a4c AST view:
new Expand All button for tree
  new Filter menu can hide/show imports or comments in the AST tree


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7230 51baf565-9d33-0410-a72c-fc3788e3496d
2011-08-30 09:55:57 +00:00
a65d0b1697 updated test & text properties
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7190 51baf565-9d33-0410-a72c-fc3788e3496d
2011-03-07 06:33:47 +00:00
e8dd8cacce +new option to control full builds per project (checkbox in project preference page).
Thanks to Joe Freeman for the contribution.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7168 51baf565-9d33-0410-a72c-fc3788e3496d
2010-11-05 07:00:35 +00:00
2d0720b749 cleaned up CRs
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7157 51baf565-9d33-0410-a72c-fc3788e3496d
2010-10-05 04:07:48 +00:00
b1847bbfc8 Syntax colouring in summary examples, externalized strings, minor optimizations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7144 51baf565-9d33-0410-a72c-fc3788e3496d
2010-09-28 14:35:09 +00:00
de83352988 updated
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7143 51baf565-9d33-0410-a72c-fc3788e3496d
2010-09-25 12:40:26 +00:00
5e6bc27747 Numerous bugfixes, improved XPath rule creation validation
Specified default 'user-specified' priority names
Renamed remaining MSGKEY-prefixed String keys
New reset-to-default-values in rule properties menu (single item for now)
New PMD Name column in marker prefs table & new column tooltips for same
Commented-out original PMD preferences view from main preference tree
Repositioned Language min/max & priority fields
Updated to latest PMD core

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7137 51baf565-9d33-0410-a72c-fc3788e3496d
2010-09-15 08:43:46 +00:00
dcb32eb683 misc
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7119 51baf565-9d33-0410-a72c-fc3788e3496d
2010-09-02 02:16:55 +00:00
9f3712c728 refactoring, removing redundant MSGKEY_ prefixes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7117 51baf565-9d33-0410-a72c-fc3788e3496d
2010-09-01 04:57:16 +00:00
289d1dce9d Lots of nice updates:
* Colour syntax highlighting for all relevant editors & example viewers.
* User-selectable marker shapes and colours, violation decorators in the navigator tree
* New AST view and related XPath test editor
* Rule search (page form only, non-functional)

Disabled Quickfix views until its ready
Zapped several nevarious bugs in previous functionality

Note: for the time being, violation errors will not appear in the Problems
      page. There is a conflict between having unique markers and 'standard'
      error markers that denote inclusion in the error page. Will check out
      the use of annotations to deal with this...

For evaluation:
   The size and scope of the rule editor is (I believe) outgrowing its
   placement within its preference page and it needs to be parked within
   it own view. Besides, tracking all the edits being made to the rules
   goes beyond what the pref pages can handle (i.e. apply/cancel...
   which never worked properly for the rules in any case)

   To that end, I've copied the rule table into its own view for now and
   left the one in the preference page as is so we can compare & contrast.
   Only one will remain by the time the best approach is chosen.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7115 51baf565-9d33-0410-a72c-fc3788e3496d
2010-08-31 05:31:48 +00:00
3e52bf6b27 +properties column now highlights non-default values (still a bit buggy)
+internals: new visitor pattern for manipulating all selections
+able to disable rules from the violation list
+grouped rules show all unique priority values
+revised filter column icons
+revised plugin.xml to export code for other plugins
+new opening Rule panel for Rule creation wizard

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7109 51baf565-9d33-0410-a72c-fc3788e3496d
2010-07-26 05:23:43 +00:00
b767617542 Preferences
* Rule activation checkboxes now operational - only the checked rules are used to evaluate code. No longer need to physically remove rules from the ruleset to bypass them. Settings are stored in preferences and the number of active rules is shown in the dialog when PMD runs a scan. Minor UI bug in group-by mode doesn't render parent node checks initially.
* New SelectAll/None buttons and a SortByChecked items button. Replaced several text buttons with icon versions
* Selected rules & property tabs retained by UI preferences between sessions
	
Fixes
* New column in rule table showing number of available fixes per rule (just two for now). The new 'Fixes' tab in the properties folders needs additional work to complete it. The Fix menu option in the violations context menu works now for the two rules that have them. Need to provide better storage for rule-fix associations - current approach only stores fix classnames - should support classname + static instance var.

CPD
* Added launch button for the Swing version of the CPD UI to the preference page. Need to migrate its better functionality to the SWT version.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7092 51baf565-9d33-0410-a72c-fc3788e3496d
2010-03-26 00:16:57 +00:00
c114e27594 property editor improvements, i18l updates
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7059 51baf565-9d33-0410-a72c-fc3788e3496d
2010-01-07 05:16:57 +00:00
449d70262f Added new XPath filter column that renders coloured circle values.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7056 51baf565-9d33-0410-a72c-fc3788e3496d
2010-01-04 07:59:57 +00:00
2cafbf9243 I18L updates, UI tweaks, additional displayable rule columns available via popup menu
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7052 51baf565-9d33-0410-a72c-fc3788e3496d
2010-01-03 18:07:05 +00:00
eb50e46f89 I18L updates, better explanatory tooltips for rule aspect column headings, initial MultiEnumerationEditor (read-only for now), bugfixes for spinner widget updates
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7051 51baf565-9d33-0410-a72c-fc3788e3496d
2010-01-03 04:32:29 +00:00
139871ffb5 merge of the violationsAsErrors config option from the 4.2.x branch
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6902 51baf565-9d33-0410-a72c-fc3788e3496d
2009-03-28 20:31:36 +00:00
5a5ccf0a03 Open things up to support files other than .java files. This includes:
1) Allow the PMD context menu on any File type, not just *.java.
2) Modify some places which check for a .java extension to _not_ do so.
3) Modify some places to check with the PMDEngine whether a File "applies" (e.g. is it for a Language which is understood by PMD and are there any Rules in the RuleSet for that Language).

Expand the Rule table to have a Language column in the 1st column.  The table setup in this plugin/SWT still *sucks* as bad I remember it being the last time I added columns.

With these changes I can get both JS and XML Rules to work.  Violations show up, and for JS, I can be brought to the proper line number in the code!

Also fixed and issue with this plugin looking for a "maxViolations" property on the Rules, which given PMD 5.0 changes to require a propery to exist to ask for a value... needed some tweaking to first check for the value on the Rule.  More verbose, but a safer API than the Wild West style of pre-5.0.

The Rule Editor needs some work to account for the new structure of Rules in PMD 5.0.  Currently any Rule it creates causes things to blow up due to missing Language.  Easy enough to fix, but it's just the 1st of several things needing to be corrected.




git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6742 51baf565-9d33-0410-a72c-fc3788e3496d
2008-12-05 07:55:16 +00:00
4a60b812ec all rule examples displayed in Rule Configuration panel
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6517 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-26 19:47:12 +00:00
c54f51b530 eclipse plugin reorganization
first of several commits to make sure the plugin can be generated in headless
mode from ant


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6502 51baf565-9d33-0410-a72c-fc3788e3496d
2008-09-25 23:18:33 +00:00