Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 383001

Summary: Typo in "Key 'mathProcessorName' is not found localization properties file"
Product: [Eclipse Project] PDE Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Curtis Windatt <curtis.windatt.public>
Status: VERIFIED FIXED QA Contact:
Severity: trivial    
Priority: P3 CC: curtis.windatt.public
Version: 3.8   
Target Milestone: 4.3 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Markus Keller CLA 2012-06-19 11:58:13 EDT
org.eclipse.equinox.bidi has an extension that declares

      <typeDescription
            class="org.eclipse.equinox.bidi.internal.consumable.STextMath"
            description="%mathProcessorName"
            type="math">
      </typeDescription>

... but the %mathProcessorName is missing.

Error message:
Key 'mathProcessorName' is not found localization properties file

Correct error message:
Key 'mathProcessorName' is not found in localization properties file

It also wouldn't hurt if the path to the localization properties file was appended to the error message.
Comment 1 Curtis Windatt CLA 2012-06-19 16:01:12 EDT
We should only specify the file location if the localization header is set.  If so, this can be accessed in BundleErrorReporter using helper.getNLFileBasePath().  The returned string does not include the .properties at the end.
Comment 2 Markus Keller CLA 2012-06-20 07:00:19 EDT
> We should only specify the file location if the localization header is set.

It would also be helpful in case Bundle-Localization is not set.
Note everyone knows that the default is /OSGI-INF/l10n/bundle.properties
Comment 3 Curtis Windatt CLA 2012-06-20 09:56:20 EDT
(In reply to comment #2)
> It would also be helpful in case Bundle-Localization is not set.
> Note everyone knows that the default is /OSGI-INF/l10n/bundle.properties

This can be done using org.eclipse.pde.internal.core.PDEManager.getBundleLocalization(IPluginModelBase). We don't want to confuse the user with a message about how a key is missing from a file that doesn't exist.  Two different messages based on whether the file exists would work.
Comment 4 Curtis Windatt CLA 2012-06-26 15:38:08 EDT
Fixed in master
http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=774033f8a4beb1aad1bfe829b266b000285a6690

After experimenting with it, a single message is satisfactory and not confusing.  If the localization property is set, the message says that the key is missing from it.  Otherwise, the message uses the default location.
Comment 5 Curtis Windatt CLA 2012-08-09 11:58:07 EDT
Verified I20120808-2000