Bug 396924

Summary: TranslationService should provide enumeration of translation keys
Product: [Eclipse Project] Platform Reporter: Thomas Schindl <tom.schindl>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: emoffatt, mistria, pwebster
Version: 4.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Thomas Schindl CLA 2012-12-19 09:23:20 EST
Many Java-libraries rely on ResourceBundle interface for translation so one make those libraries use the workbench TranslationService one has to implement implement a ResourceBundle-Class with the following methods.

* protected Object handleGetObject(String key)
* public Enumeration<String> getKeys()

whereas the first one can be delegated to the translate() method there's no way to extract the available keys so I'd like to suggest that our service provides this information as well.

class TranslationService {

  public Enumeration<String> getKeys(String contributorURI) {
     return Collections.emptyEnumeration();
  }
}