#63238: if findHelp results in a CNFE, it's probably not something anyone really cares to see. version-2-3-37 version-2-3-38 version-2-3-39 version-2-3-40 version-2-3-41
authorjglick@netbeans.org
Tue, 30 Aug 2005 05:35:19 +0000
changeset 608e2afdd62da4
parent 59 c20bf214af63
child 61 cedb35261b02
#63238: if findHelp results in a CNFE, it's probably not something anyone really cares to see.
openide.util/src/org/openide/util/HelpCtx.java
     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;