2 package eu
.etaxonomy
.taxeditor
.bulkeditor
;
4 import eu
.etaxonomy
.taxeditor
.bulkeditor
.input
.OccurrenceEditorInput
;
6 public class PropertyTester
extends org
.eclipse
.core
.expressions
.PropertyTester
{
8 public static final String IS_DERIVED_UNIT_EDITOR
= "isDerivedUnitEditor";
11 public boolean test(Object receiver
, String property
, Object
[] args
,
12 Object expectedValue
) {
14 BulkEditor editor
= (BulkEditor
) receiver
;
16 if(IS_DERIVED_UNIT_EDITOR
.equals(property
)){
17 return editor
.getEditorInput() instanceof OccurrenceEditorInput
;