/******************************************************************************* * Copyright (c) 2009 the CHISEL group and contributors. * 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: * the CHISEL group - initial API and implementation *******************************************************************************/ package ca.uvic.chisel.javasketch.ui.internal.presentation.properties; import org.eclipse.jface.viewers.IFilter; import ca.uvic.chisel.javasketch.IProgramSketch; import ca.uvic.chisel.javasketch.data.model.ITraceModel; /** * @author Del Myers * */ public class PropertiesFilter implements IFilter { /* (non-Javadoc) * @see org.eclipse.jface.viewers.IFilter#select(java.lang.Object) */ @Override public boolean select(Object toTest) { return (toTest instanceof ITraceModel) || (toTest instanceof IProgramSketch); } }