Skip to content

Commit

Permalink
Fix #1342: Show description of case converters as tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed May 19, 2016
1 parent ed638e2 commit c4a99cf
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 c4a99cf

Please sign in to comment.