state.setFqPath(resource.getFullPath());
state.setPath(new Path(linkName).append(computeRelativPathFrom(resource, linkTarget.getFullPath()).makeRelative()).toString());
if (resource instanceof IContainer) {
state.setType(FSDesignResourceState.TYPE_FOLDER);
IContainer container = (IContainer) resource;
for (IResource child : container.members()) {
List<LocalFSDesignResourceState> childStates = buildDirLinkFSDesignResourceStates(linkTarget, linkName, child);
states.addAll(childStates);
}
} else if (resource instanceof IFile) {
IFile file = (IFile) resource;