forked from phoedos/pmd
fixed GUI locking problem
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@630 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
???? 2002 - 0.8:
|
||||
Fixed GUI lockup problem.
|
||||
|
||||
August 2 2002 - 0.7:
|
||||
Updated to use pmd-0.8
|
||||
|
@ -62,13 +62,16 @@ public class PMDJEditPlugin extends EditPlugin {
|
||||
}
|
||||
|
||||
public void instanceCheckDirectory(View view) {
|
||||
DockableWindowManager wm = view.getDockableWindowManager();
|
||||
VFSBrowser browser = (VFSBrowser)wm.getDockable("vfs.browser");
|
||||
final VFSBrowser browser = (VFSBrowser)view.getDockableWindowManager().getDockable("vfs.browser");
|
||||
if(browser == null) {
|
||||
JOptionPane.showMessageDialog(jEdit.getFirstView(), "Can't run PMD on a directory unless the file browser is open", NAME, JOptionPane.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
processFiles(findFilesInDirectory(browser.getDirectory()));
|
||||
new Thread(new Runnable () {
|
||||
public void run() {
|
||||
processFiles(findFilesInDirectory(browser.getDirectory()));
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
public static void checkDirectoryRecursively(View view) {
|
||||
@ -76,13 +79,16 @@ public class PMDJEditPlugin extends EditPlugin {
|
||||
}
|
||||
|
||||
public void instanceCheckDirectoryRecursively(View view) {
|
||||
DockableWindowManager wm = view.getDockableWindowManager();
|
||||
VFSBrowser browser = (VFSBrowser)wm.getDockable("vfs.browser");
|
||||
final VFSBrowser browser = (VFSBrowser)view.getDockableWindowManager().getDockable("vfs.browser");
|
||||
if(browser == null) {
|
||||
JOptionPane.showMessageDialog(jEdit.getFirstView(), "Can't run PMD on a directory unless the file browser is open", NAME, JOptionPane.ERROR_MESSAGE);
|
||||
return;
|
||||
}
|
||||
processFiles(findFilesRecursively(browser.getDirectory()));
|
||||
new Thread(new Runnable () {
|
||||
public void run() {
|
||||
processFiles(findFilesRecursively(browser.getDirectory()));
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
|
||||
public static void check(Buffer buffer, View view) {
|
||||
|
Reference in New Issue
Block a user