Skip to main content

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

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?

--
/Jesper




Back to the top