org.netbeans.core.startup
Class NbProblemDisplayer
java.lang.Object
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"
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 installedproblem - either an InvalidException or Dependency as returned from Module.getProblems()
- Returns:
- an explanation of the problem in the most human-friendly format available