48
48
ResultsManager mag.app.manage.Manager {mustBeScalarOrEmpty }
49
49
ExportManager mag.app.manage.ExportManager {mustBeScalarOrEmpty }
50
50
VisualizationManager mag.app.manage.VisualizationManager {mustBeScalarOrEmpty }
51
- AppNotificationHandler mag.app.internal.AppNotificationHandler {mustBeScalarOrEmpty }
51
+ NotificationHandler mag.app.internal.NotificationHandler {mustBeScalarOrEmpty }
52
52
end
53
53
54
54
properties (SetObservable , SetAccess = private )
74
74
app.ToolbarManager = mag .app .manage .ToolbarManager(app , pathToAppIcons );
75
75
app .ToolbarManager .instantiate(app .UIFigure );
76
76
77
- app.AppNotificationHandler = mag .app .internal .AppNotificationHandler (app .UIFigure , app .ToolbarManager );
77
+ app.NotificationHandler = mag .app .internal .NotificationHandler (app .UIFigure , app .ToolbarManager );
78
78
79
79
% Initialize app based on mission.
80
80
try
@@ -131,7 +131,7 @@ function selectMission(app, mission)
131
131
app .SelectMissionDialog .delete();
132
132
end
133
133
134
- closeProgressBar = app .AppNotificationHandler .overlayProgressBar(" Initializing mission..." ); % #ok<NASGU>
134
+ closeProgressBar = app .NotificationHandler .overlayProgressBar(" Initializing mission..." ); % #ok<NASGU>
135
135
end
136
136
137
137
app.Mission = mission ;
@@ -188,7 +188,7 @@ function modelChangedCallback(app, model, ~)
188
188
hasData = hasModel && (model .Analysis .Results .HasScience || model .Analysis .Results .HasHK );
189
189
190
190
if hasModel && ~hasData
191
- app .AppNotificationHandler .displayAlert(" No HK or science data detected." , " No Data" , " warning" );
191
+ app .NotificationHandler .displayAlert(" No HK or science data detected." , " No Data" , " warning" );
192
192
end
193
193
194
194
status = matlab .lang .OnOffSwitchState(hasData );
@@ -205,13 +205,13 @@ function figuresChanged(app, varargin)
205
205
206
206
function processDataButtonPushed(app )
207
207
208
- closeProgressBar = app .AppNotificationHandler .overlayProgressBar(" Processing data..." ); % #ok<NASGU>
208
+ closeProgressBar = app .NotificationHandler .overlayProgressBar(" Processing data..." ); % #ok<NASGU>
209
209
restoreWarningState = app .disableWarningStackTrace(); % #ok<NASGU>
210
210
211
211
try
212
212
app .Model .analyze(app .AnalysisManager .getAnalysisOptions());
213
213
catch exception
214
- app .AppNotificationHandler .displayAlert(exception );
214
+ app .NotificationHandler .displayAlert(exception );
215
215
end
216
216
end
217
217
@@ -229,7 +229,7 @@ function resetButtonPushed(app)
229
229
230
230
function exportButtonPushed(app )
231
231
232
- closeProgressBar = app .AppNotificationHandler .overlayProgressBar(" Exporting..." ); % #ok<NASGU>
232
+ closeProgressBar = app .NotificationHandler .overlayProgressBar(" Exporting..." ); % #ok<NASGU>
233
233
restoreWarningState = app .disableWarningStackTrace(); % #ok<NASGU>
234
234
235
235
format = app .ExportFormatDropDown .Value ;
@@ -267,34 +267,34 @@ case cellstr(app.ExportManager.SupportedFormats)
267
267
try
268
268
app .Model .export(app .ExportManager .getExportOptions(format , app .ResultsLocation ));
269
269
catch exception
270
- app .AppNotificationHandler .displayAlert(exception );
270
+ app .NotificationHandler .displayAlert(exception );
271
271
end
272
272
otherwise
273
- app .AppNotificationHandler .displayAlert(compose(" Unrecognized export format option "" %s"" ." , format ));
273
+ app .NotificationHandler .displayAlert(compose(" Unrecognized export format option "" %s"" ." , format ));
274
274
end
275
275
end
276
276
277
277
function showFiguresButtonPushed(app )
278
278
279
- closeProgressBar = app .AppNotificationHandler .overlayProgressBar(" Plotting data..." ); % #ok<NASGU>
279
+ closeProgressBar = app .NotificationHandler .overlayProgressBar(" Plotting data..." ); % #ok<NASGU>
280
280
restoreWarningState = app .disableWarningStackTrace(); % #ok<NASGU>
281
281
282
282
try
283
283
app.Figures = [app .Figures , app .VisualizationManager .visualize(app .Model .Analysis )];
284
284
catch exception
285
- app .AppNotificationHandler .displayAlert(exception );
285
+ app .NotificationHandler .displayAlert(exception );
286
286
end
287
287
end
288
288
289
289
function saveFiguresButtonPushed(app )
290
290
291
- closeProgressBar = app .AppNotificationHandler .overlayProgressBar(" Saving figures..." ); % #ok<NASGU>
291
+ closeProgressBar = app .NotificationHandler .overlayProgressBar(" Saving figures..." ); % #ok<NASGU>
292
292
restoreWarningState = app .disableWarningStackTrace(); % #ok<NASGU>
293
293
294
294
try
295
295
mag .graphics .savePlots(app .Figures , app .ResultsLocation );
296
296
catch exception
297
- app .AppNotificationHandler .displayAlert(exception );
297
+ app .NotificationHandler .displayAlert(exception );
298
298
end
299
299
end
300
300
@@ -304,7 +304,7 @@ function closeFiguresButtonPushed(app)
304
304
305
305
if ~isempty(app .Figures ) && any(isValidFigures )
306
306
307
- closeProgressBar = app .AppNotificationHandler .overlayProgressBar(" Closing figures..." ); % #ok<NASGU>
307
+ closeProgressBar = app .NotificationHandler .overlayProgressBar(" Closing figures..." ); % #ok<NASGU>
308
308
restoreWarningState = app .disableWarningStackTrace(); % #ok<NASGU>
309
309
310
310
close(app .Figures(isValidFigures ));
0 commit comments