Package ome.formats.importer.util
Class IniFileLoader
- java.lang.Object
-
- ome.formats.importer.util.IniFileLoader
-
public class IniFileLoader extends java.lang.ObjectThis class loads in the default importer.ini file (or one specified from the command line when starting the app)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLOGFILEPublic in order to configure LogAppenderProxy, but then the value might as well be configured in the log4j.properties file
-
Constructor Summary
Constructors Constructor Description IniFileLoader(java.io.File userConfigFile)Load given file
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidflushPreferences()Flush preferences to diskjava.lang.StringgetAppTitle()booleangetCustomImageNaming()intgetDebugLevel()Returns the level of debugging which should be set onImportConfigAny value lower than null will not call configureDebug.booleangetForceFileArchiveOn()java.lang.StringgetForumUrl()java.lang.StringgetHomeUrl()java.lang.StringgetLogFile()intgetNumOfDirectories()java.lang.StringgetServerPort()booleangetStaticDisableHistory()java.awt.RectanglegetUIBounds()booleangetUseQuaqua()java.lang.BooleangetUserDisableHistory()booleangetUserFullPath()Deprecated.java.lang.StringgetUserSettingsDirectory()java.lang.StringgetVersionNote()java.lang.StringgetVersionNumber()java.lang.BooleanisDebugConsole()java.lang.BooleanisDebugUI()protected voidmapFlexServer(java.lang.String key, java.lang.String mapValue)Append keep to server mapjava.util.Map<java.lang.String,java.util.List<java.lang.String>>parseFlexMaps(java.util.prefs.Preferences maps)Parse Flex reader server mapsvoidsetCustomImageNaming(boolean b)voidsetDebugLevel(int level)Set debug level for applicationvoidsetNumOfDirectories(int i)voidsetUIBounds(java.awt.Rectangle bounds)Set ui bounds for applicationvoidsetUseQuaqua(boolean b)voidsetUserDisableHistory(boolean b)Set if history should be disabled.voidsetUserFullPath(boolean b)Deprecated.voidupdateFlexReaderServerMaps()Updates the Flex reader server maps from the configuration file.
-
-
-
Field Detail
-
LOGFILE
public static final java.lang.String LOGFILE
Public in order to configure LogAppenderProxy, but then the value might as well be configured in the log4j.properties file- See Also:
- Trac ticket #1479
-
-
Method Detail
-
flushPreferences
public void flushPreferences()
Flush preferences to disk
-
getDebugLevel
public int getDebugLevel()
Returns the level of debugging which should be set onImportConfigAny value lower than null will not call configureDebug.- Returns:
- the debug level
-
getUseQuaqua
public boolean getUseQuaqua()
- Returns:
- if quaqua should be used on mac
-
getLogFile
public java.lang.String getLogFile()
- Returns:
- location of log file
-
getHomeUrl
public java.lang.String getHomeUrl()
- Returns:
- URL for product feature list
-
getForumUrl
public java.lang.String getForumUrl()
- Returns:
- URL for community forums
-
getAppTitle
public java.lang.String getAppTitle()
- Returns:
- application title
-
getForceFileArchiveOn
public boolean getForceFileArchiveOn()
- Returns:
- application title
-
getStaticDisableHistory
public boolean getStaticDisableHistory()
- Returns:
- application title
-
setUserDisableHistory
public void setUserDisableHistory(boolean b)
Set if history should be disabled.- Parameters:
b- if history should be disabled
-
getUserDisableHistory
public java.lang.Boolean getUserDisableHistory()
- Returns:
- if history should be disabled
-
setDebugLevel
public void setDebugLevel(int level)
Set debug level for application- Parameters:
level- a debug level
-
setUseQuaqua
public void setUseQuaqua(boolean b)
- Parameters:
b- - set to use quaqua yes/no
-
getVersionNote
public java.lang.String getVersionNote()
- Returns:
- application version note
-
getVersionNumber
public java.lang.String getVersionNumber()
- Returns:
- application version number
-
isDebugConsole
public java.lang.Boolean isDebugConsole()
- Returns:
- if debug console should be shown
-
getServerPort
public java.lang.String getServerPort()
- Returns:
- server port
-
updateFlexReaderServerMaps
public void updateFlexReaderServerMaps()
Updates the Flex reader server maps from the configuration file.
-
parseFlexMaps
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> parseFlexMaps(java.util.prefs.Preferences maps)
Parse Flex reader server maps- Parameters:
maps- the Flex reader server maps- Returns:
- the parsed maps
-
mapFlexServer
protected void mapFlexServer(java.lang.String key, java.lang.String mapValue)Append keep to server map- Parameters:
key-mapValue-
-
isDebugUI
public java.lang.Boolean isDebugUI()
- Returns:
- is debug ui present
-
getUIBounds
public java.awt.Rectangle getUIBounds()
- Returns:
- the ui bounds of the application
-
setUIBounds
public void setUIBounds(java.awt.Rectangle bounds)
Set ui bounds for application- Parameters:
bounds- the bounds
-
getUserFullPath
@Deprecated public boolean getUserFullPath()
Deprecated.
-
setUserFullPath
@Deprecated public void setUserFullPath(boolean b)
Deprecated.
-
getCustomImageNaming
public boolean getCustomImageNaming()
-
setCustomImageNaming
public void setCustomImageNaming(boolean b)
-
getNumOfDirectories
public int getNumOfDirectories()
-
setNumOfDirectories
public void setNumOfDirectories(int i)
-
getUserSettingsDirectory
public java.lang.String getUserSettingsDirectory()
- Returns:
- Returns the userSettingsDirectory.
-
-