File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
app/display/editor/src/main/java/org/csstudio/display/builder/editor/app Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,15 @@ public class DisplayEditorInstance implements AppInstance
8080
8181 private final WidgetPropertyListener <String > model_name_listener = (property , old_value , new_value ) ->
8282 {
83- final String label = EditorUtil .isDisplayReadOnly (property .getWidget ().checkDisplayModel ())
84- ? "[R/O] " + property .getValue ()
85- : "[Edit] " + property .getValue ();
83+ String userDataInputFile = property .getWidget ().getUserData (DisplayModel .USER_DATA_INPUT_FILE );
84+
85+ String value = (property .getValue () == null || property .getValue ().isEmpty ())
86+ ? userDataInputFile
87+ : property .getValue ();
88+
89+ final String label = EditorUtil .isDisplayReadOnly (property .getWidget ().checkDisplayModel ())
90+ ? "[R/O] " + value
91+ : "[Edit] " + value ;
8692 Platform .runLater (() -> dock_item .setLabel (label ));
8793 };
8894
You can’t perform that action at this time.
0 commit comments