From 752712407b36c7e2a97072215e03a8ee51dbccc8 Mon Sep 17 00:00:00 2001 From: Patrick Plitzner
BulkEditorPropertyTester class.
- * * @author p.ciardelli * @created 21.09.2009 * @version 1.0 @@ -43,16 +41,13 @@ public class BulkEditorPropertyTester extends PropertyTester { 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(); @@ -74,16 +69,10 @@ public class BulkEditorPropertyTester extends PropertyTester { } 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; } } -- 2.34.1