/** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @generated */ public String getText(Object object) { String label = ((IconType) object).getSmallIcon(); return label == null || label.length() == 0 ? getString("_UI_IconType_type") : //$NON-NLS-1$ getString("_UI_IconType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ }
public String getSmallIcon() { if(eResource() == null) return getSmallIconGen(); switch (getJ2EEVersionID()) { case J2EEVersionConstants.J2EE_1_2_ID : case J2EEVersionConstants.J2EE_1_3_ID : return getSmallIconGen(); case J2EEVersionConstants.J2EE_1_4_ID : default : if (getIcons().size() > 0) return ((IconType)getIcons().get(0)).getSmallIcon(); } return null; }
private static String getSmallIcon(PortComponent portComponent, boolean isJ2EE14, boolean lang) { String ret = null; if (isJ2EE14) { IconType iconType = portComponent.getIconType(); if (iconType!=null) { if (lang) { ret = iconType.getLang(); } else { ret = iconType.getSmallIcon(); } } } else //must be J2EE 1.3 (JSR-109 1.0) { if( !lang ) { ret = portComponent.getSmallIcon(); } } return ret; }
private static String getSmallIcon(WebServiceDescription webServicesDescription, boolean isJ2EE14, boolean lang) { String ret = null; if (isJ2EE14) { IconType iconType = webServicesDescription.getIconType(); if (iconType!=null) { if (lang) { ret = iconType.getLang(); } else { ret = iconType.getSmallIcon(); } } } else //must be J2EE 1.3 (JSR-109 1.0) { if( !lang) { ret = webServicesDescription.getSmallIcon(); } } return ret; }
values[i] = ((IconType)icons[i]).getSmallIcon();
/** * */ private void synchIcons() { CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget(); if (myTarget.getIcons().isEmpty()) { myTarget.setLargeIconGen(null); myTarget.setSmallIconGen(null); } else { IconType anIcon = (IconType)myTarget.getIcons().get(0); if (!anIcon.eAdapters().contains(this)) anIcon.eAdapters().add(this); else { myTarget.setLargeIconGen(anIcon.getLargeIcon()); myTarget.setSmallIconGen(anIcon.getSmallIcon()); } } }
values[i] = ((IconType)icons[i]).getSmallIcon();
public String getSmallIcon() { if(eResource() == null) return getSmallIconGen(); switch (getJ2EEVersionID()) { case J2EEVersionConstants.J2EE_1_2_ID : case J2EEVersionConstants.J2EE_1_3_ID : return getSmallIconGen(); case J2EEVersionConstants.J2EE_1_4_ID : default : if (getIconType() != null) return getIconType().getSmallIcon(); } return null; }