Furniture Library Editor released

This topic has been viewed 2891500 times and has 252 replies
Thread status: Active
Test the features and bug fixes of future versions [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Furniture Library Editor released

Post by enkonyito »

@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
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Furniture Library Editor released

Post by Puybaret »

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
kotbasikcom
Posts: 3
Joined: Fri Feb 01, 2019 6:42 pm
Country: RF

Re: Furniture Library Editor released

Post by kotbasikcom »

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.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Furniture Library Editor released

Post by Puybaret »

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
kotbasikcom
Posts: 3
Joined: Fri Feb 01, 2019 6:42 pm
Country: RF

Re: Furniture Library Editor released

Post by kotbasikcom »

Thank you very much
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Furniture Library Editor released

Post by enkonyito »

No but you could generate the javadoc if needed. Just look at the javadoc target in Sweet Home 3D project to see how.
After adding the "javadoc" target in the build.xml file of the FurnitureLibraryEditor project,

Code: Select all

"<!-- addition start (EnkoNyito) -->
  <!-- Builds FurnitureLibraryEditor-version-javadoc.zip archive that contains
       the generated Javadoc of Java files found in FurnitureLibraryEditor-version-src -->
  <target name="javadoc"
          description="Builds FurnitureLibraryEditor-version-javadoc.zip archive">
    <mkdir dir="build/javadoc/FurnitureLibraryEditor-${version}-javadoc"/>
    <javadoc sourcepath="src" destdir="build/javadoc/FurnitureLibraryEditor-${version}-javadoc"
             encoding="ISO-8859-1" version="true" author="true" use="true"
             windowtitle="Furniture Library Editor ${version} API">
      <doctitle><![CDATA[<img src='http://www.sweethome3d.com/SweetHome3DIcon.gif' width='48' height='48' alt='Sweet Home 3D' align='absmiddle'> Sweet Home 3D ${version} API]]></doctitle>
      <header><![CDATA[<a href='http://www.sweethome3d.com' target='_parent'><font size='+1'>Sweet Home 3D ${version}</font></a>]]></header>
      <footer><![CDATA[<a href='http://www.sweethome3d.com' target='_parent'><font size='+1'>Sweet Home 3D ${version}</font></a>]]></footer>
      <bottom><![CDATA[<table align='center'><tr>
                       <td><a href='http://www.eteks.com' target='_parent'><img align='absmiddle' src='http://www.sweethome3d.com/images/eteks.gif' border='0'><a></td>
                       <td>© Copyrights 2006-2021 Emmanuel PUYBARET / <a href='http://www.eteks.com' target='_parent'>eTeks</a>
                           <br>Distributed under <a href='http://www.gnu.org/licenses/gpl-2.0.html' target='_parent'>GNU General Public License</a></td></tr></table>]]></bottom>
      <link href="http://docs.oracle.com/javase/1.5.1/docs/api/"/>
      <link href="http://download.java.net/media/java3d/javadoc/1.5.3/"/>
      <group title="Base classes" packages="*"/>
    </javadoc>

    <zip destfile="FurnitureLibraryEditor-${version}-javadoc.zip" basedir="build/javadoc"
         includes="FurnitureLibraryEditor-${version}-javadoc/**" />

    <!-- Clean build directory -->
    <delete dir="build"/>

    <echo message="FurnitureLibraryEditor-${version}-javadoc.zip ready for ftp"/>
  </target>
  <!-- addition end (EnkoNyito) -->"
I get this message in the console:

Code: Select all

Buildfile: C:\Users\user\eclipse-workspace 4.16 (2020-06)\FurnitureLibraryEditor-1.28_derived\build.xml

javadoc:
    [mkdir] Created dir: C:\Users\user\eclipse-workspace 4.16 (2020-06)\FurnitureLibraryEditor-1.28_derived\build\javadoc\FurnitureLibraryEditor-1.28-javadoc
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] javadoc: error - Illegal package name: ".project"
  [javadoc] javadoc: error - Illegal package name: ".settings"
  [javadoc] javadoc: warning - No source files for package build
  [javadoc] javadoc: warning - No source files for package build.xml
  [javadoc] Loading source files for package build...
  [javadoc] javadoc: warning - No source files for package COPYING.TXT
  [javadoc] Loading source files for package build.xml...
  [javadoc] javadoc: warning - No source files for package LICENSE.TXT
  [javadoc] Loading source files for package COPYING.TXT...
  [javadoc] javadoc: warning - No source files for package README.TXT
  [javadoc] Loading source files for package LICENSE.TXT...
  [javadoc] javadoc: warning - No source files for package src
  [javadoc] Loading source files for package README.TXT...
  [javadoc] Loading source files for package src...
  [javadoc] Loading source files for package com.eteks.furniturelibraryeditor...
  [javadoc] Loading source files for package com.eteks.furniturelibraryeditor.io...
  [javadoc] Loading source files for package com.eteks.furniturelibraryeditor.model...
  [javadoc] Loading source files for package com.eteks.furniturelibraryeditor.swing...
  [javadoc] Loading source files for package com.eteks.furniturelibraryeditor.viewcontroller...
  [javadoc] 2 errors
  [javadoc] 6 warnings
      [zip] Building zip: C:\Users\user\eclipse-workspace 4.16 (2020-06)\FurnitureLibraryEditor-1.28_derived\FurnitureLibraryEditor-1.28-javadoc.zip
   [delete] Deleting directory C:\Users\user\eclipse-workspace 4.16 (2020-06)\FurnitureLibraryEditor-1.28_derived\build
     [echo] FurnitureLibraryEditor-1.28-javadoc.zip ready for ftp

BUILD SUCCESSFUL
but the FurnitureLibraryEditor-1.28-javadoc folder is empty.
EnkoNyito
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Furniture Library Editor released

Post by Puybaret »

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
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Furniture Library Editor released

Post by enkonyito »

By modifying the source code, I was able to add 2 new properties ([font=courier new]LIGHT[/font] and [font=courier new]LIGHT_SOURCES[/font]).
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

Code: Select all

java.lang.NumberFormatException: For input string: "FF44371B"
when the library created is imported back into the editor.
EnkoNyito
enkonyito
Posts: 607
Joined: Thu May 28, 2015 4:52 pm

Re: Furniture Library Editor released

Post by enkonyito »

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 [font=courier new]LIGHT_SOURCE_COLOR[/font] property.
EnkoNyito
User avatar
harbinger
Posts: 87
Joined: Thu Feb 27, 2014 4:48 pm
Country: Clearwater, FL, US

Re: Furniture Library Editor released

Post by harbinger »

Can you link to the version history of the FLE? I'm not finding what's new with the latest version?
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest