use of fr.gouv.mindef.safran.graalextensions.DrawbacksLevel in project InformationSystem by ObeoNetwork.
the class RiskItemProvider method getText.
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public String getText(Object object) {
Risk riskObject = (Risk) object;
BenefitsLevel benefitsValue = riskObject.getBenefits();
String benefitsLabel = benefitsValue == null ? "" : benefitsValue.toString();
DrawbacksLevel drawbacksValue = riskObject.getDrawbacks();
String drawbacksLabel = drawbacksValue == null ? "" : drawbacksValue.toString();
RiskLevel riskValue = riskObject.getRisk();
String riskLabel = riskValue == null ? "" : riskValue.toString();
String label = benefitsLabel + "/" + drawbacksLabel + "/" + riskLabel;
return label == null || label.length() == 0 ? getString("_UI_Risk_type") : getString("_UI_Risk_type") + " " + label;
}
Aggregations