ome.formats.importer.util
Class IniFileLoader

java.lang.Object
  extended by ome.formats.importer.util.IniFileLoader

public class IniFileLoader
extends Object

This class loads in the default importer.ini file (or one specified from the command line when starting the app)

Author:
Brian W. Loranger

Field Summary
static String LOGFILE
          Public in order to configure LogAppenderProxy, but then the value might as well be configured in the log4j.properties file
 
Constructor Summary
IniFileLoader(File userConfigFile)
          Load given file
 
Method Summary
 void flushPreferences()
          Flush preferences to disk
 String getAppTitle()
           
 String getBugTrackerURL()
           
 boolean getCustomImageNaming()
           
 int getDebugLevel()
          Returns the level of debugging which should be set on ImportConfig Any value lower than null will not call configureDebug.
 boolean getForceFileArchiveOn()
           
 String getForumUrl()
           
 String getHomeUrl()
           
 String getLogFile()
           
 int getNumOfDirectories()
           
 String getServerPort()
           
 boolean getStaticDisableHistory()
           
 boolean getStaticDisableUpgradeCheck()
           
 Rectangle getUIBounds()
           
 String getUploaderTokenURL()
           
 String getUploaderURL()
           
 boolean getUseQuaqua()
           
 Boolean getUserDisableHistory()
           
 boolean getUserFullPath()
           
 String getUserSettingsDirectory()
           
 String getVersionNote()
           
 String getVersionNumber()
           
 Boolean isDebugConsole()
           
 Boolean isDebugUI()
           
protected  void mapFlexServer(String key, String mapValue)
          Append kep to server map
 Map<String,List<String>> parseFlexMaps(Preferences maps)
          Parse Flex reader server maps
 void setCustomImageNaming(boolean b)
           
 void setDebugLevel(int level)
          Set debug level for application
 void setNumOfDirectories(int i)
           
 void setUIBounds(Rectangle bounds)
          Set ui bounds for application
 void setUseQuaqua(boolean b)
           
 void setUserDisableHistory(boolean b)
          Set debug level for application
 void setUserFullPath(boolean b)
           
 void updateFlexReaderServerMaps()
          Updates the Flex reader server maps from the configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGFILE

public static final String LOGFILE
Public in order to configure LogAppenderProxy, but then the value might as well be configured in the log4j.properties file

See Also:
ticket:1479
Constructor Detail

IniFileLoader

public IniFileLoader(File userConfigFile)
Load given file

Parameters:
userConfigFile -
Method Detail

flushPreferences

public void flushPreferences()
Flush preferences to disk


getDebugLevel

public int getDebugLevel()
Returns the level of debugging which should be set on ImportConfig Any value lower than null will not call configureDebug.


getUseQuaqua

public boolean getUseQuaqua()
Returns:
if quaqua should be used on mac

getLogFile

public String getLogFile()
Returns:
location of log file

getHomeUrl

public String getHomeUrl()
Returns:
URL for product feature list

getForumUrl

public String getForumUrl()
Returns:
URL for community forums

getAppTitle

public String getAppTitle()
Returns:
application title

getStaticDisableUpgradeCheck

public boolean getStaticDisableUpgradeCheck()
Returns:
application title

getForceFileArchiveOn

public boolean getForceFileArchiveOn()
Returns:
application title

getStaticDisableHistory

public boolean getStaticDisableHistory()
Returns:
application title

setUserDisableHistory

public void setUserDisableHistory(boolean b)
Set debug level for application

Parameters:
level -

getUserDisableHistory

public Boolean getUserDisableHistory()
Returns:
if debug console should be shown

setDebugLevel

public void setDebugLevel(int level)
Set debug level for application

Parameters:
level -

setUseQuaqua

public void setUseQuaqua(boolean b)
Parameters:
b - - set to use quaqua yes/no

getVersionNote

public String getVersionNote()
Returns:
application version note

getVersionNumber

public String getVersionNumber()
Returns:
application version number

isDebugConsole

public Boolean isDebugConsole()
Returns:
if debug console should be shown

getServerPort

public String getServerPort()
Returns:
server port

updateFlexReaderServerMaps

public void updateFlexReaderServerMaps()
Updates the Flex reader server maps from the configuration file.


parseFlexMaps

public Map<String,List<String>> parseFlexMaps(Preferences maps)
Parse Flex reader server maps

Parameters:
maps -
Returns:

mapFlexServer

protected void mapFlexServer(String key,
                             String mapValue)
Append kep to server map

Parameters:
key -
mapValue -

isDebugUI

public Boolean isDebugUI()
Returns:
is debug ui present

getUIBounds

public Rectangle getUIBounds()
Returns:
the ui bounds of the application

setUIBounds

public void setUIBounds(Rectangle bounds)
Set ui bounds for application

Parameters:
bounds -

getUserFullPath

public boolean getUserFullPath()

setUserFullPath

public void setUserFullPath(boolean b)

getCustomImageNaming

public boolean getCustomImageNaming()

setCustomImageNaming

public void setCustomImageNaming(boolean b)

getNumOfDirectories

public int getNumOfDirectories()

setNumOfDirectories

public void setNumOfDirectories(int i)

getUploaderTokenURL

public String getUploaderTokenURL()
Returns:
uploader token URL for QA

getUploaderURL

public String getUploaderURL()
Returns:
uploader URL for QA

getBugTrackerURL

public String getBugTrackerURL()
Returns:
bug tracker URL for QA

getUserSettingsDirectory

public String getUserSettingsDirectory()
Returns:
Returns the userSettingsDirectory.


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.