Package ome.formats.importer.util
Class IniFileLoader
- java.lang.Object
-
- ome.formats.importer.util.IniFileLoader
-
public class IniFileLoader extends java.lang.Object
This 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.String
LOGFILE
Public 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 void
flushPreferences()
Flush preferences to diskjava.lang.String
getAppTitle()
boolean
getCustomImageNaming()
int
getDebugLevel()
Returns the level of debugging which should be set onImportConfig
Any value lower than null will not call configureDebug.boolean
getForceFileArchiveOn()
java.lang.String
getForumUrl()
java.lang.String
getHomeUrl()
java.lang.String
getLogFile()
int
getNumOfDirectories()
java.lang.String
getServerPort()
boolean
getStaticDisableHistory()
java.awt.Rectangle
getUIBounds()
boolean
getUseQuaqua()
java.lang.Boolean
getUserDisableHistory()
boolean
getUserFullPath()
Deprecated.java.lang.String
getUserSettingsDirectory()
java.lang.String
getVersionNote()
java.lang.String
getVersionNumber()
java.lang.Boolean
isDebugConsole()
java.lang.Boolean
isDebugUI()
protected void
mapFlexServer(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 mapsvoid
setCustomImageNaming(boolean b)
void
setDebugLevel(int level)
Set debug level for applicationvoid
setNumOfDirectories(int i)
void
setUIBounds(java.awt.Rectangle bounds)
Set ui bounds for applicationvoid
setUseQuaqua(boolean b)
void
setUserDisableHistory(boolean b)
Set if history should be disabled.void
setUserFullPath(boolean b)
Deprecated.void
updateFlexReaderServerMaps()
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 onImportConfig
Any 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.
-
-