blob: 0637c9731770a66383464d7aaf29ae76c0f79010 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Pierre Allard,
* Regent L'Archeveque - initial API and implementation
*
* SPDX-License-Identifier: EPL-1.0
*
*******************************************************************************/
package org.eclipse.apogy.common.geometry.data3d.ui.commands;
import org.eclipse.apogy.common.geometry.data3d.CartesianCoordinatesSet;
import org.eclipse.core.expressions.PropertyTester;
public class CartesianCoordinatesSetPropertyTester extends PropertyTester {
@Override
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
CartesianCoordinatesSet coordinatesSet = (CartesianCoordinatesSet) receiver;
if (property.equals("pointsNotEmpty")) {
return coordinatesSet.getPoints().size() > 0;
} else {
return false;
}
}
}