File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -187,9 +187,14 @@ function forceUpdate(app)
187187 % toolbar is added to the figure.
188188 app.Figure.Position = app .getPreference(' Position' ,[100 100 1000 700 ]);
189189
190+ % Ensure it's on screen
191+ app .moveOnScreen();
192+
190193 % Set up components
191- app .setup_internal();
192- app .setup();
194+ app .preSetup(); % for pre-setup customization, like a splash screen
195+ app .setup_internal(); % sealed, for session subclasses
196+ app .setup(); % create the components
197+ app .postSetup(); % for post-setup customization
193198
194199 % Set any P-V pairs
195200 if ~isempty(remArgs )
@@ -463,6 +468,28 @@ function moveOnScreen(app)
463468
464469 %% Protected Methods
465470 methods (Access = protected )
471+
472+ function preSetup(~)
473+ % Customize behavior between figure creation and setup
474+
475+ % Format:
476+ % function preSetup(app)
477+ % % code here
478+ % end
479+
480+ end % function
481+
482+
483+ function postSetup(~)
484+ % Customize behavior between setup and update
485+
486+ % Format:
487+ % function postSetup(app)
488+ % % code here
489+ % end
490+
491+ end % function
492+
466493
467494 function displayDebugText(app , evt )
468495 % Display the path to the caller function in the command window
You can’t perform that action at this time.
0 commit comments