/** * Wraps the given notification to make the given element be operated on by the viewer that receives it. If the * notification is an {@link IViewerNotification}, it is {@link #ViewerNotification(IViewerNotification, Object) * wrapped} in a <code>ViewerNotification</code>, with that element. Otherwise, it is wrapped in a {@link * org.eclipse.emf.common.notify.NotificationWrapper} that returns the element as its <code>notifier</code>. */ public static Notification wrapNotification(Notification notification, Object element) { if (notification instanceof IViewerNotification) { return new ViewerNotification((IViewerNotification)notification, element); } return new NotificationWrapper(element, notification); }
/** * Wraps the given notification, substituting this wrapper as the operative object, by calling {@link * ViewerNotification#wrapNotification ViewerNotification.wrapNotification}. */ protected Notification wrapNotification(Notification notification) { return ViewerNotification.wrapNotification(notification, this); }
/** * This handles notification by calling {@link #fireNotifyChanged(Notification) fireNotifyChanged}. */ @Override public void notifyChanged(Notification notification) { switch (notification.getFeatureID(ResourceSet.class)) { case ResourceSet.RESOURCE_SET__RESOURCES: { fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } } super.notifyChanged(notification); }
/** * This handles notification by calling {@link #fireNotifyChanged(Notification) fireNotifyChanged}. * This will also be called by the {@link #delegateItemProvider} when it normally fires a notification to its adapter factory; * the listener method is hooked up in {@link #setTarget setTarget}. Notifications are wrapped to look like they originate from * the target. */ @Override public void notifyChanged(final Notification notification) { fireNotifyChanged(ViewerNotification.wrapNotification(notification, target)); }
/** * 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 */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Source.class)) { case SQLRoutinesPackage.SOURCE__BODY: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * 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 */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(ValueExpressionDefault.class)) { case SQLExpressionsPackage.VALUE_EXPRESSION_DEFAULT__SQL: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * 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 */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Comment.class)) { case SQLSchemaPackage.COMMENT__DESCRIPTION: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * 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 */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(UserDefinedType.class)) { case SQLDataTypesPackage.USER_DEFINED_TYPE__ORDERING: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); }
/** * 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 */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(PredefinedDataType.class)) { case SQLDataTypesPackage.PREDEFINED_DATA_TYPE__PRIMITIVE_TYPE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(DocumentRoot.class)) { case FacesConfigPackage.DOCUMENT_ROOT__MIXED: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); }
/** * 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 */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(BinaryStringDataType.class)) { case SQLDataTypesPackage.BINARY_STRING_DATA_TYPE__LENGTH: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * 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 */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(ExactNumericDataType.class)) { case SQLDataTypesPackage.EXACT_NUMERIC_DATA_TYPE__SCALE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(ManagedBeanNameType.class)) { case FacesConfigPackage.MANAGED_BEAN_NAME_TYPE__TEXT_CONTENT: case FacesConfigPackage.MANAGED_BEAN_NAME_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(FacesContextFactoryType.class)) { case FacesConfigPackage.FACES_CONTEXT_FACTORY_TYPE__TEXT_CONTENT: case FacesConfigPackage.FACES_CONTEXT_FACTORY_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(ViewHandlerType.class)) { case FacesConfigPackage.VIEW_HANDLER_TYPE__TEXT_CONTENT: case FacesConfigPackage.VIEW_HANDLER_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(PropertyResolverType.class)) { case FacesConfigPackage.PROPERTY_RESOLVER_TYPE__TEXT_CONTENT: case FacesConfigPackage.PROPERTY_RESOLVER_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(BaseNameType.class)) { case FacesConfigPackage.BASE_NAME_TYPE__TEXT_CONTENT: case FacesConfigPackage.BASE_NAME_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(ValidatorClassType.class)) { case FacesConfigPackage.VALIDATOR_CLASS_TYPE__TEXT_CONTENT: case FacesConfigPackage.VALIDATOR_CLASS_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(SuggestedValueType.class)) { case FacesConfigPackage.SUGGESTED_VALUE_TYPE__TEXT_CONTENT: case FacesConfigPackage.SUGGESTED_VALUE_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(FromOutcomeType.class)) { case FacesConfigPackage.FROM_OUTCOME_TYPE__TEXT_CONTENT: case FacesConfigPackage.FROM_OUTCOME_TYPE__ID: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }