Skip to content

Commit

Permalink
Merge pull request #1429 from tobiasdiez/fix1342
Browse files Browse the repository at this point in the history
Fix #1342: Show description of case converters as tooltip
  • Loading branch information
simonharrer committed May 20, 2016
2 parents 9021933 + c4a99cf commit 11d834d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
- Integrity check table can be sorted by clicking on column headings
- Added \SOFTWARE\Jabref 'Path' registry entry for installation path inside the installer
- Added an additional icon to distinguish DOI and URL links ([feature request #696](https://github.com/JabRef/jabref/issues/696))
- Implemented [#1342](https://github.com/JabRef/jabref/issues/1342): show description of case converters as tooltip

### Fixed
- Fixed [#473](https://github.com/JabRef/jabref/issues/473): Values in an entry containing symbols like ' are now properly escaped for exporting to the database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public CaseChangeMenu(final JTextComponent parent) {
// create menu items, one for each case changer
for (final Formatter caseChanger : Formatters.CASE_CHANGERS) {
JMenuItem menuItem = new JMenuItem(caseChanger.getName());
menuItem.setToolTipText(caseChanger.getDescription());
menuItem.addActionListener(e -> parent.setText(caseChanger.format(parent.getText())));
this.add(menuItem);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public ConversionMenu(JTextComponent opener) {
// create menu items, one for each case changer
for (Formatter converter : Formatters.CONVERTERS) {
JMenuItem menuItem = new JMenuItem(converter.getName());
menuItem.setToolTipText(converter.getDescription());
menuItem.addActionListener(e -> opener.setText(converter.format(opener.getText())));
this.add(menuItem);
}
Expand Down

0 comments on commit 11d834d

Please sign in to comment.