• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

link-intersystems / lis-commons / #264

05 Nov 2023 11:38AM UTC coverage: 88.527% (-1.3%) from 89.804%
#264

Pull #7

renelink
Added tests.
Pull Request #7: Migrated swing-view stuff from java-swing-mvc-plugin-architecture.

249 of 400 new or added lines in 23 files covered. (62.25%)

7639 of 8629 relevant lines covered (88.53%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lis-commons-swing-view/src/main/java/com/link_intersystems/swing/view/action/ViewInstallAction.java
1
package com.link_intersystems.swing.view.action;
2

3
import com.link_intersystems.swing.view.View;
4
import com.link_intersystems.swing.view.ViewSite;
5

6
import javax.swing.*;
7
import java.awt.event.ActionEvent;
8
import java.util.function.Supplier;
9

10
import static java.util.Objects.requireNonNull;
11

12
public class ViewInstallAction extends AbstractAction {
13

14
    private final Supplier<ViewSite> viewSiteSupplier;
15
    private final Supplier<View> viewSupplier;
16

17
    private View view;
18

NEW
19
    public ViewInstallAction(Supplier<ViewSite> viewSiteSupplier, Supplier<View> viewSupplier) {
×
NEW
20
        this.viewSiteSupplier = requireNonNull(viewSiteSupplier);
×
NEW
21
        this.viewSupplier = requireNonNull(viewSupplier);
×
NEW
22
    }
×
23

24
    @Override
25
    public void actionPerformed(ActionEvent e) {
NEW
26
        view = viewSupplier.get();
×
NEW
27
        view.install(viewSiteSupplier.get());
×
NEW
28
    }
×
29

30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc