use of org.jabref.gui.contentselector.FieldContentSelector in project jabref by JabRef.
the class FieldExtraComponents method getSelectorExtraComponent.
/**
* Return a button opening a content selector for fields where one exists
*
* @param frame
* @param panel
* @param editor
* @param contentSelectors
* @param storeFieldAction
* @return
*/
public static Optional<JComponent> getSelectorExtraComponent(JabRefFrame frame, BasePanel panel, FieldEditor editor, Set<FieldContentSelector> contentSelectors, StoreFieldAction storeFieldAction) {
FieldContentSelector ws = new FieldContentSelector(frame, panel, frame, editor, storeFieldAction, false, InternalBibtexFields.getFieldProperties(editor.getFieldName()).contains(FieldProperty.PERSON_NAMES) ? " and " : ", ");
contentSelectors.add(ws);
return Optional.of(ws);
}
Aggregations