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; }
/** * */ 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()); } } }
if (setLang) iconNew.setLang(value); iconNew.setSmallIcon(value); icon.setLang(value); icon.setSmallIcon(value);
private static String getLargeIcon(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.getLargeIcon(); } } } else //must be J2EE 1.3 (JSR-109 1.0) { if ( !lang ) { ret = portComponent.getLargeIcon(); } } return ret; }
if (setLang) iconNew.setLang(value); iconNew.setLargeIcon(value); icon.setLang(value); icon.setLargeIcon(value);
/** * 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 getLargeIcon() { if(eResource() == null) return getLargeIconGen(); switch (getJ2EEVersionID()) { case J2EEVersionConstants.J2EE_1_2_ID : case J2EEVersionConstants.J2EE_1_3_ID : return getLargeIconGen(); case J2EEVersionConstants.J2EE_1_4_ID : default : if (getIcons().size() > 0) return ((IconType)getIcons().get(0)).getLargeIcon(); } return null; }
/** * @param newLargeIcon */ protected void internalSetLargeIconInList(String newLargeIcon) { IconType newValue = null; if(getIcons().size() > 0) { newValue = (IconType) getIcons().get(0); newValue.setLargeIcon(newLargeIcon); } else { newValue = CommonFactory.eINSTANCE.createIconType(); newValue.setLargeIcon(newLargeIcon); getIcons().add(newValue); } }
/** * @param newSmallIcon */ protected void internalSetSmallIconInList(String newSmallIcon) { IconType newValue = null; if(getIcons().size() > 0) { newValue = (IconType) getIcons().get(0); newValue.setSmallIcon(newSmallIcon); } else { newValue = CommonFactory.eINSTANCE.createIconType(); newValue.setSmallIcon(newSmallIcon); getIcons().add(newValue); } }
private static String getLargeIcon(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.getLargeIcon(); } } } else //must be J2EE 1.3 (JSR-109 1.0) { if( !lang ) { ret = webServicesDescription.getLargeIcon(); } } return ret; }
if (setLang) iconNew.setLang(value); iconNew.setLargeIcon(value); icon.setLang(value); icon.setLargeIcon(value);
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; }
public String getLargeIcon() { if(eResource() == null) return getLargeIconGen(); switch (getJ2EEVersionID()) { case J2EEVersionConstants.J2EE_1_2_ID : case J2EEVersionConstants.J2EE_1_3_ID : return getLargeIconGen(); case J2EEVersionConstants.J2EE_1_4_ID : default : if (getIconType() != null) return getIconType().getLargeIcon(); } return null; }
/** * @param newLargeIcon */ protected void internalSetLargeIconType(String newLargeIcon) { IconType newValue = null; if(getIconType() != null) { newValue = getIconType(); newValue.setLargeIcon(newLargeIcon); } else { newValue = CommonFactory.eINSTANCE.createIconType(); newValue.setLargeIcon(newLargeIcon); setIconType(newValue); } }
/** * @param newSmallIcon */ protected void internalSetSmallIconType(String newSmallIcon) { IconType newValue = null; if(getIconType() != null) { newValue = getIconType(); newValue.setSmallIcon(newSmallIcon); } else { newValue = CommonFactory.eINSTANCE.createIconType(); newValue.setSmallIcon(newSmallIcon); setIconType(newValue); } }
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; }
values[i] = ((IconType)icons[i]).getLang(); values[i] = ((IconType)icons[i]).getLargeIcon();
if (setLang) iconNew.setLang(value); iconNew.setSmallIcon(value); icon.setLang(value); icon.setSmallIcon(value);
if (setLang) newIcon.setLang(value); newIcon.setLargeIcon(value); if (setLang) firstIcon.setLang(value); firstIcon.setLargeIcon(value);
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; }