this.optionsCache = getDefaultOptionsNoInitialization();
return new Hashtable(this.optionsCache);
}
// init
Hashtable options = new Hashtable(10);
IPreferencesService service = Platform.getPreferencesService();
// set options using preferences service lookup
Iterator iterator = this.optionNames.iterator();
while (iterator.hasNext()) {
String propertyName = (String) iterator.next();
String propertyValue = service.get(propertyName, null, this.preferencesLookup);
if (propertyValue != null) {
options.put(propertyName, propertyValue);
}
}
// set deprecated options using preferences service lookup
Iterator deprecatedEntries = this.deprecatedOptions.entrySet().iterator();
while (deprecatedEntries.hasNext()) {
Entry entry = (Entry) deprecatedEntries.next();
String propertyName = (String) entry.getKey();
String propertyValue = service.get(propertyName, null, this.preferencesLookup);
if (propertyValue != null) {
options.put(propertyName, propertyValue);
String[] compatibleOptions = (String[]) entry.getValue();
for (int co=0, length=compatibleOptions.length; co < length; co++) {
String compatibleOption = compatibleOptions[co];