Changes between Version 13 and Version 14 of Migration_of_MSPlugins
- Timestamp:
- 11/11/2016 04:59:26 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Migration_of_MSPlugins
v13 v14 23 23 * '''org.grits.toolbox.entry.ms.annotation''' - see [wiki:Entry_MS_Annotation_Migration this] page for general migration changes for this plugin 24 24 * '''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 plugin25 * '''org.grits.toolbox.entry.ms.annotation.glycan.report''' - migrated the multi-page viewer and the pages (tabs), migrated command/handlers 26 26 27 27 == Preference Handling == … … 182 182 183 183 184 Finally, '''MSGlycanAnnotationReportMultiPageViewer''' listens to the changes to MSGlycanAnnotationReportViewerPreference. 184 Finally, '''MSGlycanAnnotationReportMultiPageViewer''' listens to the changes to MSGlycanAnnotationReportViewerPreference. One of the pages in the multi-page viewer, MSGlycanAnnotationReportResultsView should listen to the cartoon preference changes. 185 185 186 186 {{{ … … 209 209 ... 210 210 } 211 211 }}} 212 213 MSGlycanAnnotationReportResultsView'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 }}}