Project

General

Profile

« Previous | Next » 

Revision 75271240

Added by Patrick Plitzner over 5 years ago

Trim code

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/command/BulkEditorPropertyTester.java
22 22
import eu.etaxonomy.taxeditor.bulkeditor.input.TaxonEditorInput;
23 23

  
24 24
/**
25
 * <p>BulkEditorPropertyTester class.</p>
26
 *
27 25
 * @author p.ciardelli
28 26
 * @created 21.09.2009
29 27
 * @version 1.0
......
43 41
    public static final String IS_PERSON = "isPerson";
44 42
    public static final String IS_TEAM = "isTeam";
45 43
    public static final String IS_MEDIA_EDITOR = "isMediaEditor";
46
	/* (non-Javadoc)
47
	 * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
48
	 */
49
	/** {@inheritDoc} */
44

  
45
    /** {@inheritDoc} */
50 46
	@Override
51 47
    public boolean test(Object receiver, String property, Object[] args,
52 48
			Object expectedValue) {
53 49
		BulkEditor bulkEditor = null;
54 50

  
55

  
56 51
		bulkEditor = (BulkEditor) receiver;
57 52
		if (IS_MERGING_ENABLED.equals(property)) {
58 53
			IEditorInput input = bulkEditor.getEditorInput();
......
74 69
		}
75 70
        else if(IS_TAXON_EDITOR.equals(property)){
76 71
            return bulkEditor.getEditorInput() instanceof TaxonEditorInput;
77
        } else if(IS_MEDIA_EDITOR.equals(property)){
72
        }
73
        else if(IS_MEDIA_EDITOR.equals(property)){
78 74
            return bulkEditor.getEditorInput() instanceof MediaEditorInput;
79 75
        }
80

  
81
//		if (("isPublishFlagEditingEnabled").equals(property)) {
82
//			IEditorInput input = bulkEditor.getEditorInput();
83
//			if (input instanceof NameEditorInput) {
84
//				return ((NameEditorInput) input).isPublishFlagEnabled();
85
//			}
86
//		}
87 76
		return false;
88 77
	}
89 78
}

Also available in: Unified diff