public void fireNotifyChanged(Notification notification) { if (notificationOn) super.fireNotifyChanged(notification); }
/** * This implements {@link IUpdateableItemText#setText IUpdateableItemText.setText}, * although the class doesn't declare that it implements this interface. * If there is a domain notifier, it fires the appropriate domain event. */ public void setText(Object object, String text) { this.text = text; fireNotifyChanged(new ItemProviderNotification(Notification.SET, null, text, Notification.NO_INDEX, false, false, true)); }
/** * 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 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 allows {@link #background} to be set. * If there is a domain notifier, it fires the appropriate domain event. */ public void setBackground(Object object, Object background) { this.background = background; fireNotifyChanged(new ItemProviderNotification(Notification.SET, null, background, Notification.NO_INDEX, false, false, true)); }
/** * This allows {@link #font} to be set. * If there is a domain notifier, it fires the appropriate domain event. */ public void setFont(Object object, Object font) { this.font = font; fireNotifyChanged(new ItemProviderNotification(Notification.SET, null, font, Notification.NO_INDEX, false, false, true)); }
/** * This allows {@link #foreground} to be set. * If there is a domain notifier, it fires the appropriate domain event. */ public void setForeground(Object object, Object foreground) { this.foreground = foreground; fireNotifyChanged(new ItemProviderNotification(Notification.SET, null, foreground, Notification.NO_INDEX, false, false, true)); }