TabDropTargetAdapter.java

1
package com.jsql.view.swing.tab.dnd;
2
3
import java.awt.*;
4
import java.awt.dnd.DropTargetAdapter;
5
import java.awt.dnd.DropTargetDragEvent;
6
import java.awt.dnd.DropTargetDropEvent;
7
import java.awt.dnd.DropTargetEvent;
8
9
public class TabDropTargetAdapter extends DropTargetAdapter {
10
    
11
    private void clearDropLocationPaint(Component c) {
12
        
13 1 1. clearDropLocationPaint : negated conditional → NO_COVERAGE
        if (c instanceof DnDTabbedPane) {
14
            
15
            DnDTabbedPane t = (DnDTabbedPane) c;
16 1 1. clearDropLocationPaint : removed call to com/jsql/view/swing/tab/dnd/DnDTabbedPane::setDropLocation → NO_COVERAGE
            t.setDropLocation(null, false);
17 1 1. clearDropLocationPaint : removed call to com/jsql/view/swing/tab/dnd/DnDTabbedPane::setCursor → NO_COVERAGE
            t.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
18
        }
19
    }
20
    
21
    @Override
22
    public void drop(DropTargetDropEvent dtde) {
23
        
24
        var c = dtde.getDropTargetContext().getComponent();
25 1 1. drop : removed call to com/jsql/view/swing/tab/dnd/TabDropTargetAdapter::clearDropLocationPaint → NO_COVERAGE
        this.clearDropLocationPaint(c);
26
    }
27
    
28
    @Override
29
    public void dragExit(DropTargetEvent dte) {
30
        
31
        var c = dte.getDropTargetContext().getComponent();
32 1 1. dragExit : removed call to com/jsql/view/swing/tab/dnd/TabDropTargetAdapter::clearDropLocationPaint → NO_COVERAGE
        this.clearDropLocationPaint(c);
33
    }
34
    
35
    @Override
36
    public void dragEnter(DropTargetDragEvent dtde) {
37
        dtde.getDropTargetContext().getComponent();
38
    }
39
}

Mutations

13

1.1
Location : clearDropLocationPaint
Killed by : none
negated conditional → NO_COVERAGE

16

1.1
Location : clearDropLocationPaint
Killed by : none
removed call to com/jsql/view/swing/tab/dnd/DnDTabbedPane::setDropLocation → NO_COVERAGE

17

1.1
Location : clearDropLocationPaint
Killed by : none
removed call to com/jsql/view/swing/tab/dnd/DnDTabbedPane::setCursor → NO_COVERAGE

25

1.1
Location : drop
Killed by : none
removed call to com/jsql/view/swing/tab/dnd/TabDropTargetAdapter::clearDropLocationPaint → NO_COVERAGE

32

1.1
Location : dragExit
Killed by : none
removed call to com/jsql/view/swing/tab/dnd/TabDropTargetAdapter::clearDropLocationPaint → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1