regarding key-properties.

This topic has been viewed 6178 times and has 4 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
woopsie
Posts: 4
Joined: Sun Jan 25, 2015 3:39 am

regarding key-properties.

Post by woopsie »

On my very fist post, I would like to start by saying that Emmanuel Puybaret is an absolute LEGEND! What a fantastic application & resource for a newbie Java programmer to get lost in [:D]

I've been able to answer most of my questions using the forum and documentation, but can't seem to find anything related to the GRADE field in DefaultFurnitureCatalog.PropertyKey, what is the intention?

I would also like to know if modifying DefaultUserPreferences.properties, as explained here (http://sourceforge.net/p/sweethome3d/fe ... ts/7/#fefa), can only be done through recompiling the application?

Many thanks to all the contributors...
-Woops
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: regarding key-properties.

Post by Puybaret »

Welcome to Sweet Home 3D. Hope you won't regret your dive in its source code. [;)]

I programmed the grade property to display some kind of grade associated to each piece of furniture that would help users to select one 3D model according to its popularity. At the moment, it's not used in Sweet Home 3D.
I would also like to know if modifying DefaultUserPreferences.properties, can only be done through recompiling the application?
You can modify this text file directly in its jar file if you want.
Emmanuel Puybaret, Sweet Home 3D creator
woopsie
Posts: 4
Joined: Sun Jan 25, 2015 3:39 am

Re: regarding key-properties.

Post by woopsie »

Looking through your code has taught me a lot about how things should be done, so no chance of regret there...

I also had no idea that .jar was just a .zip file, good pointer - thank you for the reply sir!
User avatar
clanmills
Posts: 33
Joined: Fri May 16, 2014 4:50 am
Country: Camberley, Surrey, England
Contact:

Re: regarding key-properties.

Post by clanmills »

Woopsie: I agree with what you've said about the code. I think Emmanuel's code is very well written, beautifully laid out and easy to understand.

I think a jar file is actually a tar (and can be compressed like .tar.gz). The Java community have the habit to take other people's standards, implement them in Java and rename them with a J. So, ODBC, asp and tar become JDBC, jsp and jar. Presumably if there was a standard called funk, it be junk in Java land! [:D]
User avatar
hal9000
Posts: 152
Joined: Wed May 09, 2012 10:27 am
Country: Spain

Re: regarding key-properties.

Post by hal9000 »

Clanmills, if you use an hexadecimal editor to look inside a .jar file, you'll find it starts with "PK", which means it's a ZIP file.
If a long walk every day were healthy, mailmen would be immortal. [:p]
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 0 guests