832645c8f4fbd81f9cfb6ab319e32ddb29eab61e
[public/netxms.git] / src / java / netxms-eclipse / DataCollection / src / org / netxms / ui / eclipse / datacollection / DciSummaryTablePropertyTester.java
1 package org.netxms.ui.eclipse.datacollection;
2
3 import org.eclipse.core.expressions.PropertyTester;
4 import org.netxms.client.datacollection.DciSummaryTable;
5
6 public class DciSummaryTablePropertyTester extends PropertyTester
7 {
8 /* (non-Javadoc)
9 * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
10 */
11 @Override
12 public boolean test(Object receiver, String property, Object[] args, Object expectedValue)
13 {
14 if (!(receiver instanceof DciSummaryTable))
15 return false;
16
17 if (property.equals("isSingleValue"))
18 return ((DciSummaryTable)receiver).isSingleValue();
19
20 return false;
21 }
22
23 }