/** * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
public void addListener(INotifyChangedListener listener) { if (changeNotifier == null) { changeNotifier = new ChangeNotifier(); } changeNotifier.addListener(listener); }
/** * Uses the delegate item provider to return the delegate value's text. */ @Override public String getText(Object object) { return delegateItemProvider instanceof IItemLabelProvider ? ((IItemLabelProvider)delegateItemProvider).getText(getDelegateValue()) : null; }
@Override public IItemPropertyDescriptor getPropertyDescriptor(Object object, Object propertyId) { IItemPropertyDescriptor descriptor = super.getPropertyDescriptor(mappedObject, propertyId); if (descriptor != null) { return new ItemPropertyDescriptorDecorator(mappedObject, descriptor); } return null; }
@Override protected Object createPropertyValueWrapper(Object object, Object propertyValue) { return propertyValue instanceof EModelElement ? new PropertyValueWrapper(adapterFactory, object, propertyValue, propertyValue) : super.createPropertyValueWrapper(object, propertyValue); } }
/** * Uses the delegate item provider to return the delegate value's image. */ @Override public Object getImage(Object object) { return delegateItemProvider instanceof IItemLabelProvider ? ((IItemLabelProvider)delegateItemProvider).getImage(getDelegateValue()) : null; }
/** * This allows {@link #image} to be set. * If there is a domain notifier, it fires the appropriate domain event. */ public void setImage(Object object, Object image) { this.image = image; fireNotifyChanged(new ItemProviderNotification(Notification.SET, null, image, Notification.NO_INDEX, false, false, true)); }
/** * This implements PropertySource by delegating to the descriptor, * which is assumed to support the IItemPropertyDescriptor interface */ public void setPropertyValue(Object object, String property, Object value) { getPropertyDescriptor(object, property).setPropertyValue(object, value); }
/** * Uses the delegate item provider to return the delegate value's background color. */ @Override public Object getBackground(Object object) { return delegateItemProvider instanceof IItemColorProvider ? ((IItemColorProvider)delegateItemProvider).getBackground(getDelegateValue()) : null; }
/** * Wraps the given command in an appropriate command that will substitute the delegating wrapper for its value and * child wrappers for their corresponding values, whenever they appear in the affected objects. This implementation * returns an {@link AffectedObjectsWrappingCommand} or an {@link AffectedObjectsWrappingCommandActionDelegate}, * depending on whether the given command implements {@link CommandActionDelegate}. */ protected Command wrapCommand(Command command, Class<? extends Command> commandClass) { return command instanceof CommandActionDelegate ? new AffectedObjectsWrappingCommandActionDelegate((CommandActionDelegate)command) : new AffectedObjectsWrappingCommand(command); }
/** * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
/** * Adds a listener to receive this wrapper's repeated notifications. */ public void addListener(INotifyChangedListener listener) { if (changeNotifier == null) { changeNotifier = new ChangeNotifier(); } changeNotifier.addListener(listener); }
@Override public IItemPropertyDescriptor getPropertyDescriptor(Object object, Object propertyId) { IItemPropertyDescriptor descriptor = super.getPropertyDescriptor(mappedObject, propertyId); if (descriptor != null) { return new ItemPropertyDescriptorDecorator(mappedObject, descriptor); } return null; }
/** * This allows {@link #styledText} to be set. * If there is a domain notifier, it fires the appropriate domain event. * @since 2.10 */ public void setStyledText(Object object, Object styledText) { this.styledText = styledText; fireNotifyChanged(new ItemProviderNotification(Notification.SET, null, styledText, Notification.NO_INDEX, false, false, true)); }
/** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
/** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. */ public void fireNotifyChanged(Notification msg) { changeNotifier.fireNotifyChanged(msg); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(msg); } }
/** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
/** * This delegates to {@link #changeNotifier}and to {@link #parentAdapterFactory}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }