use of org.csstudio.apputil.macros.InfiniteLoopException in project org.csstudio.display.builder by kasemir.
the class DataBrowserWidgedModel method getExpandedFilename.
/**
* @return Path to data browser configuration file, macros are expanded
*/
public IPath getExpandedFilename() {
IPath path = getPlainFilename();
try {
final String new_path = MacroUtil.replaceMacros(path.toPortableString(), getAllMacros());
path = SingleSourcePlugin.getResourceHelper().newPath(new_path);
} catch (InfiniteLoopException e) {
// $NON-NLS-1$
Logger.getLogger(Activator.ID).log(Level.WARNING, "Recursive macros in Data Browser widget {0}", getName());
}
return path;
}
Aggregations