@@ -249,45 +249,45 @@ private void navigateToNextEntry() {
249249 private List <EntryEditorTab > createTabs () {
250250 entryEditorTabs .add (new PreviewTab (databaseContext , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), taskExecutor ));
251251
252- // Required, optional, deprecated, and "other" fields
252+ // Required, optional (important+detail) , deprecated, and "other" fields
253253 entryEditorTabs .add (new RequiredFieldsTab (databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), bibEntryTypesManager , taskExecutor , journalAbbreviationRepository ));
254- entryEditorTabs .add (new OptionalFieldsTab (databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), bibEntryTypesManager , taskExecutor , journalAbbreviationRepository ));
255- entryEditorTabs .add (new OptionalFields2Tab (databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), bibEntryTypesManager , taskExecutor , journalAbbreviationRepository ));
254+ entryEditorTabs .add (new ImportantOptionalFieldsTab (databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), bibEntryTypesManager , taskExecutor , journalAbbreviationRepository ));
255+ entryEditorTabs .add (new DetailOptionalFieldsTab (databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), bibEntryTypesManager , taskExecutor , journalAbbreviationRepository ));
256256 entryEditorTabs .add (new DeprecatedFieldsTab (databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), bibEntryTypesManager , taskExecutor , journalAbbreviationRepository ));
257257 entryEditorTabs .add (new OtherFieldsTab (databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), bibEntryTypesManager , taskExecutor , journalAbbreviationRepository ));
258258
259259 // Comment Tab: Tab for general and user-specific comments
260260 entryEditorTabs .add (new CommentsTab (preferencesService , databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), taskExecutor , journalAbbreviationRepository ));
261261
262- // General fields from preferences
263- // First, remove all tabs that are already handled above or below; except for the source tab (which has different titles for BibTeX and BibLaTeX mode)
262+ // The preferences allow to configure tabs to show (e.g.,"General", "Abstract")
263+ // These should be shown. Already hard-coded ones should be removed.
264264 Map <String , Set <Field >> entryEditorTabList = new HashMap <>(entryEditorPreferences .getEntryEditorTabs ());
265265 entryEditorTabList .remove (PreviewTab .NAME );
266266 entryEditorTabList .remove (RequiredFieldsTab .NAME );
267- entryEditorTabList .remove (OptionalFieldsTab .NAME );
268- entryEditorTabList .remove (OptionalFields2Tab .NAME );
267+ entryEditorTabList .remove (ImportantOptionalFieldsTab .NAME );
268+ entryEditorTabList .remove (DetailOptionalFieldsTab .NAME );
269269 entryEditorTabList .remove (DeprecatedFieldsTab .NAME );
270+ entryEditorTabList .remove (OtherFieldsTab .NAME );
270271 entryEditorTabList .remove (CommentsTab .NAME );
271272 entryEditorTabList .remove (MathSciNetTab .NAME );
272273 entryEditorTabList .remove (FileAnnotationTab .NAME );
274+ entryEditorTabList .remove (SciteTab .NAME );
275+ // CitationRelationsTab
273276 entryEditorTabList .remove (RelatedArticlesTab .NAME );
277+ // SourceTab -- not listed, because it has different names for BibTeX and biblatex mode
274278 entryEditorTabList .remove (LatexCitationsTab .NAME );
275279 entryEditorTabList .remove (FulltextSearchResultsTab .NAME );
276- entryEditorTabList .remove (SciteTab .NAME );
277- entryEditorTabList .remove ("Comments" );
278- // Then show the remaining configured
280+
279281 for (Map .Entry <String , Set <Field >> tab : entryEditorTabList .entrySet ()) {
280282 entryEditorTabs .add (new UserDefinedFieldsTab (tab .getKey (), tab .getValue (), databaseContext , libraryTab .getSuggestionProviders (), undoManager , dialogService , preferencesService , stateManager , themeManager , libraryTab .getIndexingTaskManager (), taskExecutor , journalAbbreviationRepository ));
281283 }
282284
283- // "Special" tabs
284285 entryEditorTabs .add (new MathSciNetTab ());
285286 entryEditorTabs .add (new FileAnnotationTab (libraryTab .getAnnotationCache ()));
286287 entryEditorTabs .add (new SciteTab (preferencesService , taskExecutor , dialogService ));
287288 entryEditorTabs .add (new CitationRelationsTab (entryEditorPreferences , dialogService , databaseContext ,
288289 undoManager , stateManager , fileMonitor , preferencesService , libraryTab , taskExecutor ));
289290 entryEditorTabs .add (new RelatedArticlesTab (entryEditorPreferences , preferencesService , dialogService , taskExecutor ));
290-
291291 sourceTab = new SourceTab (
292292 databaseContext ,
293293 undoManager ,
@@ -299,9 +299,7 @@ private List<EntryEditorTab> createTabs() {
299299 bibEntryTypesManager ,
300300 keyBindingRepository );
301301 entryEditorTabs .add (sourceTab );
302-
303302 entryEditorTabs .add (new LatexCitationsTab (databaseContext , preferencesService , taskExecutor , dialogService ));
304-
305303 entryEditorTabs .add (new FulltextSearchResultsTab (stateManager , preferencesService , dialogService , taskExecutor ));
306304
307305 return entryEditorTabs ;
0 commit comments