1
|
/**
|
2
|
* Copyright (C) 2018 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.editor.view.checklist.e4;
|
10
|
|
11
|
import org.eclipse.jface.viewers.ComboBoxViewerCellEditor;
|
12
|
import org.eclipse.swt.widgets.Composite;
|
13
|
|
14
|
/**
|
15
|
* @author k.luther
|
16
|
* @since 28.09.2018
|
17
|
*
|
18
|
*/
|
19
|
public class DistributionStatusComboBoxViewerCellEditor extends ComboBoxViewerCellEditor {
|
20
|
|
21
|
/**
|
22
|
* @param parent
|
23
|
*/
|
24
|
public DistributionStatusComboBoxViewerCellEditor(Composite parent, int style) {
|
25
|
super(parent, style);
|
26
|
}
|
27
|
|
28
|
@Override
|
29
|
protected void focusLost() {
|
30
|
this.getViewer().setSelection(null, true);
|
31
|
if (this.getViewer().getCCombo() != null){
|
32
|
this.getViewer().getCCombo().deselectAll();
|
33
|
}
|
34
|
}
|
35
|
|
36
|
@Override
|
37
|
protected boolean dependsOnExternalFocusListener() {
|
38
|
return false;
|
39
|
}
|
40
|
|
41
|
|
42
|
|
43
|
|
44
|
|
45
|
}
|