forked from phoedos/pmd
The 0.6 release
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1270 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
Version 0.6
|
||||
- New properties dialog. Makes it possible to select individual rules
|
||||
- Fixed feature request 638427
|
||||
- New properties dialog. Makes it possible to select individual rules. D
|
||||
- Shortcut added, ctrl-shift-p to launch pmd.
|
||||
|
||||
Version 0.5
|
||||
- Fixed bug 633432 pmd-netbeans can't change settings (netbeans)
|
||||
|
@ -1,14 +1,21 @@
|
||||
PMD for netbeans.
|
||||
|
||||
------------------------
|
||||
INSTALL
|
||||
------------------------
|
||||
|
||||
Start netbeans and goto Tools\Update Center and choose
|
||||
"Install Manually Downloaded Modules(.nbm Files). Press Next, Add... and go to
|
||||
the directory where you downloaded pmd-netbeans and choose the file pmd.nbm.
|
||||
Press Next, accept the license and choose to include the pmd module. Press
|
||||
Finish, restart the IDE and you're done :)
|
||||
1) Start netbeans
|
||||
2) Goto Tools --> Update Center
|
||||
3) Choose "Install Manually Downloaded Modules(.nbm Files).".
|
||||
4) Press Next
|
||||
5) Chosse Add
|
||||
6) Goto the directory where you downloaded pmd-netbeans and choose the file "pmd.nbm".
|
||||
7) Press OK
|
||||
8) Press Next
|
||||
9) Press Next
|
||||
10) Press Accept
|
||||
11) Choose Include
|
||||
12) Press Finish
|
||||
13) Choose OK to restart
|
||||
|
||||
------------------------
|
||||
USE
|
||||
@ -22,6 +29,11 @@ java-file to correct the problem PMD discovered.
|
||||
------------------------
|
||||
OPTIONS
|
||||
------------------------
|
||||
|
||||
Go to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
|
||||
to choose which rules to use.
|
||||
1) Start netbeans
|
||||
2) Goto Tools --> Options
|
||||
3) Navigate to Options/IDE Configuration/Server And External Tool Settings/PMD Settings
|
||||
4) Click on "Rules"
|
||||
5) Click on the [...] button
|
||||
6) Select the different rules to see information and examples of the rule
|
||||
7) Use the <, <<, >, >>, buttons to choose which rules to use.
|
||||
8) Press OK to save the configuration
|
||||
|
@ -65,7 +65,4 @@
|
||||
<target description="Clean all build products." name="clean">
|
||||
<delete dir="build"/>
|
||||
</target>
|
||||
<target name="deploy" depends="jars" description="Deploys the jar to netbeans">
|
||||
<copy file="build/pmd.jar" tofile="E:/Documents and Settings/ole martin mørk/netbeans/3.4/modules/pmd.jar"/>
|
||||
</target>
|
||||
</project>
|
||||
|
@ -1,5 +1,5 @@
|
||||
Manifest-Version: 1.0
|
||||
OpenIDE-Module-Specification-Version: 0.50.3
|
||||
OpenIDE-Module-Specification-Version: 0.60
|
||||
Created-By: NetBeans
|
||||
Class-Path: ext/pmd-1.01.jar
|
||||
OpenIDE-Module: pmd
|
||||
|
@ -1,7 +1,28 @@
|
||||
/*
|
||||
* ConfigUtils.java
|
||||
* Copyright (c) 2002, Ole-Martin Mørk
|
||||
* All rights reserved.
|
||||
*
|
||||
* Created on 25. november 2002, 23:35
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* - Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
*
|
||||
* - Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||
* DAMAGE.
|
||||
*/
|
||||
package pmd.config;
|
||||
|
||||
|
@ -388,9 +388,11 @@ public class RuleEnabler extends JPanel {
|
||||
*/
|
||||
private void chosenListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_chosenListValueChanged
|
||||
Rule rule = (Rule)chosenList.getSelectedValue();
|
||||
example.setText( rule.getExample().trim());
|
||||
information.setText( rule.getDescription().trim() );
|
||||
properties.setModel( new PropertiesModel( rule ) );
|
||||
if( rule != null ) {
|
||||
example.setText( rule.getExample().trim());
|
||||
information.setText( rule.getDescription().trim() );
|
||||
properties.setModel( new PropertiesModel( rule ) );
|
||||
}
|
||||
}//GEN-LAST:event_chosenListValueChanged
|
||||
|
||||
/** Called when the user selects a value in the availableList
|
||||
@ -398,9 +400,11 @@ public class RuleEnabler extends JPanel {
|
||||
*/
|
||||
private void availableListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_availableListValueChanged
|
||||
Rule rule = (Rule)availableList.getSelectedValue();
|
||||
example.setText( rule.getExample().trim() );
|
||||
information.setText( rule.getDescription().trim() );
|
||||
properties.setModel( new PropertiesModel( rule ) );
|
||||
if( rule != null ) {
|
||||
example.setText( rule.getExample().trim() );
|
||||
information.setText( rule.getDescription().trim() );
|
||||
properties.setModel( new PropertiesModel( rule ) );
|
||||
}
|
||||
}//GEN-LAST:event_availableListValueChanged
|
||||
|
||||
/** Called when the user clicks on the removeAll button
|
||||
|
Reference in New Issue
Block a user