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

FormattedText.MaskFormatter Regression #608

Closed
claussenj opened this issue Sep 16, 2024 · 4 comments · Fixed by #624
Closed

FormattedText.MaskFormatter Regression #608

claussenj opened this issue Sep 16, 2024 · 4 comments · Fixed by #624
Milestone

Comments

@claussenj
Copy link
Contributor

Dear Nebula team,

we have run into a regression of the MaskFormatter in the FormattedText widget:

The getValue() is intended to return the actual text field value without the separator characters. But this behavior was broken in this line:

https://github.com/eclipse/nebula/blob/31f40e4e56e006f54e87eae14b23c36dbd79f09b/widgets/formattedtext/org.eclipse.nebula.widgets.formattedtext/src/org/eclipse/nebula/widgets/formattedtext/MaskFormatter.java#L153

The last comparison should also test for equality:
c == P_LHEXDIGIT

Such that the complete if condition would read:
if (c == P_DIGIT || c == P_ALPHANUM || c == P_UPPERCASE
|| c == P_LOWERCASE || c == P_UHEXDIGIT || c == P_LHEXDIGIT) {

Could you please fix this?

regards
Jens

@wimjongman
Copy link
Contributor

Jens, can you make a PR?

@wimjongman wimjongman added this to the 3.2.0 milestone Nov 26, 2024
@claussenj
Copy link
Contributor Author

Hi @wimjongman ,

here is a PR: #624

Seems like I have failed to add a proper footer for the ECA to the PR, not sure if it is usable...

My Eclipse ID would be jclaussen, with a signed ECA.

regards
Jens

@wimjongman wimjongman linked a pull request Dec 2, 2024 that will close this issue
@wimjongman
Copy link
Contributor

Thanks, Jens!

@lcaron
Copy link
Contributor

lcaron commented Dec 9, 2024

Thanks @claussenj and @wimjongman

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

Successfully merging a pull request may close this issue.

3 participants