|
a/tool/run/plugins/basic/TreeNodeDetails.java |
|
b/tool/run/plugins/basic/TreeNodeDetails.java |
|
... |
|
... |
154 |
String path = getFilePath(fileInfo);
|
154 |
String path = getFilePath(fileInfo);
|
155 |
//String parentFolder = getParentFolder(path);
|
155 |
//String parentFolder = getParentFolder(path);
|
156 |
// add it up to our list
|
156 |
// add it up to our list
|
157 |
TreeNodeSPDX pathNode = addNodeFolder(root, path);
|
157 |
TreeNodeSPDX pathNode = addNodeFolder(root, path);
|
158 |
|
158 |
|
159 |
TreeNodeSPDX nodeFile = new TreeNodeSPDX(getSimpleName(fileInfo));
|
159 |
TreeNodeSPDX nodeFile = new TreeNodeSPDX(fileInfo.toString());
|
160 |
nodeFile.id = fileInfo.getName();
|
160 |
nodeFile.id = fileInfo.getName();
|
161 |
nodeFile.nodeType = NodeType.file;
|
161 |
nodeFile.nodeType = NodeType.file;
|
162 |
nodeFile.setUserObject(fileInfo);
|
162 |
nodeFile.setUserObject(fileInfo);
|
163 |
// add this file to the parent path
|
163 |
// add this file to the parent path
|
164 |
pathNode.add(nodeFile);
|
164 |
pathNode.add(nodeFile);
|
165 |
}
|
165 |
}
|
166 |
|
166 |
|
167 |
|
167 |
|
168 |
}
|
168 |
}
|
169 |
|
169 |
|
170 |
|
170 |
//
|
171 |
/**
|
171 |
// /**
|
172 |
* Provides a pretty name to place on the tree view
|
172 |
// * Provides a pretty name to place on the tree view
|
173 |
* @param fileInfo
|
173 |
// * @param fileInfo
|
174 |
* @return
|
174 |
// * @return
|
175 |
*/
|
175 |
// */
|
176 |
private String getSimpleName(FileInfo fileInfo){
|
176 |
// private String getSimpleName(FileInfo fileInfo){
|
177 |
String result = fileInfo.tagFileName.getValue();
|
177 |
// String result = fileInfo.tagFileName.getValue();
|
178 |
if(result.contains("/")){
|
178 |
// if(result.contains("/")){
|
179 |
return result.substring(result.lastIndexOf("/")+1);
|
179 |
// return result.substring(result.lastIndexOf("/")+1);
|
180 |
}
|
180 |
// }
|
181 |
return result;
|
181 |
// return result;
|
182 |
}
|
182 |
// }
|
183 |
|
183 |
|
184 |
|
184 |
|
185 |
/**
|
185 |
/**
|
186 |
* Adds a given folder as child from a specific folder
|
186 |
* Adds a given folder as child from a specific folder
|
187 |
*/
|
187 |
*/
|