221 Commits

Author SHA1 Message Date
Brian Remedios
1884a2621e + support for multi-method properties and various bugfixes.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6796 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-18 22:42:51 +00:00
Brian Remedios
177fa473dc Added edit support for Method property types, new selection widgets for types & methods.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6793 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-18 07:51:35 +00:00
Brian Remedios
6c6fbab9be Updated multi-value editors for String, Type, and Integer, no popup dialogs req'd :) Bugfixes for enumerated type, spinner widgets for floats & doubles. No support yet for editing method values, awaiting development of a class picker widget.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6792 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-18 03:31:21 +00:00
Brian Remedios
452e38a0d7 New Preference panel updates: revised rule columns, new compact colour-coded regex filter column. Reworked property tab resizing. Refactored editors into separate package.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6791 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-12 04:14:32 +00:00
Brian Remedios
aa07a15ae4 Bugfixes for new UI preferences panel: Fixed selection bug that resulted in a blank property field window, fixed text field lengths, all now span full width. Added sash/splitter bar between rule table and property tabs. Users can now edit xpath/exclusion property values for multiple rules at once.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6790 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-11 22:48:16 +00:00
Brian Remedios
3e28599cf1 Last missing class (I hope)
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6782 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-11 00:27:10 +00:00
Brian Remedios
c5beff7ad9 missing class, under development
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6781 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-11 00:16:13 +00:00
Brian Remedios
20ddc87817 Added new option to the rule context/popup menu that allows users to move rules between rulesets. I don't believe the underlying PMD system supports this at the moment though I believe we can do this - see my suggestion at https://sourceforge.net/forum/forum.php?thread_id=2824589&forum_id=188194
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6780 51baf565-9d33-0410-a72c-fc3788e3496d
2009-01-10 23:39:56 +00:00
Ryan Gustafson
6ee649a718 Update to current PMD 5.0, fixes issued with RuleSetFactory.getRegisteredRuleSets() due to missing ecmascript ruleset.properties.
Update PreferenceManagerImpl for RuleSetFactory changes.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6765 51baf565-9d33-0410-a72c-fc3788e3496d
2008-12-31 08:01:24 +00:00
Xavier Le Vourch
9ebf4a0f52 update PMD jar file to revision 6760
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6762 51baf565-9d33-0410-a72c-fc3788e3496d
2008-12-29 20:10:52 +00:00
Brian Remedios
2bb06bb210 Bugfix for property updates while in grouped rule mode, enabled multi-select in rule list - users can modify priority levels via new popup menu, bugfix for multi-value renderers, new RuleSelection class. I'm still waiting for usability/feature feedback comments!
Need to implement: scrolling panel for property values, a splitter bar between rules & property tabs below, proper editors for enum types and multi-values, especially classes & interfaces. Still need to deal with statistical value rules - they throw exceptions at the moment, those guys have no defaults for now (not necessary?)

