/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(LocalEntry.class)) { case EsbPackage.LOCAL_ENTRY__ENTRY_NAME: case EsbPackage.LOCAL_ENTRY__LOCAL_ENTRY_TYPE: case EsbPackage.LOCAL_ENTRY__VALUE_LITERAL: case EsbPackage.LOCAL_ENTRY__VALUE_XML: case EsbPackage.LOCAL_ENTRY__VALUE_URL: fireNotifyChanged( new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { LocalEntry entry = (LocalEntry) object; if (itemPropertyDescriptors != null) { itemPropertyDescriptors.clear(); } super.getPropertyDescriptors(object); addEntryNamePropertyDescriptor(object); addLocalEntryTypePropertyDescriptor(object); switch (entry.getLocalEntryType()) { case LITERAL: addValueLiteralPropertyDescriptor(object); break; case XML: addValueXMLPropertyDescriptor(object); break; case URL: addValueURLPropertyDescriptor(object); break; } return itemPropertyDescriptors; }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children that * can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }