1
|
/**
|
2
|
*
|
3
|
*/
|
4
|
package eu.etaxonomy.taxeditor.singlesource.org.eclipse.jface.text;
|
5
|
|
6
|
import javax.naming.OperationNotSupportedException;
|
7
|
|
8
|
import org.apache.log4j.Logger;
|
9
|
|
10
|
import eu.etaxonomy.taxeditor.singlesource.ImplementationLoader;
|
11
|
import eu.etaxonomy.taxeditor.singlesource.editor.key.polytomous.IPolytomousKeyListLabelProvider;
|
12
|
import eu.etaxonomy.taxeditor.singlesource.editor.key.polytomous.PolytomousKeyListLabelProviderFacade;
|
13
|
|
14
|
/**
|
15
|
* @author lusu
|
16
|
*
|
17
|
*/
|
18
|
public abstract class PositionFacade implements IPosition {
|
19
|
private static final Logger logger = Logger.getLogger(PositionFacade.class);
|
20
|
|
21
|
private final static IPosition IMPL;
|
22
|
static {
|
23
|
IMPL = (IPosition)ImplementationLoader.newInstance(PositionFacade.class) ;
|
24
|
}
|
25
|
|
26
|
protected PositionFacade() {
|
27
|
}
|
28
|
|
29
|
public static IPosition getInstance () throws OperationNotSupportedException {
|
30
|
return (IPosition)IMPL.getInstanceInternal();
|
31
|
}
|
32
|
|
33
|
public abstract Object getInstanceInternal();
|
34
|
|
35
|
public static IPosition getInstance (Integer offset) throws OperationNotSupportedException {
|
36
|
return (IPosition)IMPL.getInstanceInternal(offset);
|
37
|
}
|
38
|
|
39
|
public abstract Object getInstanceInternal(Integer offset);
|
40
|
|
41
|
public static IPosition getInstance (Integer offset, Integer length) throws OperationNotSupportedException {
|
42
|
return (IPosition)IMPL.getInstanceInternal(offset, length);
|
43
|
}
|
44
|
|
45
|
public abstract Object getInstanceInternal(Integer offset, Integer length);
|
46
|
}
|