/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public String getText(Object object) { String label = ((ApplicationType)object).getId(); return label == null || label.length() == 0 ? getString("_UI_ApplicationType_type") : getString("_UI_ApplicationType_type") + " " + label; }
/** * @return the list of all resource bundles declared in all the FacesConfig * configurations found. */ public List getResourceBundles() { List allResourceBundles = new ArrayList(); List facesConfigs = getFacesConfigModels(); Iterator itFacesConfigs = facesConfigs.iterator(); while (itFacesConfigs.hasNext()) { FacesConfigType facesConfig = (FacesConfigType)itFacesConfigs.next(); for (final Iterator applicationIt = facesConfig.getApplication().iterator(); applicationIt.hasNext();) { ApplicationType appType = (ApplicationType) applicationIt.next(); allResourceBundles.addAll(appType.getResourceBundle()); } } return allResourceBundles; }