kasemir / org.csstudio.display.builder

Update of org.csstudio.opibuilder.*
Eclipse Public License 1.0
2 stars 10 forks source link

Macro resolution in embedded displays differs in Edit mode from the Run mode #503

Closed claudio-rosati closed 5 years ago

claudio-rosati commented 5 years ago

This is what was reported by a colleague:

When a macro of an embedded display is set in the macros property and the value uses another macro the result is different in run mode than the one shown in edit mode.

CSSTUDIO-964.zip

csstudio_macro_differences

I'm not saying this is the best way of use macros, but clearly there is a difference in macro evaluation in Edit and Run modes.

kasemir commented 5 years ago

I think that's related to macros being expanded for the runtime, but not in the editor. If we expanded them in the editor, your macro values "$(X)" would be replaced with the current value of X, i.e. you could not enter and save such macros.

claudio-rosati commented 5 years ago

Understood. Thank you.