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

Use action handler #4726

Merged
merged 5 commits into from
Mar 8, 2019
Merged

Use action handler #4726

merged 5 commits into from
Mar 8, 2019

Conversation

abepolk
Copy link
Contributor

@abepolk abepolk commented Mar 6, 2019

I found a problem in which the Add Group Dialog was processing text fields for each keystroke typed in them rather than when the user was done typing. This would throw errors when the user's partially-typed answer was invalid. I changed this by using EventHandlers instead of Listeners.

This may already have been fixed by the recent change to the dialog, but this PR shouldn't hurt anyway, since the fields will only be updated when the user is finished typing.

@Siedlerchr
Copy link
Member

Please fix the checkstlye issue (unused import) and it can be merged.

@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Mar 8, 2019
Copy link
Member

@tobiasdiez tobiasdiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment.

keywordGroupRegExp.setOnAction(actionHandler);
searchGroupSearchExpression.setOnAction(actionHandler);
searchGroupRegExp.setOnAction(actionHandler);
searchGroupRegExp.setOnAction(actionHandler);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

searchGroupRegExp is set twice (not your fault, was the case already in the existing code...)

@tobiasdiez tobiasdiez merged commit 0a0f4f9 into JabRef:master Mar 8, 2019
Siedlerchr added a commit that referenced this pull request Mar 9, 2019
…tofx

* upstream/master:
  Rework import inspection dialog in JavaFX (#4692)
  Use action handler (#4726)

# Conflicts:
#	src/main/java/org/jabref/preferences/PreferencesService.java
Copy link
Member

@Siedlerchr Siedlerchr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants