public Object[] getChildren(Object parentElement) {
//parse the class resource and create a ToolClass
if (parentElement instanceof IFile &&
(((IFile)parentElement).getFileExtension().equalsIgnoreCase("CLA") ||
((IFile)parentElement).getFileExtension().equalsIgnoreCase("WCL"))){
ToolClass cls = ToolClass.parseUsingGrammar((IFile) parentElement);
// ToolClass cls = ToolClass.fetch((IFile) parentElement);
return new Object[] {cls};
} else if (parentElement instanceof ToolClass){
return ((ToolClass)parentElement).getComponents();
}