Changes between Version 8 and Version 9 of Migration_of_MSPlugins


Ignore:
Timestamp:
11/10/2016 10:13:12 PM (4 years ago)
Author:
sena
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Migration_of_MSPlugins

    v8 v9  
    155155}}}
    156156
     157Similarly, 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}}}
    157178
    158179
     180