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:
Jiger Patel
2004-06-16 12:24:10 +00:00
parent b95ed9d304
commit 482045e2fb
8 changed files with 336 additions and 208 deletions

View File

@ -14,11 +14,6 @@
<ACTION NAME="pmd-check-directory"> <ACTION NAME="pmd-check-directory">
<CODE> <CODE>
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view); net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view);
</CODE>
</ACTION>
<ACTION NAME="pmd-check-directory-recursively">
<CODE>
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectoryRecursively(view);
</CODE> </CODE>
</ACTION> </ACTION>
<ACTION NAME="pmd-clear-errorlist"> <ACTION NAME="pmd-clear-errorlist">
@ -33,17 +28,7 @@
</ACTION> </ACTION>
<ACTION NAME="cpd-dir"> <ACTION NAME="cpd-dir">
<CODE> <CODE>
net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view,false); net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view);
</CODE> </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>
</ACTION> </ACTION>
</ACTIONS> </ACTIONS>

View File

@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE ACTIONS SYSTEM "actions.dtd"> <!DOCTYPE ACTIONS SYSTEM "actions.dtd">
<ACTIONS> <ACTIONS>
<ACTION NAME="pmd-check-file"> <ACTION NAME="pmd-check-file">
<CODE> <CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.checkFile(view,browser);</CODE>
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkFile(view,browser); </ACTION>
</CODE> <ACTION NAME="pmd-check-directory">
</ACTION> <CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,false);</CODE>
<ACTION NAME="pmd-check-directory"> </ACTION>
<CODE> <ACTION NAME="pmd-check-directory-recursively">
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,false); <CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,true);</CODE>
</CODE> </ACTION>
</ACTION> <ACTION NAME="cpd-currentfile">
<ACTION NAME="pmd-check-directory-recursively"> <CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdCurrentFile(view, browser);</CODE>
<CODE> </ACTION>
net.sourceforge.pmd.jedit.PMDJEditPlugin.checkDirectory(view, browser,true); <ACTION NAME="cpd-dir">
</CODE> <CODE>net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view,browser, false);</CODE>
</ACTION> </ACTION>
<ACTION NAME="cpd-dir-recursively">
<CODE>
net.sourceforge.pmd.jedit.PMDJEditPlugin.cpdDir(view,browser, true);
</CODE>
</ACTION>
</ACTIONS> </ACTIONS>

View File

@ -1,5 +1,8 @@
??? - 2.5 ??? - 2.5
- Updated to PMD 1.8 - 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 22 March 2004- 2.4
- Optimized usage of ErrorSource for faster Error Highlighting. - Optimized usage of ErrorSource for faster Error Highlighting.

View File

@ -45,7 +45,10 @@ Take a look at the <a href="#releasenotes">Release Notes and Changelog</a> for m
<h2>Release Notes &amp; Changelog</h2> <h2>Release Notes &amp; Changelog</h2>
<h3>2.5</h3> <h3>2.5</h3>
<ol> <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> </ol>
<h3>2.4</h3> <h3>2.4</h3>
<ol> <ol>

View File

@ -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.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 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 cpd-dir-recursively pmd-cpd=cpd-currentfile cpd-dir
browser-pmd-cpd=cpd-currentfile cpd-dir cpd-dir-recursively
#Dockables and Menu Labels #Dockables and Menu Labels
pmd-check-current-buffer.label=Check current buffer pmd-check-current-buffer.label=Check current buffer
pmd-check-all-open-buffers.label=Check all open buffers pmd-check-all-open-buffers.label=Check all open buffers
pmd-check-directory.label=Check all files in directory 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-clear-errorlist.label=Clear ErrorList
pmd-cpd.label=Detect Duplicate Code pmd-cpd.label=Detect Duplicate Code
browser-pmd-cpd.label=Detect Duplicate Code
cpd-currentfile.label=In Current File cpd-currentfile.label=In Current File
cpd-dir.label=In Directory cpd-dir.label=In Directory
cpd-dir-recursively.label=In Directory Recursively cpd-dir-recursively.label=In Directory Recursively
@ -49,7 +51,7 @@ cpd-viewer.title=Copy/Paste Detector
#FS Browser properties #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 properties
pmd.renderer=None pmd.renderer=None

View File

@ -78,7 +78,7 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
SelectedRules rules; SelectedRules rules;
JTextArea exampleTextArea= new JTextArea(10, 50); JTextArea exampleTextArea= new JTextArea(10, 50);
private JCheckBox directoryPopupBox, chkRunPMDOnSave, chkShowProgressBar; private JCheckBox chkRunPMDOnSave, chkShowProgressBar;
JTextField txtMinTileSize; JTextField txtMinTileSize;
JTextField txtCustomRules; JTextField txtCustomRules;
JComboBox comboRenderer; JComboBox comboRenderer;
@ -114,11 +114,6 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
textPanel.setBorder(BorderFactory.createTitledBorder("Example")); textPanel.setBorder(BorderFactory.createTitledBorder("Example"));
textPanel.add(new JScrollPane(exampleTextArea)); 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)); 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)); 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(rulesPanel, BorderLayout.NORTH);
mainPanel.add(textPanel, BorderLayout.CENTER); mainPanel.add(textPanel, BorderLayout.CENTER);
pnlSouth.add(directoryPopupBox);
pnlSouth.add(chkRunPMDOnSave); pnlSouth.add(chkRunPMDOnSave);
pnlSouth.add(pnlTileSize); pnlSouth.add(pnlTileSize);
mainPanel.add(pnlSouth, BorderLayout.SOUTH); mainPanel.add(pnlSouth, BorderLayout.SOUTH);
@ -153,9 +147,6 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
public void _save() { public void _save() {
rules.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.setIntegerProperty(PMDJEditPlugin.DEFAULT_TILE_MINSIZE_PROPERTY,(txtMinTileSize.getText().length() == 0)?100:Integer.parseInt(txtMinTileSize.getText()));
jEdit.setBooleanProperty(PMDJEditPlugin.RUN_PMD_ON_SAVE,(chkRunPMDOnSave.isSelected())); jEdit.setBooleanProperty(PMDJEditPlugin.RUN_PMD_ON_SAVE,(chkRunPMDOnSave.isSelected()));