Search in sources :

Example 1 with MacroTable

use of org.csstudio.apputil.macros.MacroTable in project org.csstudio.display.builder by kasemir.

the class DataBrowserWidgedModel method getAllMacros.

/**
 * @return All macros of this widget, including optional parent settings
 */
MacroTable getAllMacros() {
    final Map<String, String> macros = new HashMap<String, String>();
    final MacrosInput macro_input = getMacrosInput();
    if (macro_input.isInclude_parent_macros())
        macros.putAll(getParentMacroMap());
    macros.putAll(macro_input.getMacrosMap());
    return new MacroTable(macros);
}
Also used : MacrosInput(org.csstudio.opibuilder.util.MacrosInput) HashMap(java.util.HashMap) MacroTable(org.csstudio.apputil.macros.MacroTable)

Aggregations

HashMap (java.util.HashMap)1 MacroTable (org.csstudio.apputil.macros.MacroTable)1 MacrosInput (org.csstudio.opibuilder.util.MacrosInput)1