no action in menu and more details logged when processing fails

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3596 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Radim Kubacki
2005-06-18 21:46:03 +00:00
parent e3c633a793
commit 0a3d71aa9c

View File

@ -93,6 +93,7 @@ public class RunPMDAction extends CookieAction {
protected void initialize() {
super.initialize();
EditorChangeListener.initialize();
putValue("noIconInMenu", Boolean.TRUE);
}
/**
* Gets the name of this action
@ -236,6 +237,8 @@ public class RunPMDAction extends CookieAction {
catch( PMDException e ) {
Fault fault = new Fault( 1, name, e );
ErrorManager.getDefault().log(ErrorManager.ERROR, "PMD threw exception " + e.toString());
ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
// XXX why to report this ?
list.add( fault );
FaultRegistry.getInstance().registerFault( fault, dataobject );
}