1
|
package eu.etaxonomy.taxeditor.editor.singlesource.name.container;
|
2
|
|
3
|
import javax.naming.OperationNotSupportedException;
|
4
|
|
5
|
import org.eclipse.jface.viewers.Viewer;
|
6
|
import org.eclipse.ui.forms.IManagedForm;
|
7
|
|
8
|
import eu.etaxonomy.taxeditor.singlesource.ImplementationLoader;
|
9
|
|
10
|
/**
|
11
|
* @author lusu
|
12
|
*
|
13
|
*/
|
14
|
public class LineWrapSupportFacade {
|
15
|
|
16
|
protected ILineWrapSupport IMPL;
|
17
|
|
18
|
public LineWrapSupportFacade(NameViewerFacade viewer, IManagedForm form) throws OperationNotSupportedException {
|
19
|
try {
|
20
|
IMPL = (ILineWrapSupport)ImplementationLoader.newInstance(LineWrapSupportFacade.class, viewer, form);
|
21
|
} catch (ClassNotFoundException e) {
|
22
|
throw new OperationNotSupportedException("No implementation for " + getClass() + "available.");
|
23
|
}
|
24
|
}
|
25
|
}
|