/** * This adds a property descriptor for the Large Icon feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * * @generated */ protected void addLargeIconPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getString("_UI_IconType_largeIcon_feature"), //$NON-NLS-1$ getString("_UI_PropertyDescriptor_description", "_UI_IconType_largeIcon_feature", "_UI_IconType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ CommonPackage.eINSTANCE.getIconType_LargeIcon(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
private Translator create11IconTranslator(EStructuralFeature afeature) { GenericTranslator result = new GenericTranslator(ICON, afeature); result.setChildren(new Translator[] { new Translator(LANG, COMMON_PKG.getIconType_Lang(), Translator.DOM_ATTRIBUTE), IDTranslator.INSTANCE, new Translator(SMALL_ICON, COMMON_PKG.getIconType_SmallIcon()), new Translator(LARGE_ICON, COMMON_PKG.getIconType_LargeIcon()) }); return result; }
/** * @return */ public static Translator createIconTranslator() { GenericTranslator result = new GenericTranslator(ICON, COMMON_PKG.getDescriptionGroup_Icons()); result.setChildren(new Translator[] { new Translator(LANG, COMMON_PKG.getIconType_Lang(), Translator.DOM_ATTRIBUTE), IDTranslator.INSTANCE, new Translator(SMALL_ICON, COMMON_PKG.getIconType_SmallIcon()), new Translator(LARGE_ICON, COMMON_PKG.getIconType_LargeIcon()) }); return result; }
public void notifyChanged(Notification msg) { if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Icons() || msg.getFeature() == CommonPackage.eINSTANCE.getIconType_LargeIcon() || msg.getFeature() == CommonPackage.eINSTANCE.getIconType_SmallIcon()) { synchIcons(); return; } else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_Descriptions() || msg.getFeature() == CommonPackage.eINSTANCE.getDescription_Value()) { synchDescription(); return; } else if (msg.getFeature() == CommonPackage.eINSTANCE.getDescriptionGroup_DisplayNames() || msg.getFeature() == CommonPackage.eINSTANCE.getDisplayName_Value()) { synchDisplayName(); return; } }