Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace TextField by TextArea for PV list Name edition in app-alarm-ui and core-ui #2090

Closed
katysaintin opened this issue Dec 15, 2021 · 9 comments

Comments

@katysaintin
Copy link
Contributor

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)
@georgweiss
Copy link
Collaborator

Feel free to create a pull request that we can approve.

@katysaintin
Copy link
Contributor Author

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
Copy link
Collaborator

kasemir commented Dec 17, 2021

I don't think there are any restrictions on using github to fork, commit to your fork, then create a PR

katysaintin added a commit to katysaintin/phoebus that referenced this issue Dec 17, 2021
Replace TextField by TextArea in alamr-ui for PV List edition see issue ControlSystemStudio#2090
katysaintin added a commit to katysaintin/phoebus that referenced this issue Dec 17, 2021
Replace cast TextField by TextInputControl see issue ControlSystemStudio#2090
@kasemir
Copy link
Collaborator

kasemir commented 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
Copy link
Collaborator

georgweiss commented 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.

georgweiss added a commit that referenced this issue Jan 28, 2022
@katysaintin
Copy link
Contributor Author

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.

@georgweiss
Copy link
Collaborator

Already done, pending in #2118

kasemir added a commit that referenced this issue Jan 28, 2022
@kasemir
Copy link
Collaborator

kasemir commented Jan 28, 2022

Thanks, that was quick!

@kasemir kasemir closed this as completed Jan 28, 2022
@georgweiss
Copy link
Collaborator

Well, I'm about to release a new version at ESS...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants