import org.apache.log4j.Logger;
import org.eclipse.core.expressions.PropertyTester;
-
import org.eclipse.ui.IEditorInput;
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor;
private static final String IS_MERGING_ENABLED = "isMergingEnabled";
- private static final String IS_GROUP_EDITOR = "isGroupEditor";
+ public static final String IS_GROUP_EDITOR = "isGroupEditor";
public static final String IS_DERIVED_UNIT_EDITOR = "isDerivedUnitEditor";
public static final String IS_TAXON_EDITOR = "isTaxonEditor";
public static final String IS_CONVERT_ENABLED = "isConvertingEnabled";
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;
}
-
+
// if (("isPublishFlagEditingEnabled").equals(property)) {
// IEditorInput input = bulkEditor.getEditorInput();
// if (input instanceof NameEditorInput) {
style="push">
<visibleWhen>
<reference
- definitionId="isGroup">
+ definitionId="isGroupEditor">
</reference>
</visibleWhen>
</command>
</with>
</definition>
<definition
- id="isGroup">
+ id="isGroupEditor">
<with
variable="activeEditor">
<test
- property="taxeditor-bulkeditor.propertyTester.isGroup">
+ property="taxeditor-bulkeditor.propertyTester.isGroupEditor">
</test>
</with>
</definition>
class="eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorPropertyTester"
id="taxeditor-bulkeditor.PropertyTester"
namespace="taxeditor-bulkeditor.propertyTester"
- properties="isGroup"
+ properties="isGroupEditor"
type="eu.etaxonomy.taxeditor.bulkeditor.BulkEditor">
</propertyTester>
</extension>