bundle icons (ZIP.SWC.Binary)

This commit is contained in:
Jindra Petk
2014-01-25 14:20:57 +01:00
parent ddbea70903
commit bb0bccc3c1
6 changed files with 20 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ public class ZippedSWFBundle implements SWFBundle {
try {
while ((entry = zip.getNextEntry()) != null) {
if (entry.getName().toLowerCase().endsWith(".swf")
|| entry.getName().toLowerCase().endsWith(".gfx")) {
|| entry.getName().toLowerCase().endsWith(".gfx")) {
keySet.add(entry.getName());
}
//streamMap.put(, is)

View File

@@ -212,6 +212,21 @@ public class TagTree extends JTree {
if (t instanceof SWF) {
return TreeNodeType.FLASH;
}
if(t instanceof SWFList) {
SWFList slist = (SWFList)t;
if(slist.name!=null){
if(slist.name.toLowerCase().endsWith(".zip")){
return TreeNodeType.BUNDLE_ZIP;
}
if(slist.name.toLowerCase().endsWith(".swc")){
return TreeNodeType.BUNDLE_SWC;
}
else{
return TreeNodeType.BUNDLE_BINARY;
}
}
}
return TreeNodeType.FOLDER;
}

View File

@@ -38,5 +38,8 @@ public enum TreeNodeType {
SOUND,
BINARY_DATA,
FOLDER,
FOLDER_OPEN
FOLDER_OPEN,
BUNDLE_ZIP,
BUNDLE_SWC,
BUNDLE_BINARY
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B