You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace TextField by TextArea for PV list Name edition in app-alarm-ui and core-ui #2090
It will be more convenient to use a TextArea instead of TextField for listing the PV name to add in Alarm Service
Code to change :
app-alarm-ui org.phoebus.applications.alarm.ui.tree.AddComponentAction.java
Line 45 replace private final TextField name = new TextField(); by private TextArea name = new TextArea();
core-ui : org.phoebus.ui.autocomplete.AutocompleteMenu.java
Line 113 replace TextField by TextInputControl (TextInputControl is the mother-class of TextField and TextArea)
I try to commit my suggestion in my own branch CSSTUDIO-2090 but I'm not authorized. Do you know if I need specific credentials to contribute ? Thank you (I use my login katysaintin and my github password)
Since this change, on our linux systems in the control room, we can no longer enter PV names.
For" Type: Node" selected, you can enter text into the text area. For "Type: PV/s", pressing any key opens the PV name completion drop-down, and you can no longer enter anything.
For other plain text fields like in Probe the PS name completion drop-down still allows editing the PV name, so the issue is somewhere in the text area and/or how the alarm's "Add .." dialog uses it.
I'm seeing the same issue on MacOS. The problem occurs in AutoCompleteMenu L91 which assumes that the input component is a TextField. I changed the cast to TextInputControl, which fixes the issue.
Will submit a PR once I have done some more testing.
I'm seeing the same issue on MacOS. The problem occurs in AutoCompleteMenu L91 which assumes that the input component is a TextField. I changed the cast to TextInputControl, which fixes the issue.
Will submit a PR once I have done some more testing.
Yes you are right , I have miss this one. Thank you for your correction, tell me if you have no time to do it.
Activity
georgweiss commentedon Dec 17, 2021
Feel free to create a pull request that we can approve.
katysaintin commentedon Dec 17, 2021
I try to commit my suggestion in my own branch CSSTUDIO-2090 but I'm not authorized. Do you know if I need specific credentials to contribute ? Thank you (I use my login katysaintin and my github password)
kasemir commentedon Dec 17, 2021
I don't think there are any restrictions on using github to fork, commit to your fork, then create a PR
Replace TextField by TextArea in alarm-ui
Replace cast TextField by TextInputControl
kasemir commentedon Jan 27, 2022
Since this change, on our linux systems in the control room, we can no longer enter PV names.
For" Type: Node" selected, you can enter text into the text area. For "Type: PV/s", pressing any key opens the PV name completion drop-down, and you can no longer enter anything.
For other plain text fields like in Probe the PS name completion drop-down still allows editing the PV name, so the issue is somewhere in the text area and/or how the alarm's "Add .." dialog uses it.
georgweiss commentedon Jan 28, 2022
I'm seeing the same issue on MacOS. The problem occurs in AutoCompleteMenu L91 which assumes that the input component is a TextField. I changed the cast to TextInputControl, which fixes the issue.
Will submit a PR once I have done some more testing.
Fix for issue #2090
katysaintin commentedon Jan 28, 2022
Yes you are right , I have miss this one. Thank you for your correction, tell me if you have no time to do it.
georgweiss commentedon Jan 28, 2022
Already done, pending in #2118
Merge pull request #2118 from ControlSystemStudio/Issue_2090
kasemir commentedon Jan 28, 2022
Thanks, that was quick!
georgweiss commentedon Jan 28, 2022
Well, I'm about to release a new version at ESS...