Search in sources :

Example 1 with InfiniteLoopException

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;
}
Also used : IPath(org.eclipse.core.runtime.IPath) InfiniteLoopException(org.csstudio.apputil.macros.InfiniteLoopException)

Aggregations

InfiniteLoopException (org.csstudio.apputil.macros.InfiniteLoopException)1 IPath (org.eclipse.core.runtime.IPath)1