/*******************************************************************************
* Copyright (c) 2013 hangum.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v2.1
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
* Contributors:
* hangum - initial API and implementation
******************************************************************************/
package com.hangum.tadpole.rdb.core.actions.adapter.resource;
import org.eclipse.ui.IActionFilter;
import com.hangum.tadpole.engine.query.dao.system.UserDBResourceDAO;
/**
* resource type adapter
*
* @author hangum
*
*/
public class ResourceTypeActionFilterAdapter implements IActionFilter {
// /**
// * Logger for this class
// */
// private static final Logger logger = Logger.getLogger(ResourceTypeActionFilterAdapter.class);
// private static final Object MYOBJECT_TYPE = "type";
@Override
public boolean testAttribute(Object target, String name, String value) {
if (target instanceof UserDBResourceDAO) {
// if(MYOBJECT_TYPE.equals(name)) {
// return true;
// }
return true;
}
return false;
}
}