-
Notifications
You must be signed in to change notification settings - Fork 18
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
Replaced case sensitive checkbox with a button using an icon #646
Conversation
....eclipse.chemclipse.swt.ui/src/org/eclipse/chemclipse/swt/ui/components/SearchSupportUI.java
Show resolved
Hide resolved
@Mailaender Please have a look at the comment. |
f399612
to
f2d35f2
Compare
....eclipse.chemclipse.swt.ui/src/org/eclipse/chemclipse/swt/ui/components/SearchSupportUI.java
Outdated
Show resolved
Hide resolved
f2d35f2
to
1c1cc10
Compare
@Mailaender A final change request:
I would also recommend to set a tooltip, depending on the status of button, e.g.: |
1c1cc10
to
e209c6a
Compare
Added the tooltip, removed the unused button variable, added boolean caching for performance. |
@Mailaender Thanks. It looks better, but it contains a possibility to get into an inconsistent status. Have a look at the following case: A) The search UI is created, Case Sensitive = false, the button is not decorated Hence, I would recommend to change the code here:
and here:
Whenever the user changes the search case sensitive flag, the user selection is persisted. But the search UI itself has its own status. Please let me know if you'd like to discuss this issue. |
e209c6a
to
af3f7b1
Compare
Added your changes, but I am still fighting a nightmarish bug here that freezes the whole application. I narrowed it down, but I don't understand why it is a problem. Left a source code comment. |
OK, let me review it. |
That is a tricky one :-). Have a look at the code to solve the issue:
|
af3f7b1
to
343ac8c
Compare
Interesting. Line 160 in 984feb6
|
The WellChart example is interesting. It could be, that barchart has been used before, hence it's in the cache already. Let's do a further inspection on this. The SearchSupportUI code looks fine now. |
Closes #645.