|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Question about DefaultFurnitureCatalog.java » » » » Post: Question about DefaultFurnitureCatalog.java |
Print at Dec 20, 2025, 3:21:48 AM |
| Posted by enzymer at Dec 13, 2007, 4:35:00 PM |
|
Question about DefaultFurnitureCatalog.java Hi, puybaret: I'am currently reading the source code of sweethome3d for better software understanding. Unfortuantely, when it comes to com.eteks.sweethome3d.io.DefaultFurnitureCatalog.java, which defines the default catalog categories and nodes, something unexpected happens: I inserted a line in the constructor of this file: System.out.println("test"), and many (about more than 30 lines, I guess) "test" was printed on the console when sweethome3d is recompiled and run. It seems like when the software is initialized, many DefaultFurnitureCatalog class is created (at least the permanent part is initialized repeatedly) - I wish this is special for my system environment. :-) Another question is about the Furniture initialization in this file. There are 2 relative property files: ContributedFurnitureCatalog.properties and DefaultFurnitureCatalog.properties, but only the information in ContributedFurnitureCatalog.properties could be imported, if I delete the readFurniture method of ContributedFurnitureCatalog.properties, no furniture will be shown - so it seems like the DefaultFurnitureCatalog.properties does not function at all. I analyze the code but still could not understand why :-( I apologize if these are caused by my lack of programming skills. ^_^ [Note: this thread was started on sourceforge.net forums] |
|
|
Current timezone is GMT Dec 20, 2025, 3:21:48 AM |