import eu.etaxonomy.taxeditor.bulkeditor.input.TaxonEditorInput;
/**
- * <p>BulkEditorPropertyTester class.</p>
- *
* @author p.ciardelli
* @created 21.09.2009
* @version 1.0
public static final String IS_PERSON = "isPerson";
public static final String IS_TEAM = "isTeam";
public static final String IS_MEDIA_EDITOR = "isMediaEditor";
- /* (non-Javadoc)
- * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
- */
- /** {@inheritDoc} */
+
+ /** {@inheritDoc} */
@Override
public boolean test(Object receiver, String property, Object[] args,
Object expectedValue) {
BulkEditor bulkEditor = null;
-
bulkEditor = (BulkEditor) receiver;
if (IS_MERGING_ENABLED.equals(property)) {
IEditorInput input = bulkEditor.getEditorInput();
}
else if(IS_TAXON_EDITOR.equals(property)){
return bulkEditor.getEditorInput() instanceof TaxonEditorInput;
- } else if(IS_MEDIA_EDITOR.equals(property)){
+ }
+ else if(IS_MEDIA_EDITOR.equals(property)){
return bulkEditor.getEditorInput() instanceof MediaEditorInput;
}
-
-// if (("isPublishFlagEditingEnabled").equals(property)) {
-// IEditorInput input = bulkEditor.getEditorInput();
-// if (input instanceof NameEditorInput) {
-// return ((NameEditorInput) input).isPublishFlagEnabled();
-// }
-// }
return false;
}
}