Project

General

Profile

Download (1.39 KB) Statistics
| Branch: | Tag: | Revision:
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.molecular.editor;
10

    
11

    
12
import info.bioinfweb.libralign.dataarea.implementations.pherogram.PherogramArea;
13
import info.bioinfweb.tic.input.TICMouseAdapter;
14
import info.bioinfweb.tic.input.TICMouseEvent;
15

    
16

    
17

    
18
/**
19
 * Listens to mouse events on data areas displaying a pherogram in {@link AlignmentEditor}.
20
 *
21
 * @author Ben Stöver
22
 * @date 25.11.2014
23
 */
24
public class PherogramMouseListener extends TICMouseAdapter {
25
	private final PherogramArea area;
26

    
27

    
28
	public PherogramMouseListener(PherogramArea area) {
29
		super();
30
		this.area = area;
31
	}
32

    
33

    
34
	@Override
35
	public boolean mousePressed(TICMouseEvent event) {
36
//		if (event.getClickCount() == 2) {  // Double click
37
//			try {
38
			    //FIXME E4 implement double click functionality
39
//			    ShowPherogramHandler.showPherogram(area.getModel());
40
//			}
41
//			catch (PartInitException e) {
42
//                MessagingUtils.errorDialog(Messages.PherogramMouseListener_UNABLE_TO_CREATE_VIEW, null, e.getLocalizedMessage(),
43
//                        TaxeditorMolecularPlugin.PLUGIN_ID,  e, false);  //TODO set pluginID
44
//			}
45
//            return true;
46
//		}
47
//		else {
48
		    return false;
49
//		}
50
	}
51
}
(3-3/3)