Changes between Version 13 and Version 14 of Migration_of_MSPlugins


Ignore:
Timestamp:
11/11/2016 04:59:26 PM (4 years ago)
Author:
sena
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Migration_of_MSPlugins

    v13 v14  
    2323* '''org.grits.toolbox.entry.ms.annotation''' - see [wiki:Entry_MS_Annotation_Migration this] page for general migration changes for this plugin
    2424* '''org.grits.toolbox.entry.ms.annotation.glycan''' - see [wiki:Entry_MS_Annotation_Glycan_Migration this] page for general migration changes for this plugin
    25 * '''org.grits.toolbox.entry.ms.annotation.glycan.report''' - see [wiki:Entry_MS_Annotation_Glycan_Report_Migration this] page for general migration changes for this plugin
     25* '''org.grits.toolbox.entry.ms.annotation.glycan.report''' - migrated the multi-page viewer and the pages (tabs), migrated command/handlers
    2626
    2727== Preference Handling ==
     
    182182
    183183
    184 Finally, '''MSGlycanAnnotationReportMultiPageViewer''' listens to the changes to MSGlycanAnnotationReportViewerPreference.
     184Finally, '''MSGlycanAnnotationReportMultiPageViewer''' listens to the changes to MSGlycanAnnotationReportViewerPreference. One of the pages in the multi-page viewer, MSGlycanAnnotationReportResultsView should listen to the cartoon preference changes.
    185185
    186186{{{
     
    209209        ...
    210210}
    211 
     211}}}
     212
     213MSGlycanAnnotationReportResultsView's preference update (in reaction to cartoon options change) is shown below:
     214
     215{{{
     216
     217        /**
     218         * This method is called whenever a preference change occurs
     219         * We need to act upon cartoon preference changes for this view
     220         *
     221         * @param preferenceName
     222         */
     223        @Optional @Inject
     224        public void updatePreferences(@UIEventTopic(IGritsPreferenceStore.EVENT_TOPIC_PREF_VALUE_CHANGED)
     225                                                String preferenceName)
     226        {
     227                if (MSGlycanAnnotationCartoonPreferences.getPreferenceID().equals(preferenceName)) {
     228                        try {
     229                                MassSpecTableBase viewBase = (MassSpecTableBase) ( (IMSPeaksViewer) this ).getViewBase();
     230                                ((MSGlycanAnnotationReportTable) viewBase.getNatTable()).refreshTableImages();
     231                        } catch( Exception e ) {
     232                                logger.error("Could not refresh table images", e);
     233                        }
     234                }
     235        }
     236}}}