Skip to content

Commit 3e9c3c4

Browse files
committed
Removing package names from class definitions.
1 parent f97ca2f commit 3e9c3c4

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

code/Component.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
properties ( SetAccess = immutable, GetAccess = protected )
77
% Application data model.
8-
Model(1, 1) model.Model
8+
Model(1, 1) Model
99
end % properties ( SetAccess = immutable, GetAccess = protected )
1010

1111
methods
@@ -14,7 +14,7 @@
1414
%COMPONENT Component constructor.
1515

1616
arguments
17-
model(1, 1) model.Model
17+
model(1, 1) Model
1818
end % arguments
1919

2020
% Do not create a default figure parent for the component, and

code/Controller.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef Controller < component.Component
1+
classdef Controller < Component
22
%CONTROLLER Provides an interactive control to generate new data.
33
%
44
% Copyright 2021-2022 The MathWorks, Inc.
@@ -9,12 +9,12 @@
99
% CONTROLLER Controller constructor.
1010

1111
arguments
12-
model(1, 1) model.Model
13-
namedArgs.?component.Controller
12+
model(1, 1) Model
13+
namedArgs.?Controller
1414
end % arguments
1515

1616
% Call the superclass constructor.
17-
obj@component.Component( model )
17+
obj@Component( model )
1818

1919
% Set any user-specified properties.
2020
set( obj, namedArgs )

code/View.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
classdef View < component.Component
1+
classdef View < Component
22
%VIEW Visualizes the data, responding to any relevant model events.
33
%
44
% Copyright 2021-2022 The MathWorks, Inc.
@@ -16,12 +16,12 @@
1616
%VIEW View constructor.
1717

1818
arguments
19-
model(1, 1) model.Model
20-
namedArgs.?component.View
19+
model(1, 1) Model
20+
namedArgs.?View
2121
end % arguments
2222

2323
% Call the superclass constructor.
24-
obj@component.Component( model )
24+
obj@Component( model )
2525

2626
% Listen for changes to the data.
2727
obj.Listener = listener( obj.Model, ...

code/launchMVCApp.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
"ColumnWidth", "1x" );
1818

1919
% Create the model.
20-
m = model.Model;
20+
m = Model;
2121

2222
% Create the view.
23-
component.View( m, "Parent", g );
23+
View( m, "Parent", g );
2424

2525
% Create the controller.
26-
component.Controller( m, "Parent", g );
26+
Controller( m, "Parent", g );
2727

2828
% Create toolbar to reset the model.
2929
icon = fullfile( matlabroot, ...

0 commit comments

Comments
 (0)