Removed Recursive Directory options and integrated them into FileChooser itself.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@2747 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -14,11 +14,6 @@
|
||||
<ACTION NAME="pmd-check-directory">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-check-directory-recursively">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectoryRecursively(view);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-clear-errorlist">
|
||||
@ -33,17 +28,7 @@
|
||||
</ACTION>
|
||||
<ACTION NAME="cpd-dir">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view,false);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="cpd-dir-recursively">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view,true);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-check-file">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkFile(view,browser);
|
||||
</CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
</ACTIONS>
|
||||
|
@ -1,19 +1,24 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE ACTIONS SYSTEM "actions.dtd">
|
||||
<ACTIONS>
|
||||
<ACTION NAME="pmd-check-file">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkFile(view,browser);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-check-directory">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,false);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-check-directory-recursively">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,true);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-check-file">
|
||||
<CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.checkFile(view,browser);</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-check-directory">
|
||||
<CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,false);</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="pmd-check-directory-recursively">
|
||||
<CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,true);</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="cpd-currentfile">
|
||||
<CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdCurrentFile(view, browser);</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="cpd-dir">
|
||||
<CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view,browser, false);</CODE>
|
||||
</ACTION>
|
||||
<ACTION NAME="cpd-dir-recursively">
|
||||
<CODE>
|
||||
net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view,browser, true);
|
||||
</CODE>
|
||||
</ACTION>
|
||||
</ACTIONS>
|
||||
|
@ -1,5 +1,8 @@
|
||||
??? - 2.5
|
||||
- Updated to PMD 1.8
|
||||
- Removed Recursive Directory options and integrated them into FileChooser itself.
|
||||
- Complete redesign of the way PMD Rules and Copy/Paste Detector are used.
|
||||
- Lots of code cleanup.
|
||||
|
||||
22 March 2004- 2.4
|
||||
- Optimized usage of ErrorSource for faster Error Highlighting.
|
||||
|
@ -45,7 +45,10 @@ Take a look at the <a href="#releasenotes">Release Notes and Changelog</a> for m
|
||||
<h2>Release Notes & Changelog</h2>
|
||||
<h3>2.5</h3>
|
||||
<ol>
|
||||
<li>Updated to PMD 1.7</li>
|
||||
<li>Updated to PMD 1.8</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>Lots of code cleanup.</li>
|
||||
</ol>
|
||||
<h3>2.4</h3>
|
||||
<ol>
|
||||
|
Binary file not shown.
@ -19,16 +19,18 @@ plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.activate=defer
|
||||
|
||||
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.menu.label=$PMD
|
||||
|
||||
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.menu=pmd-check-current-buffer pmd-check-all-open-buffers pmd-check-directory pmd-check-directory-recursively pmd-clear-errorlist %pmd-cpd
|
||||
pmd-cpd=cpd-currentfile cpd-dir cpd-dir-recursively
|
||||
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.menu=pmd-check-current-buffer pmd-check-all-open-buffers pmd-check-directory pmd-clear-errorlist %pmd-cpd
|
||||
pmd-cpd=cpd-currentfile cpd-dir
|
||||
browser-pmd-cpd=cpd-currentfile cpd-dir cpd-dir-recursively
|
||||
|
||||
#Dockables and Menu Labels
|
||||
pmd-check-current-buffer.label=Check current buffer
|
||||
pmd-check-all-open-buffers.label=Check all open buffers
|
||||
pmd-check-directory.label=Check all files in directory
|
||||
pmd-check-directory-recursively.label=Check directory recursively
|
||||
pmd-check-directory-recursively.label=Check all files in directory recursively
|
||||
pmd-clear-errorlist.label=Clear ErrorList
|
||||
pmd-cpd.label=Detect Duplicate Code
|
||||
browser-pmd-cpd.label=Detect Duplicate Code
|
||||
cpd-currentfile.label=In Current File
|
||||
cpd-dir.label=In Directory
|
||||
cpd-dir-recursively.label=In Directory Recursively
|
||||
@ -49,7 +51,7 @@ cpd-viewer.title=Copy/Paste Detector
|
||||
|
||||
#FS Browser properties
|
||||
|
||||
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.browser-menu=pmd-check-file pmd-check-directory pmd-check-directory-recursively
|
||||
plugin.net.sourceforge.pmd.jedit.PMDJEditPlugin.browser-menu=pmd-check-file pmd-check-directory pmd-check-directory-recursively %browser-pmd-cpd
|
||||
|
||||
#pmd properties
|
||||
pmd.renderer=None
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -78,7 +78,7 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
|
||||
|
||||
SelectedRules rules;
|
||||
JTextArea exampleTextArea= new JTextArea(10, 50);
|
||||
private JCheckBox directoryPopupBox, chkRunPMDOnSave, chkShowProgressBar;
|
||||
private JCheckBox chkRunPMDOnSave, chkShowProgressBar;
|
||||
JTextField txtMinTileSize;
|
||||
JTextField txtCustomRules;
|
||||
JComboBox comboRenderer;
|
||||
@ -114,11 +114,6 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
|
||||
textPanel.setBorder(BorderFactory.createTitledBorder("Example"));
|
||||
textPanel.add(new JScrollPane(exampleTextArea));
|
||||
|
||||
if (!jEdit.getProperties().containsKey(PMDJEditPlugin.OPTION_UI_DIRECTORY_POPUP)) {
|
||||
jEdit.setBooleanProperty(PMDJEditPlugin.OPTION_UI_DIRECTORY_POPUP, false);
|
||||
}
|
||||
|
||||
directoryPopupBox = new JCheckBox("Ask for directory?", jEdit.getBooleanProperty(PMDJEditPlugin.OPTION_UI_DIRECTORY_POPUP));
|
||||
chkRunPMDOnSave = new JCheckBox("Run PMD on Save", jEdit.getBooleanProperty(PMDJEditPlugin.RUN_PMD_ON_SAVE));
|
||||
chkShowProgressBar = new JCheckBox("Show PMD Progress Bar", jEdit.getBooleanProperty(PMDJEditPlugin.SHOW_PROGRESS));
|
||||
|
||||
@ -144,7 +139,6 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
|
||||
mainPanel.add(rulesPanel, BorderLayout.NORTH);
|
||||
mainPanel.add(textPanel, BorderLayout.CENTER);
|
||||
|
||||
pnlSouth.add(directoryPopupBox);
|
||||
pnlSouth.add(chkRunPMDOnSave);
|
||||
pnlSouth.add(pnlTileSize);
|
||||
mainPanel.add(pnlSouth, BorderLayout.SOUTH);
|
||||
@ -153,9 +147,6 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
|
||||
|
||||
public void _save() {
|
||||
rules.save();
|
||||
if (directoryPopupBox != null) {
|
||||
jEdit.setBooleanProperty(PMDJEditPlugin.OPTION_UI_DIRECTORY_POPUP, directoryPopupBox.isSelected());
|
||||
}
|
||||
|
||||
jEdit.setIntegerProperty(PMDJEditPlugin.DEFAULT_TILE_MINSIZE_PROPERTY,(txtMinTileSize.getText().length() == 0)?100:Integer.parseInt(txtMinTileSize.getText()));
|
||||
jEdit.setBooleanProperty(PMDJEditPlugin.RUN_PMD_ON_SAVE,(chkRunPMDOnSave.isSelected()));
|
||||
|
Reference in New Issue
Block a user