import { INodeData } from "../java/nodeData" ; import { Settings } from "../settings" ; import { DataNode } from "./dataNode" ; import { HierarchicalPackageRootNode } from "./hierarchicalPackageRootNode" ; import { PackageRootNode } from "./packageRootNode" ; import { ProjectNode } from "./projectNode" ; export class NodeFactory { public static createPackageRootNode ( nodeData , parent , project ) { return Settings . isHierarchicalView ( ) ? new HierarchicalPackageRootNode ( nodeData , parent , project ) : new PackageRootNode ( nodeData , parent , project ) ; } }