Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Furniture Library Editor released
@Puybaret
For interested programmers, source code is committed in the FurnitureLibraryEditor SVN module separated from SweetHome3D one. Furniture Library Editor project is derived from Sweet Home 3D project and uses a similar MVC architecture. Project contains a README.TXT file with compilation directions.
Is there a javadoc to view online or download?
----------------------------------------
EnkoNyito
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Furniture Library Editor released
No but you could generate the javadoc if needed. Just look at the javadoc target in Sweet Home 3D project to see how.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
RF
Joined: Feb 1, 2019
Post Count: 3
Status:
Offline
Re: Furniture Library Editor released
Good afternoon. Please tell me how to add a choice of language in the program settings. I translated the .properties files, inserted them into the program, but in the choice of language, all the same, only English and French. Thanks.
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Furniture Library Editor released
The list of languages supported by the editor is returned by the getSupportedLanguages method in FurnitureLibraryUserPreferences class. Just add the language code you want to the array returned by this method.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: Furniture Library Editor released
I just tried your target on my side and it worked with JDK 1.8. There were some errors because the classpath wasn't complete but FurnitureLibraryEditor-1.28-javadoc.zip was generated and usable.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Furniture Library Editor released
By modifying the source code, I was able to add 2 new properties (LIGHT and LIGHT_SOURCES). This adds a 'Light' column and a 'Light sources' button. FurnitureLibraryEditor-1.28_derived.jpg
For certain color (#44371B), this one is not taken into account in the PluginFurnitureCatalog.properties file and the console returns the message
java.lang.NumberFormatException: For input string: "FF44371B"
when the library created is imported back into the editor.
----------------------------------------
EnkoNyito
Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Furniture Library Editor released
By applying a mask (0x00FFFFFF), the 'Color' button returns the correct int value that is taken into account by the FurnitureLibraryFileRecorder class for writing the LIGHT_SOURCE_COLOR property.
----------------------------------------
EnkoNyito