Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_matlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_matlab
Merge requests
!25
Development
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Development
development
into
dev/CI_testing
Overview
0
Commits
9
Pipelines
1
Changes
9
Merged
Lemmer, Jan
requested to merge
development
into
dev/CI_testing
3 years ago
Overview
0
Commits
9
Pipelines
1
Changes
9
Expand
I need the newest Development files in CI test
0
0
Merge request reports
Compare
dev/CI_testing
dev/CI_testing (base)
and
latest version
latest version
087ad7e2
9 commits,
3 years ago
9 files
+
193
−
48
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
+PlotID/@userDLG/userDLG.m
0 → 100644
+
80
−
0
Options
classdef
userDLG
%userDLG the userDLG Class is responsible for the user dialog
% error handeling, user messages and warnings will be provided from
% this class, depending on the user options and error type.
% This reduces messaging overhead and code length in PlotID.Publish()
properties
configError
=
false
scriptPublished
=
false
rdFilesPublished
=
false
figurePublished
=
false
msg
=
''
end
properties
(
SetAccess
=
protected
)
success
=
false
showMessages
{
mustBeNumericOrLogical
}
forcePublish
{
mustBeNumericOrLogical
}
ID
%plotID
end
methods
function
obj
=
userDLG
(
ID
,
options
)
%CATCHERROR Construct an instance of this class
if
isempty
(
ID
)
ID
=
''
;
end
obj
.
ID
=
ID
;
obj
.
showMessages
=
options
.
ShowMessages
;
obj
.
forcePublish
=
options
.
ForcePublish
;
end
function
output
=
get
.
success
(
obj
)
% checks if all publish operations are true
obj
.
success
=
all
([
obj
.
scriptPublished
;
obj
.
rdFilesPublished
;
...
obj
.
figurePublished
]);
output
=
obj
.
success
;
end
function
obj
=
set
.
msg
(
obj
,
message
)
%setmsg Summary of this method goes here
% Detailed explanation goes here
obj
.
msg
=
message
;
end
function
[]
=
userMSG
(
obj
,
message
)
%userMSG user message without priority
% MSG will only be displaye if ShowMessages is true
if
obj
.
showMessages
disp
(
message
);
end
end
function
[]
=
error
(
obj
,
message
)
%error handles critical errors
% critical errors will always result in a matlab error
%ToDO: Add function(s) before termination
error
(
message
);
end
function
[]
=
softError
(
obj
,
message
)
%softError handles soft errors
% soft errors can be changed to warning if ForcePublish is
% selected by the user
if
obj
.
forcePublish
warning
(
message
);
else
error
(
message
);
end
end
function
outputArg
=
method1
(
obj
,
inputArg
)
%METHOD1 Summary of this method goes here
% Detailed explanation goes here
outputArg
=
obj
.
Property1
+
inputArg
;
end
end
end
Loading