Commit b7f75bfe authored by 皮皮蟹's avatar 皮皮蟹 Committed by Evan W. Patton

Update AssetList.java

parent 2e1118b3
......@@ -110,17 +110,15 @@ public class AssetList extends Composite implements ProjectChangeListener {
nodeName.length());
String fileSuffix = node.getProjectId() + "/" + node.getFileId();
String treeItemText = "<span style='cursor: pointer'>" + nodeName + "</span>";
String treeItemText = "<span style='cursor: pointer'>";
if (StorageUtil.isImageFile(fileSuffix)) {
Image mediaIcon = new Image(images.mediaIconImg());
treeItemText = "<span>" + mediaIcon + nodeName + "</span>";
treeItemText += new Image(images.mediaIconImg());
} else if (StorageUtil.isAudioFile(fileSuffix )) {
Image mediaIcon = new Image(images.mediaIconAudio());
treeItemText = "<span>" + mediaIcon + nodeName + "</span>";
} else {
Image mediaIcon = new Image(images.mediaIconVideo());
treeItemText = "<span>" + mediaIcon + nodeName + "</span>";
treeItemText += new Image(images.mediaIconAudio());
} else if (StorageUtil.isVideoFile(fileSuffix )) {
treeItemText += new Image(images.mediaIconVideo());
}
treeItemText += nodeName + "</span>";
TreeItem treeItem = new TreeItem(new HTML(treeItemText));
// keep a pointer from the tree item back to the actual node
treeItem.setUserObject(node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment