Community
Participate
Working Groups
suggested fix for org.eclipse.e4.ui.model.LocalizationHelper since getLocalized(String, MApplicationElement, IEclipseContext) already follows the policy of returning the key-String as value in case no translation service or translation is available it would be consequent to follow the same policy also in getLocalized(String, MApplicationElement) when no context is available as of now, it will return null, which produces empty entries in the save prompt for multiple dirty files, because the anonymous PartServiceSaveHandler setup in WorkbenchWindow makes use of the LocalizationHelper you may say, that normally a MPart should always have a parent, but believe me, that is not always the case ... as for the proprietary components we make use of in our software product, their heavyweight dirty MParts from hidden perspectives have no parent, when their perspective is inactive, yet the save prompt, of course, still should be able to show them upon exit
Sounds reasonable, although the check should be performed in getLocalized(String, MApplicationElement, IEclipseContext) to always have the same behaviour. Fixed with https://git.eclipse.org/r/#/c/24001/
fixed with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=89be22cf7469ecde426e4b75493d7c29ec9733f7