private void load(IManagedConfigElement element) { String names[] = MbsMacroSupplier.getInstance().getMacroNames(IBuildMacroProvider.CONTEXT_FILE); fValues.clear(); for (int i = 0; i < names.length; i++) { String value = element.getAttribute(PREFIX + names[i] + SUFFIX); if (value != null) fValues.put(names[i], value); } }
private void load() { if (!fInitialized) { fAllValues.clear(); IFileContextBuildMacroValues supperValues = getSupperClassValues(); if (supperValues != null) { String names[] = MbsMacroSupplier.getInstance().getMacroNames(IBuildMacroProvider.CONTEXT_FILE); for (int i = 0; i < names.length; i++) { String value = fValues.get(names[i]); if (value == null) value = supperValues.getMacroValue(names[i]); if (value != null && value.length() > 0) fAllValues.put(names[i], value); } } else { Set<Entry<String, String>> entrySet = fValues.entrySet(); for (Entry<String, String> entry : entrySet) { String value = entry.getValue(); if (value != null && value.length() > 0) fAllValues.put(entry.getKey(), value); } } fInitialized = true; } }