Jabref: Save actions: better field selection

Created on 14 Mar 2016  路  5Comments  路  Source: JabRef/jabref

At "Save sort order" in the same dialog, one can also select a field. I would have expected the same choice for the selection of the fields to apply the save action. Is that possible? Reason: I am too lazy to input the field name manually.

grabbed_20160313-212741

enhancement

Most helpful comment

For the sort criterion:
A solution to this would be to use an Editable Combobox (Default Combobox with Editable=true)
https://docs.oracle.com/javase/tutorial/uiswing/components/combobox.html#editable

  • Enables the selection of items
  • Add new items not in the list of the combobox.
    => This would make the textfield unnecessary.

For the Save Action I would suggest the same solution

All 5 comments

Please not that there is the "special field" "all" which applies the save action on all fields.

I will look into this, Together with #958
@koppor
Edit// When you select a field in the combo box e.g. address, it get's displayed in the text field.
However, it currently does not get displayed on the combobox itself.

@Siedlerchr Yes, I know. That was sort of a quick hack to enable quick selection of common fields, but also the input of arbitrary fields (not contained in the combobox list). Don't know, whether that's possible with a normal JCombobox, too.

For the sort criterion:
A solution to this would be to use an Editable Combobox (Default Combobox with Editable=true)
https://docs.oracle.com/javase/tutorial/uiswing/components/combobox.html#editable

  • Enables the selection of items
  • Add new items not in the list of the combobox.
    => This would make the textfield unnecessary.

For the Save Action I would suggest the same solution

This save sort order selection with the Combobox and the Textfield is also used in the Preferences->Export sorting, it is the same class (SaveOrderConfigDisplay) which is used for both

A rework would then profit in both cases.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tobiasdiez picture tobiasdiez  路  4Comments

simonharrer picture simonharrer  路  3Comments

jonasstein picture jonasstein  路  3Comments

Braunch picture Braunch  路  3Comments

diabl0w picture diabl0w  路  3Comments