Skip to content

Use action handler#4726

Merged
tobiasdiez merged 5 commits into
JabRef:masterfrom
abepolk:use_actionHandler
Mar 8, 2019
Merged

Use action handler#4726
tobiasdiez merged 5 commits into
JabRef:masterfrom
abepolk:use_actionHandler

Conversation

@abepolk

@abepolk abepolk commented Mar 6, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

@tobiasdiez tobiasdiez left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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

@Siedlerchr Siedlerchr left a comment

Copy link
Copy Markdown
Member

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