protected String getFullyQualifiedName(EObject eobj) { return ((ConverterClassType)eobj).getTextContent(); }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getText(Object object) { String label = ((ConverterClassType)object).getId(); return label == null || label.length() == 0 ? getString("_UI_ConverterClassType_type") : getString("_UI_ConverterClassType_type") + " " + label; }
/** * Creates a {@link ConverterType} instance. * * @param name Base name of converter from which converter-id and * converter-class are formed. * @return {@link ConverterType} instance. */ protected ConverterType createConverter(String name) { ConverterType converterType = FacesConfigFactory.eINSTANCE.createConverterType(); //set converter-id ConverterIdType converterIdType = FacesConfigFactory.eINSTANCE.createConverterIdType(); StringBuffer sb = new StringBuffer(); sb.append("javax.faces."); //$NON-NLS-1$ sb.append(name); converterIdType.setTextContent(sb.toString()); converterType.setConverterId(converterIdType); //set converter-class ConverterClassType converterClassType = FacesConfigFactory.eINSTANCE.createConverterClassType(); sb = new StringBuffer(); sb.append("javax.faces.convert."); //$NON-NLS-1$ sb.append(name); sb.append("Converter"); //$NON-NLS-1$ converterClassType.setTextContent(sb.toString()); converterType.setConverterClass(converterClassType); return converterType; }
public String getColumnText(Object object, int columnIndex) { ConverterType converter = (ConverterType) object; switch (columnIndex) { case 0: return getText(object); case 1: return converter.getConverterClass() == null ? "" : converter .getConverterClass().getTextContent(); } return null; }