/** * Loads a {@link Item} from a config file. * * @param dir * The directory that contains the config file, not the config file itself. */ public static Item load(ItemGroup parent, File dir) throws IOException { Item item = (Item)getConfigFile(dir).read(); item.onLoad(parent,dir.getName()); return item; }
item.onLoad(parent, subdir.getName());
/** * Loads a {@link Item} from a config file. * * @param dir * The directory that contains the config file, not the config file itself. */ public static Item load(ItemGroup parent, File dir) throws IOException { Item item = (Item)getConfigFile(dir).read(); item.onLoad(parent,dir.getName()); return item; }
/** * Loads a {@link Item} from a config file. * * @param dir * The directory that contains the config file, not the config file itself. */ public static Item load(ItemGroup parent, File dir) throws IOException { Item item = (Item)getConfigFile(dir).read(); item.onLoad(parent,dir.getName()); return item; }
/** * Loads a {@link Item} from a config file. * * @param dir * The directory that contains the config file, not the config file itself. */ public static Item load(ItemGroup parent, File dir) throws IOException { Item item = (Item)getConfigFile(dir).read(); item.onLoad(parent,dir.getName()); return item; }
/** * Loads a {@link Item} from a config file. * * @param dir * The directory that contains the config file, not the config file itself. */ public static Item load(ItemGroup parent, File dir) throws IOException { Item item = (Item)getConfigFile(dir).read(); item.onLoad(parent,dir.getName()); return item; }
/** * Loads a {@link Item} from a config file. * @param dir The directory that contains the config file, not the config * file itself. * @param loadLazy true if return a LazyTopLevelItem without actually loading; * false to actually load the file and return a real item. * @throws IOException */ public static Item load(ItemGroup parent, File dir, boolean loadLazy) throws IOException { if (loadLazy) { return newLazyTopLevelItem(parent, dir, null); } else { Item item = (Item) getConfigFile(dir).read(); item.onLoad(parent, dir.getName()); return item; } }
item.onLoad(parent, subdir.getName());