org.netbeans.core.startup/1 1.40

org.netbeans.core.startup
Class NbProblemDisplayer

java.lang.Object
  extended by org.netbeans.core.startup.NbProblemDisplayer

public final class NbProblemDisplayer
extends Object

Utility class to provide localized messages explaining problems that modules had during attempted installation. Used by both NbEvents and autoupdate's ModuleBean.

See Also:
"#16636"

Method Summary
static String messageForProblem(Module m, Object problem)
          Provide a localized explanation of some installation problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

messageForProblem

public static String messageForProblem(Module m,
                                       Object problem)
Provide a localized explanation of some installation problem. Problem may be either an InvalidException or a Dependency. Structure of message can assume that the module failing its dependencies is already being displayed, and concentrate on the problem.

Parameters:
m - the module which cannot be installed
problem - either an InvalidException or Dependency as returned from Module.getProblems()
Returns:
an explanation of the problem in the most human-friendly format available

org.netbeans.core.startup/1 1.40

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.