blob: d4dda9ee7f276b77ca36210d9c30b64d8844fe67 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* 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:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.ats.artifact;
import org.eclipse.osee.ats.AtsPlugin;
import org.eclipse.osee.framework.db.connection.exception.OseeCoreException;
import org.eclipse.osee.framework.logging.OseeLevel;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.ui.skynet.ArtifactLabelProvider;
/**
* @author Donald G. Dunne
*/
public class TeamWorkflowLabelProvider extends ArtifactLabelProvider {
/**
*
*/
public TeamWorkflowLabelProvider() {
super();
}
/* (non-Javadoc)
* @see org.eclipse.osee.framework.ui.skynet.ArtifactLabelProvider#getText(java.lang.Object)
*/
@Override
public String getText(Object element) {
TeamWorkFlowArtifact wf = (TeamWorkFlowArtifact) element;
try {
return wf.getTeamTitle();
} catch (OseeCoreException ex) {
OseeLog.log(AtsPlugin.class, OseeLevel.SEVERE_POPUP, ex);
return "Exception: " + ex.getLocalizedMessage();
}
}
}