Project

General

Profile

Revision 0d98b044

ID0d98b044d33a74fbae59b9a8a2d4c4f3851ef342
Parent d3d62292
Child 6b8b51a2

Added by Patrick Plitzner over 1 year ago

ref #8011 Remove debug listener

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/search/facet/term/TermSearchResultComposite.java
13 13
import org.eclipse.swt.SWT;
14 14
import org.eclipse.swt.events.DragDetectEvent;
15 15
import org.eclipse.swt.events.DragDetectListener;
16
import org.eclipse.swt.events.FocusEvent;
17
import org.eclipse.swt.events.FocusListener;
18
import org.eclipse.swt.events.MouseEvent;
19
import org.eclipse.swt.events.MouseListener;
20 16
import org.eclipse.swt.layout.GridData;
21 17
import org.eclipse.swt.layout.GridLayout;
22 18
import org.eclipse.swt.widgets.Button;
......
67 63
        label.setText(result.getContent().getRepresentation_L10n());
68 64
        label.setFont(JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT));
69 65
        GridDataFactory.fillDefaults().applyTo(label);
70
        label.addFocusListener(new FocusListener() {
71

  
72
            @Override
73
            public void focusLost(FocusEvent e) {
74
                System.out.println("focusLost");
75
            }
76

  
77
            @Override
78
            public void focusGained(FocusEvent e) {
79
                System.out.println("focusGained");
80
            }
81
        });
82 66
        label.addDragDetectListener(new DragDetectListener() {
83 67

  
84 68
            @Override
......
86 70
                System.out.println("dragDetected");
87 71
            }
88 72
        });
89
        label.addMouseListener(new MouseListener() {
90

  
91
            @Override
92
            public void mouseUp(MouseEvent e) {
93
                System.out.println("mouseUp");
94
                isSelected = !isSelected;
95
            }
96

  
97

  
98
            @Override
99
            public void mouseDown(MouseEvent e) {
100
            }
101

  
102
            @Override
103
            public void mouseDoubleClick(MouseEvent e) {
104
                System.out.println("mouseDoubleClick");
105
            }
106
        });
107 73

  
108 74
        Label lblDescription = new Label(composite_1, SWT.NONE);
109 75
        String representation_L10n_text = result.getContent().getRepresentation_L10n_text();
......
112 78
        }
113 79
    }
114 80

  
115
    public boolean isSelected() {
116
        return isSelected;
117
    }
118

  
119 81
    public TermSearchResult getResult() {
120 82
        return result;
121 83
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)