Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354390 - Variable view doesn't show record's list of records field
Summary: Variable view doesn't show record's list of records field
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 11:08 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-08-10 11:08:40 EDT
I've generated Java for the code below and debug it to see if the element where getting added to the list.  I couldn't see the content of the record from the variable view.  I had to use write out to verify data added.

===========

package explore;
library tester {}
	function persistResult(name string, pkgName string, resultRootSum ResultSummaryRoot)
		syslib.writeStdOut(" begin persist");
		//append the test case summary to result root summary 
		resultSum ResultSummary;
		resultSum.name = name;
		resultSum.pkgName = pkgName;
		resultRootSum.trSummary.appendElement(resultSum);
		syslib.writeStdOut(" done persist");
	end
end

Record ResultSummary
	pkgName String {@XMLAttribute{}};	//package name
	name String{@XMLAttribute{}};		//test library part name
end
Record ResultSummaryRoot
	trSummary ResultSummary[]{};
end
====================
package explore;
program driver type BasicProgram {}
	use tester;
	
	function main() 
	    details String;
		resultRootSum ResultSummaryRoot;
		persistResult("Name 1", "PkgName 1", resultRootSum);
		details = resultRootSum.trSummary[1].name;
		sysLib.writeStdOut(details);
		persistResult("Name 2", "PkgName 2", resultRootSum);
		details = resultRootSum.trSummary[2].name;
		sysLib.writeStdOut(details);
		syslib.writeStdOut("done");
 	end
end
Comment 1 Justin Spadea CLA 2011-08-10 13:20:49 EDT
Fixed:
IEGLJavaValue.java
EGLJavaFunctionValue.java
VariableUtil.java
Comment 2 Kathy Carroll CLA 2011-08-10 14:14:02 EDT
Verified that records in the list are visible in debugger.  Noted the index offset starts at 0. Yet in code I would use 1 to access the first element.  Is it possible to change this?
Comment 3 Justin Spadea CLA 2011-08-11 09:36:57 EDT
I've modified ListVariable to parse the Java name and increment the numeric part of the display by 1.
Comment 4 Kathy Carroll CLA 2011-08-12 09:29:41 EDT
Verified Index change
Comment 5 Lisa Lasher CLA 2011-10-11 16:23:14 EDT
Closing this defect.