Revision 122dd667
Added by Lutz Suhrbier over 12 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/singlesource/editor/name/container/LineWrapSupportFacade.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import javax.naming.OperationNotSupportedException; |
4 | 4 |
|
5 |
import org.apache.log4j.Logger; |
|
5 | 6 |
import org.eclipse.ui.forms.IManagedForm; |
6 | 7 |
|
8 |
import eu.etaxonomy.taxeditor.editor.name.container.AbstractGroupedContainer; |
|
7 | 9 |
import eu.etaxonomy.taxeditor.singlesource.ImplementationLoader; |
8 | 10 |
|
9 | 11 |
/** |
10 | 12 |
* @author lusu |
11 | 13 |
* |
12 | 14 |
*/ |
13 |
public class LineWrapSupportFacade { |
|
14 |
|
|
15 |
protected ILineWrapSupport IMPL; |
|
15 |
public abstract class LineWrapSupportFacade implements ILineWrapSupport { |
|
16 |
private static final Logger logger = Logger |
|
17 |
.getLogger(LineWrapSupportFacade.class); |
|
18 |
|
|
19 |
private final static LineWrapSupportFacade IMPL; |
|
16 | 20 |
|
17 |
public LineWrapSupportFacade(NameViewerFacade viewer, IManagedForm form) { |
|
18 |
IMPL = (ILineWrapSupport)ImplementationLoader.newInstance(LineWrapSupportFacade.class, viewer, form); |
|
21 |
static { |
|
22 |
IMPL = (LineWrapSupportFacade)ImplementationLoader.newInstance(LineWrapSupportFacade.class) ; |
|
23 |
} |
|
24 |
|
|
25 |
protected LineWrapSupportFacade () { |
|
19 | 26 |
} |
27 |
|
|
28 |
public static LineWrapSupportFacade getInstance (NameViewerFacade viewer, IManagedForm form) throws OperationNotSupportedException { |
|
29 |
return (LineWrapSupportFacade)IMPL.getInstanceInternal(viewer, form); |
|
30 |
} |
|
31 |
|
|
32 |
protected abstract Object getInstanceInternal(NameViewerFacade viewer, IManagedForm form) throws OperationNotSupportedException; |
|
33 |
|
|
20 | 34 |
} |
Also available in: Unified diff
Enabled Polytomous Keys for RAP