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;
+ }
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn