19
19
import org .jabref .gui .push .PushToApplication ;
20
20
import org .jabref .gui .push .PushToApplicationSettings ;
21
21
import org .jabref .gui .push .PushToApplicationSettingsDialog ;
22
- import org .jabref .gui .push .PushToApplicationsManager ;
23
22
import org .jabref .gui .util .FileDialogConfiguration ;
24
23
import org .jabref .logic .l10n .Localization ;
25
24
import org .jabref .logic .util .OS ;
28
27
29
28
class ExternalTab implements PrefsTab {
30
29
30
+ private final JabRefFrame frame ;
31
31
private final JabRefPreferences prefs ;
32
32
private final TextField emailSubject ;
33
33
private final TextField citeCommand ;
@@ -54,6 +54,7 @@ class ExternalTab implements PrefsTab {
54
54
55
55
public ExternalTab (JabRefFrame frame , PreferencesDialog prefsDiag , JabRefPreferences prefs ) {
56
56
this .prefs = prefs ;
57
+ this .frame = frame ;
57
58
dialogService = frame .getDialogService ();
58
59
builder .setVgap (7 );
59
60
@@ -197,7 +198,7 @@ public Node getBuilder() {
197
198
}
198
199
199
200
private void addSettingsButton (final PushToApplication application , GridPane panel , int index ) {
200
- PushToApplicationSettings settings = PushToApplicationsManager .getSettings (application );
201
+ PushToApplicationSettings settings = frame . getPushApplications () .getSettings (application );
201
202
Button button = new Button (Localization .lang ("Settings for %0" , application .getApplicationName ()));
202
203
button .setPrefSize (150 , 20 );
203
204
button .setOnAction (e -> PushToApplicationSettingsDialog .showSettingsDialog (dialogService , settings , index ));
0 commit comments