France
Joined: Nov 7, 2005
Post Count: 9430
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: 9430
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
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Furniture Library Editor released
There's no separated version history for the Furniture Library Editor. The version 1.28 only brought some icon changes.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: May 28, 2015
Post Count: 607
Status:
Offline
Re: Furniture Library Editor released
For building the FurnitureLibraryEditor-version.jar file with the furnitureLibraryEditorJarExecutable target, the Color button does not open any panel and displays this message in the command prompt:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(Unknown Source) at com.eteks.sweethome3d.swing.SwingTools.createCustomCursor(Unknown Source) at com.eteks.sweethome3d.swing.ColorButton$RecentColorsPanel.<init>(Unknown Source) at com.eteks.sweethome3d.swing.ColorButton$RecentColorsPanel.<init>(Unknown Source) at com.eteks.sweethome3d.swing.ColorButton.createColorChooser(Unknown Source) at com.eteks.sweethome3d.swing.ColorButton.access$300(Unknown Source) at com.eteks.sweethome3d.swing.ColorButton$2.actionPerformed(Unknown Source) ... at com.eteks.furniturelibraryeditor.swing.ModelLightSourcesComponent$ModelLightSourcesPanel.displayView(Unknown Source) at com.eteks.furniturelibraryeditor.swing.ModelLightSourcesComponent$1.actionPerformed(Unknown Source) ... at com.eteks.sweethome3d.swing.SwingTools.showOptionDialog(Unknown Source) at com.eteks.sweethome3d.swing.SwingTools.showConfirmDialog(Unknown Source) at com.eteks.furniturelibraryeditor.swing.FurniturePanel.displayView(Unknown Source) at com.eteks.furniturelibraryeditor.viewcontroller.FurnitureController.displayView(Unknown Source) at com.eteks.furniturelibraryeditor.viewcontroller.FurnitureLibraryController.modifySelectedFurniture(U nknown Source) at com.eteks.furniturelibraryeditor.swing.FurnitureLibraryTable$3.mouseClicked(Unknown Source)
In Eclipse, the Color button opens the color modification panel.
----------------------------------------
EnkoNyito
----------------------------------------
[Edit 1 times,
last edit by enkonyito at Sep 3, 2021, 4:49:58 PM]
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Furniture Library Editor released
Many files of Sweet Home 3D are excluded from the JAR executable file of the Furniture Library Editor, to build a JAR file as small as possible. If you change the features of the editor, you'll have to check which files you should not exclude anymore. In your case, I guess you need the pipette cursor icons found in com/eteks/sweethome3d/swing/resources/cursors folder.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator