@@ -101,9 +101,7 @@ public static ContextMenu create(BibEntryTableViewModel entry,
101
101
extractFileReferencesOffline ,
102
102
103
103
factory .createMenuItem (StandardActions .OPEN_URL , new OpenUrlAction (dialogService , stateManager , preferences )),
104
- factory .createMenuItem (StandardActions .SEARCH_SHORTSCIENCE , new SearchShortScienceAction (dialogService , stateManager , preferences )),
105
- factory .createMenuItem (StandardActions .SEARCH_GOOGLE_SCHOLAR , new SearchGoogleScholarAction (dialogService , stateManager , preferences )),
106
-
104
+ createSearchSubMenu (factory , dialogService , stateManager , preferences ),
107
105
new SeparatorMenuItem (),
108
106
109
107
new ChangeEntryTypeMenu (libraryTab .getSelectedEntries (), libraryTab .getBibDatabaseContext (), undoManager , entryTypesManager ).asSubMenu (),
@@ -220,4 +218,16 @@ private static Menu createSendSubMenu(ActionFactory factory,
220
218
221
219
return sendMenu ;
222
220
}
221
+
222
+ private static Menu createSearchSubMenu (ActionFactory factory ,
223
+ DialogService dialogService ,
224
+ StateManager stateManager ,
225
+ GuiPreferences preferences ) {
226
+ Menu searchMenu = factory .createMenu (StandardActions .SEARCH );
227
+ searchMenu .getItems ().addAll (
228
+ factory .createMenuItem (StandardActions .SEARCH_SHORTSCIENCE , new SearchShortScienceAction (dialogService , stateManager , preferences )),
229
+ factory .createMenuItem (StandardActions .SEARCH_GOOGLE_SCHOLAR , new SearchGoogleScholarAction (dialogService , stateManager , preferences ))
230
+ );
231
+ return searchMenu ;
232
+ }
223
233
}
0 commit comments