protected ResourceInfo newElement(int type){
  ResourceInfo result=null;
switch (type) {
case IResource.FILE:
case IResource.FOLDER:
    result=new ResourceInfo(type);
  break;
case IResource.PROJECT:
result=new ResourceInfo(type);
break;
case IResource.ROOT:
result=new ResourceInfo(type);
break;
}
return result;
}

protected ResourceInfo newElement ( int type ) { ResourceInfo result = null ; switch ( type ) { case IResource . FILE : case IResource . FOLDER : result = new ResourceInfo ( type ) ; break ; case IResource . PROJECT : result = new ResourceInfo ( type ) ; break ; case IResource . ROOT : result = new ResourceInfo ( type ) ; break ; } return result ; }
create and return a new tree element of the given type .
