1 |
329facb4
|
n.hoffmann
|
/**
|
2 |
|
|
*
|
3 |
|
|
*/
|
4 |
|
|
package eu.etaxonomy.taxeditor.editor;
|
5 |
|
|
|
6 |
|
|
import org.eclipse.core.runtime.IAdapterFactory;
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
f2870043
|
n.hoffmann
|
* TODO remove this class
|
10 |
329facb4
|
n.hoffmann
|
*
|
11 |
3be6ef3e
|
n.hoffmann
|
* @author n.hoffmann
|
12 |
|
|
* @version $Id: $
|
13 |
329facb4
|
n.hoffmann
|
*/
|
14 |
|
|
public class MultiPageTaxonEditorAdapterFactory implements IAdapterFactory {
|
15 |
|
|
|
16 |
|
|
/* (non-Javadoc)
|
17 |
|
|
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapter(java.lang.Object, java.lang.Class)
|
18 |
|
|
*/
|
19 |
3be6ef3e
|
n.hoffmann
|
/** {@inheritDoc} */
|
20 |
329facb4
|
n.hoffmann
|
public Object getAdapter(Object adaptableObject, Class adapterType) {
|
21 |
|
|
|
22 |
f2870043
|
n.hoffmann
|
// if((adaptableObject instanceof MultiPageTaxonEditor) && adapterType.equals(DuplicateArbitrator.class)){
|
23 |
|
|
// return null;// new DuplicateArbitrator((MultiPageTaxonEditor) adaptableObject);
|
24 |
|
|
// }
|
25 |
329facb4
|
n.hoffmann
|
|
26 |
|
|
return null;
|
27 |
|
|
}
|
28 |
|
|
|
29 |
|
|
/* (non-Javadoc)
|
30 |
|
|
* @see org.eclipse.core.runtime.IAdapterFactory#getAdapterList()
|
31 |
|
|
*/
|
32 |
3be6ef3e
|
n.hoffmann
|
/**
|
33 |
|
|
* <p>getAdapterList</p>
|
34 |
|
|
*
|
35 |
|
|
* @return an array of {@link java.lang.Class} objects.
|
36 |
|
|
*/
|
37 |
329facb4
|
n.hoffmann
|
public Class[] getAdapterList() {
|
38 |
|
|
return new Class[]{
|
39 |
f2870043
|
n.hoffmann
|
// DuplicateArbitrator.class
|
40 |
329facb4
|
n.hoffmann
|
};
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
}
|