fe5333c19087d64d615d70f633bcd8b91747699f
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / PropertyTester.java
1
2 package eu.etaxonomy.taxeditor.bulkeditor;
3
4 import eu.etaxonomy.taxeditor.bulkeditor.input.OccurrenceEditorInput;
5
6 public class PropertyTester extends org.eclipse.core.expressions.PropertyTester {
7
8 public static final String IS_DERIVED_UNIT_EDITOR = "isDerivedUnitEditor";
9
10 @Override
11 public boolean test(Object receiver, String property, Object[] args,
12 Object expectedValue) {
13
14 BulkEditor editor = (BulkEditor) receiver;
15
16 if(IS_DERIVED_UNIT_EDITOR.equals(property)){
17 return editor.getEditorInput() instanceof OccurrenceEditorInput;
18 }
19
20 return false;
21 }
22
23 }