blob: dd7b7bd9abcafed32c5d9d9b8d4c8c6bb967bfa5 [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 IBM Corporation and others.
// 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:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.library.edit.process;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.epf.library.edit.util.TngUtil;
import org.eclipse.epf.uma.TeamProfile;
/**
* @author Phong Nguyen Le
* @since 1.0
*/
public class TeamProfileWrapperItemProvider extends
BreakdownElementWrapperItemProvider {
/**
* @param value
* @param owner
* @param adapterFactory
*/
public TeamProfileWrapperItemProvider(TeamProfile value, Object owner,
AdapterFactory adapterFactory) {
super(value, owner, adapterFactory);
}
/**
* @param value
* @param owner
* @param index
* @param feature
* @param adapterFactory
*/
public TeamProfileWrapperItemProvider(TeamProfile value, Object owner,
EStructuralFeature feature, int index, AdapterFactory adapterFactory) {
super(value, owner, feature, index, adapterFactory);
}
/*
* (non-Javadoc)
*
* @see com.ibm.library.edit.process.BreakdownElementWrapperItemProvider#getAttribute(java.lang.Object,
* java.lang.String)
*/
public String getAttribute(Object object, String property) {
if (property == IBSItemProvider.COL_TEAMS) {
return TngUtil.getPresentationName(((TeamProfile) TngUtil
.unwrap(object)).getSuperTeam());
}
return super.getAttribute(object, property);
}
}