[tuxdroid-svn] r1421 - software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/at
Status: Beta
Brought to you by:
ks156
From: remi <c2m...@c2...> - 2008-07-30 09:27:41
|
Author: remi Date: 2008-07-30 11:27:43 +0200 (Wed, 30 Jul 2008) New Revision: 1421 Modified: software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java Log: * added a function to create the hashtable structure (compatible with the *.att format) of the blocks from the viewer. Modified: software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java =================================================================== --- software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java 2008-07-30 00:20:31 UTC (rev 1420) +++ software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java 2008-07-30 09:27:43 UTC (rev 1421) @@ -1168,4 +1168,27 @@ return true; } + + /* + * + */ + private Hashtable<String,Object> getBlocksStruct() + { + Hashtable<String,Object> result = new Hashtable<String,Object>(); + int count = 0; + String blockName = ""; + List<List<Object>> blocksSt; + + for (int i = 0; i < blockContainers.length; i++) + { + blocksSt = blockContainers[i].getBlockList(); + + for (int j = 0; j < blocksSt.size(); j++) + { + blockName = String.format("block_%03d", count++); + result.put(blockName, blocksSt.get(j).get(1)); + } + } + return result; + } } |