#63238: if findHelp results in a CNFE, it's probably not something anyone really cares to see.
1.1 --- a/openide.util/src/org/openide/util/HelpCtx.java Mon Aug 22 18:42:21 2005 +0000
1.2 +++ b/openide.util/src/org/openide/util/HelpCtx.java Tue Aug 30 05:35:19 2005 +0000
1.3 @@ -7,22 +7,19 @@
1.4 * http://www.sun.com/
1.5 *
1.6 * The Original Code is NetBeans. The Initial Developer of the Original
1.7 - * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
1.8 + * Code is Sun Microsystems, Inc. Portions Copyright 1997-2005 Sun
1.9 * Microsystems, Inc. All Rights Reserved.
1.10 */
1.11 +
1.12 package org.openide.util;
1.13
1.14 +import java.beans.BeanDescriptor;
1.15 +import java.beans.IntrospectionException;
1.16 +import java.beans.Introspector;
1.17 +import java.net.URL;
1.18 +import javax.swing.JComponent;
1.19 import org.openide.ErrorManager;
1.20
1.21 -import java.beans.*;
1.22 -
1.23 -import java.lang.reflect.*;
1.24 -
1.25 -import java.net.URL;
1.26 -
1.27 -import javax.swing.JComponent;
1.28 -
1.29 -
1.30 /** Provides help for any window or other feature in the system.
1.31 * It is designed to be JavaHelp-compatible and to use the same tactics when
1.32 * assigning help to {@link JComponent} instances.
1.33 @@ -231,7 +228,7 @@
1.34 return new HelpCtx(v);
1.35 }
1.36 } catch (IntrospectionException e) {
1.37 - ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, e);
1.38 + err.log("findHelp on " + instance + ": " + e);
1.39 }
1.40
1.41 return HelpCtx.DEFAULT_HELP;