Merge branch 'release/5.19.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / checklist / edit / CdmComboBoxViewerCellEditor.java
1 /**
2 * Copyright (C) 2007 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.edit;
10
11 import org.eclipse.e4.ui.model.application.ui.basic.MPart;
12 import org.eclipse.e4.ui.workbench.modeling.ISelectionListener;
13 import org.eclipse.jface.viewers.ComboBoxViewerCellEditor;
14 import org.eclipse.swt.widgets.Composite;
15
16 import eu.etaxonomy.taxeditor.model.IPartContentHasDetails;
17 /**
18 * <p>
19 * CdmComboBoxViewerCellEditor class.
20 * </p>
21 *
22 * @author k.luther
23 * @created 26.09.2017
24 */
25 public class CdmComboBoxViewerCellEditor extends ComboBoxViewerCellEditor implements ISelectionListener, IPartContentHasDetails{
26
27 public CdmComboBoxViewerCellEditor(Composite parent, int style) {
28 super(parent, style);
29 }
30
31 @Override
32 public void selectionChanged(MPart part, Object selection) {
33 System.out.println(selection.toString());
34
35 }
36 }