Clean up GUIDE compatibility review comments

Agent-Logs-Url: https://github.com/kk14222/3D_EDFM_SIM-X/sessions/a128ab7f-6b94-4048-a847-f2dc37bbe0ab

Co-authored-by: kk14222 <217880052+kk14222@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-28 03:36:09 +00:00
committed by GitHub
co-authored by kk14222
parent 2447ff62f6
commit 421696c5e0
5 changed files with 21 additions and 9 deletions
+7 -4
View File
@@ -55,8 +55,7 @@ classdef EDFMGuideComponent < handle
case 'slider'
value = get(obj.Handle, 'Value');
case 'edit'
userData = get(obj.Handle, 'UserData');
if isstruct(userData) && isfield(userData, 'Type') && strcmp(userData.Type, 'numeric')
if obj.isNumericEditField()
value = str2double(string(get(obj.Handle, 'String')));
if isnan(value)
value = [];
@@ -94,8 +93,7 @@ classdef EDFMGuideComponent < handle
case 'slider'
set(obj.Handle, 'Value', double(value));
case 'edit'
userData = get(obj.Handle, 'UserData');
if isstruct(userData) && isfield(userData, 'Type') && strcmp(userData.Type, 'numeric')
if obj.isNumericEditField()
if isempty(value)
set(obj.Handle, 'String', '');
else
@@ -276,6 +274,11 @@ classdef EDFMGuideComponent < handle
style = '';
end
end
function tf = isNumericEditField(obj)
userData = get(obj.Handle, 'UserData');
tf = isstruct(userData) && isfield(userData, 'Type') && strcmp(userData.Type, 'numeric');
end
end
methods (Static, Access = private)