*** Please to not update the old PMDPreferencesPage, apply any necessary changes to the class of the same name in the temporary .br package. The old one remains as is where it is for comparison with the new one that shows up in the Eclipse preference panel right below the PMD entry ("Ruleset preferences - br"). 

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6761 51baf565-9d33-0410-a72c-fc3788e3496d
2008-12-29 19:26:21 +00:00
Ryan Gustafson
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
Ryan Gustafson
72a6746f25 Update PMD version to current trunk. Add JARs for Saxon and Rhino.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6741 51baf565-9d33-0410-a72c-fc3788e3496d
2008-12-05 07:43:25 +00:00
Xavier Le Vourch
66fd22b0cf code cleanup (eclipse warnings): unused imports, useless casts, ...
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6696 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-14 16:49:30 +00:00
Xavier Le Vourch
61e992368b extra exported packages: rulesets and net.sourceforge.pmd.eclipse.plugin
patch submitted by Peter Hayes


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6695 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-14 03:21:34 +00:00
Xavier Le Vourch
7249d54add bug fix: Reordered the ProjectPropertiesManagerImpl.fillProjectProperties method so that setRuleSetFile() comes before setRuleSetStoredInProject() (This fixes an issue when the project ruleset file is not the default name)
patch submitted by Peter Hayes


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6694 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-14 03:05:21 +00:00
Xavier Le Vourch
38bbc268aa update pmd-5.0.jar to snapshot 6690, all compilation errors should be fixed now
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6691 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-04 17:41:08 +00:00
Brian Remedios
6ba0b1806b cleanup, commented-out final compilation issues. Still need to actually clean out the old property mgmt code once the new checked & finished.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6690 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-04 04:40:57 +00:00
Brian Remedios
88b0bffb90 generics cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6689 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-04 04:24:41 +00:00
Brian Remedios
fb6410394c import cleanup
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6688 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-04 04:12:18 +00:00
Brian Remedios
ec7c146f83 refactored editor factories, zapped redundancies
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6687 51baf565-9d33-0410-a72c-fc3788e3496d
2008-11-04 04:09:25 +00:00
Brian Remedios
f1ff5dcbf2 rm file utility method migrated to pmd proper
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6684 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-26 23:51:39 +00:00
Xavier Le Vourch
2e62d043ca NumericConstants.floatZERO was renamed FLOAT_ZERO in PMD
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6682 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-26 19:49:09 +00:00
Brian Remedios
60314b66c4 Revised plugin to allow viewing of revised property preferences page. New page sits outside of the PMD parent node for now until we remove the old one.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6680 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 23:00:26 +00:00
Brian Remedios
72877f4679 refactored to handle move of Util class to new package
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6679 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:58:00 +00:00
Brian Remedios
90da682ebf optimizations, adaptations for new property mgmt framework. Some classes may still be removed.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6678 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:56:04 +00:00
Brian Remedios
7fa24a8af0 Code cleanup, deprecations, some adaptations for new properties. Some classes that currently have errors will soon be removed.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6677 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:49:37 +00:00
Brian Remedios
3a29f39522 minor optimizations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6676 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:45:36 +00:00
Brian Remedios
2c907a02fe typos & minor optimizations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6675 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:43:36 +00:00
Brian Remedios
12c5faef85 typos & minor optimizations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6674 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:41:39 +00:00
Brian Remedios
a91dad5f37 typos & minor optimizations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6673 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:37:59 +00:00
Brian Remedios
eb534f3c7b typos & minor optimizations
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6672 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:36:33 +00:00
Brian Remedios
813245b813 typos & refactoring
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6671 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-25 22:32:02 +00:00
Xavier Le Vourch
bf1113eb8f update PMD 5.0 snapshot to build 6645
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6647 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-20 16:23:59 +00:00
Xavier Le Vourch
38e1e54085 update PMD 5.0 snapshot to build 6645
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6646 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-20 16:21:50 +00:00
Brian Remedios
562a7ec74a Updated paths to Java rules, cleaned up formatting.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6640 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-19 18:34:49 +00:00
Brian Remedios
f3c952be2e Initial upgrade to new property mgmt scheme, much more to follow.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6616 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-15 06:12:08 +00:00
Xavier Le Vourch
546b4a9e88 new script to update the version consistently. It is of the form <version>.v<YYYYMMDDHHMM>
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6612 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-14 17:42:06 +00:00
Xavier Le Vourch
ba8cc4f270 PMD 5.0 conversion of eclipse plugin: temporary conversion of PMD calls
The only remaining errors are related to the property descriptors


git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6609 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-14 07:08:39 +00:00
Xavier Le Vourch
e4f4eea21d code cleanup: generics warnings since code is now compiled with java 1.5
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6607 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-14 03:10:51 +00:00
Xavier Le Vourch
4cd2019c00 code cleanup: generics warnings since code is now compiled with java 1.5
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6606 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-14 02:55:34 +00:00
Xavier Le Vourch
35088adb03 start of PMD 5.0 conversion of eclipse plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6605 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-14 00:15:28 +00:00
Xavier Le Vourch
7029489932 start of PMD 5.0 conversion of eclipse plugin
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6604 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-14 00:12:24 +00:00
Xavier Le Vourch
62af77b02d update to PMD 5.0 snapshot (build 6596) and java 1.5
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6603 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-14 00:10:34 +00:00
Xavier Le Vourch
e233091080 3.2.5 release, based on PMD 4.2.4
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6600 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-13 18:54:32 +00:00
Xavier Le Vourch
87a6940645 update to PMD 4.2.4
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6599 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-13 18:30:37 +00:00
Xavier Le Vourch
6045d9e147 version change before new beta to test recent changes
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6571 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 19:30:16 +00:00
Xavier Le Vourch
49b0968c8c code cleanup: removal of $Log$ and $Revision$
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6570 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-06 19:26:32 +00:00
Ryan Gustafson
34ecdafcf1 Changelog update.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6558 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-04 01:06:42 +00:00
Ryan Gustafson
95d65ea2ec Provide full file path to PMD, instead of workspace relative path.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@6557 51baf565-9d33-0410-a72c-fc3788e3496d
2008-10-04 00:52:32 +00:00