Revision 8481f952
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/command/BulkEditorPropertyTester.java | ||
---|---|---|
40 | 40 |
public static final String IS_TEAM = "isTeam"; |
41 | 41 |
public static final String IS_MEDIA_EDITOR = "isMediaEditor"; |
42 | 42 |
|
43 |
/** {@inheritDoc} */ |
|
44 | 43 |
@Override |
45 | 44 |
public boolean test(Object receiver, String property, Object[] args, |
46 | 45 |
Object expectedValue) { |
... | ... | |
48 | 47 |
|
49 | 48 |
bulkEditor = (BulkEditorE4) receiver; |
50 | 49 |
if (IS_MERGING_ENABLED.equals(property)) { |
51 |
AbstractBulkEditorInput input = bulkEditor.getEditorInput(); |
|
50 |
AbstractBulkEditorInput<?> input = bulkEditor.getEditorInput();
|
|
52 | 51 |
return ((AbstractBulkEditorInput<?>) input).isMergingEnabled(); |
53 | 52 |
} |
54 | 53 |
if (IS_CONVERT_ENABLED.equals(property)) { |
55 |
AbstractBulkEditorInput input = bulkEditor.getEditorInput(); |
|
54 |
AbstractBulkEditorInput<?> input = bulkEditor.getEditorInput();
|
|
56 | 55 |
return ((AbstractBulkEditorInput<?>) input).isConvertingEnabled(); |
57 | 56 |
} |
58 | 57 |
else if(IS_GROUP_EDITOR.equals(property)){ |
Also available in: Unified diff
cleanup