| 157 | Similarly, MSGlycanAnnotationDetails view also should act upon cartoon preference changes. |
| 158 | |
| 159 | {{{ |
| 160 | /** |
| 161 | * This method is called whenever a preference change occurs |
| 162 | * We need to act upon cartoon preference changes for this view |
| 163 | * |
| 164 | * @param preferenceName |
| 165 | */ |
| 166 | @Optional @Inject |
| 167 | public void updatePreferences(@UIEventTopic(IGritsPreferenceStore.EVENT_TOPIC_PREF_VALUE_CHANGED) |
| 168 | String preferenceName) |
| 169 | { |
| 170 | if (MSGlycanAnnotationCartoonPreferences.getPreferenceID().equals(preferenceName)) { |
| 171 | if( this.getPeaksViews() != null ) { |
| 172 | MSGlycanAnnotationEntityScroller entityScroller = (MSGlycanAnnotationEntityScroller) this.getEntityScroller(); |
| 173 | entityScroller.refreshImages(); |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | }}} |