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
|
|
10
|
package eu.etaxonomy.taxeditor.singlesource.editor.name.container;
|
11
|
|
12
|
import javax.naming.OperationNotSupportedException;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
import org.eclipse.ui.forms.IManagedForm;
|
16
|
|
17
|
/**
|
18
|
* Checks whether the ScrolledForm a TextViewer is on needs to be
|
19
|
* redrawn because of a new line break or the removal of an existing
|
20
|
* one ...
|
21
|
* <p>
|
22
|
* ... in theory, anyway. Until I figure out how to detect a word wrap,
|
23
|
* the ScrolledForm is redrawn with every modify event.
|
24
|
*
|
25
|
* @author p.ciardelli
|
26
|
* @created 19.05.2008
|
27
|
* @version 1.0
|
28
|
*/
|
29
|
public class LineWrapSupportFacadeImpl extends LineWrapSupportFacade {
|
30
|
private static final Logger logger = Logger
|
31
|
.getLogger(LineWrapSupportFacadeImpl.class);
|
32
|
|
33
|
public LineWrapSupportFacadeImpl() {
|
34
|
}
|
35
|
|
36
|
public LineWrapSupportFacadeImpl(NameViewerFacade viewer, IManagedForm form) {
|
37
|
}
|
38
|
|
39
|
protected Object getInstanceInternal(NameViewerFacade viewer, IManagedForm form) throws OperationNotSupportedException {
|
40
|
throw new OperationNotSupportedException("Line Wrapping not supported !");
|
41
|
}
|
42
|
|
43
|
}
|