Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Coding horror

Should be logged in the .log file. You can see it using Error View or simply opening the file (in workspace/.metadata/.log).

Jesper Eskilson wrote:
Elena Laskavaia wrote:
You need a bug to cover all patches you going to attach. After it is fixed if you want another one you have to open another bug.

I tried the following:


    public IOptionApplicability getApplicabilityCalculator() {
        if (applicabilityCalculator == null) {
            if (applicabilityCalculatorElement != null) {
                try {
                    if (applicabilityCalculatorElement
.getAttribute(APPLICABILITY_CALCULATOR) != null) applicabilityCalculator = (IOptionApplicability) applicabilityCalculatorElement .createExecutableExtension(APPLICABILITY_CALCULATOR);
                } catch (CoreException e) {
                    IStatus status = new Status(
                            IStatus.ERROR,
ManagedBuilderCorePlugin.getUniqueIdentifier(),
                            IStatus.ERROR,
"Failed to create custom applicability calculator.",
                            e);
                    ManagedBuilderCorePlugin.log(status);
                }
            } else if (superClass != null)
                applicabilityCalculator = superClass
                        .getApplicabilityCalculator();
        }

        return applicabilityCalculator;
    }

But there is nothing logged anywhere (that I can see). What am I doing wrong? Where is the log message supposed to appear?



Back to the top