|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eteks.sweethome3d.model.UserPreferences
com.eteks.sweethome3d.io.FileUserPreferences
public class FileUserPreferences
User preferences initialized from
default user preferences
and stored in user preferences on local file system.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.eteks.sweethome3d.model.UserPreferences |
|---|
UserPreferences.Property |
| Constructor Summary | |
|---|---|
FileUserPreferences()
Creates user preferences read from user preferences in file system, and from resource files. |
|
FileUserPreferences(File preferencesFolder,
File[] applicationFolders)
Creates user preferences stored in the folders given in parameter. |
|
| Method Summary | |
|---|---|
void |
addFurnitureLibrary(String furnitureLibraryName)
Adds the file furnitureLibraryName to the first furniture libraries folder
to make the furniture library available to catalog. |
void |
addLanguageLibrary(String languageLibraryName)
Adds languageLibraryName to the first language libraries folder
to make the language library it contains available to supported languages. |
void |
addTexturesLibrary(String texturesLibraryName)
Adds the file texturesLibraryName to the first textures libraries folder
to make the textures library available to catalog. |
boolean |
furnitureLibraryExists(String name)
Returns true if the given furniture library file exists in the first
furniture libraries folder. |
File |
getApplicationFolder()
Returns the first Sweet Home 3D application folder. |
File[] |
getApplicationFolders()
Returns Sweet Home 3D application folders. |
File[] |
getApplicationSubfolders(String subfolder)
Returns subfolders of Sweet Home 3D application folders of a given name. |
protected Preferences |
getPreferences()
Returns default Java preferences for current system user. |
List<ClassLoader> |
getResourceClassLoaders()
Returns the default class loader of user preferences and the class loaders that give access to resources in language libraries plugin folder. |
boolean |
isActionTipIgnored(String actionKey)
Returns whether an action tip should be ignored or not. |
boolean |
languageLibraryExists(String name)
Returns true if the given language library exists in the first
language libraries folder. |
void |
resetIgnoredActionTips()
Resets the display flag of action tips. |
void |
setActionTipIgnored(String actionKey)
Sets which action tip should be ignored. |
boolean |
texturesLibraryExists(String name)
Returns true if the given textures library file exists in the first textures libraries folder. |
void |
write()
Writes user preferences in current user preferences in system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUserPreferences()
public FileUserPreferences(File preferencesFolder,
File[] applicationFolders)
preferencesFolder - the folder where preferences files are stored
or null if this folder is the default one.applicationFolders - the folders where application private files are stored
or null if it's the default one. As the first application folder
is used as the folder where plug-ins files are imported by the user, it should
have write access otherwise the user won't be able to import them.| Method Detail |
|---|
public List<ClassLoader> getResourceClassLoaders()
getResourceClassLoaders in class UserPreferences
public void write()
throws RecorderException
write in class UserPreferencesRecorderException - if user preferences couldn'y be saved.
public File getApplicationFolder()
throws IOException
IOException
public File[] getApplicationFolders()
throws IOException
IOException
public File[] getApplicationSubfolders(String subfolder)
throws IOException
IOExceptionprotected Preferences getPreferences()
public void setActionTipIgnored(String actionKey)
setActionTipIgnored in class UserPreferencespublic boolean isActionTipIgnored(String actionKey)
isActionTipIgnored in class UserPreferencespublic void resetIgnoredActionTips()
resetIgnoredActionTips in class UserPreferences
public boolean languageLibraryExists(String name)
throws RecorderException
true if the given language library exists in the first
language libraries folder.
languageLibraryExists in class UserPreferencesname - the name of the resource to check
RecorderException
public void addLanguageLibrary(String languageLibraryName)
throws RecorderException
languageLibraryName to the first language libraries folder
to make the language library it contains available to supported languages.
addLanguageLibrary in class UserPreferenceslanguageLibraryName - the name of the resource in which the library will be written.
RecorderException
public boolean furnitureLibraryExists(String name)
throws RecorderException
true if the given furniture library file exists in the first
furniture libraries folder.
furnitureLibraryExists in class UserPreferencesname - the name of the resource to check
RecorderException
public void addFurnitureLibrary(String furnitureLibraryName)
throws RecorderException
furnitureLibraryName to the first furniture libraries folder
to make the furniture library available to catalog.
addFurnitureLibrary in class UserPreferencesfurnitureLibraryName - the name of the resource in which the library will be written.
RecorderException
public boolean texturesLibraryExists(String name)
throws RecorderException
true if the given textures library file exists in the first textures libraries folder.
texturesLibraryExists in class UserPreferencesname - the name of the resource to check
RecorderException
public void addTexturesLibrary(String texturesLibraryName)
throws RecorderException
texturesLibraryName to the first textures libraries folder
to make the textures library available to catalog.
addTexturesLibrary in class UserPreferencestexturesLibraryName - the name of the resource in which the library will be written.
RecorderException
|
Sweet Home 3D 3.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2011 eTeks - All rights reserved
Distributed under GNU General Public License |