edu.stanford.smi.protege.util
Class ApplicationProperties
java.lang.Object
edu.stanford.smi.protege.util.ApplicationProperties
- public class ApplicationProperties
- extends Object
Utility class for accessing system properties and properties from the
application properties file.
- Author:
- Ray Fergerson, Jennifer Vendetti
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_NAME
public static final String FILE_NAME
- See Also:
- Constant Field Values
NEXT_FRAME_NUMBER
public static final String NEXT_FRAME_NUMBER
- See Also:
- Constant Field Values
APPLICATION_INSTALL_DIRECTORY
public static final String APPLICATION_INSTALL_DIRECTORY
- See Also:
- Constant Field Values
CURRENT_WORKING_DIRECTORY
public static final String CURRENT_WORKING_DIRECTORY
- See Also:
- Constant Field Values
USERS_HOME_DIRECTORY
public static final String USERS_HOME_DIRECTORY
- See Also:
- Constant Field Values
PROPERTIES_IN_USER_HOME
public static final String PROPERTIES_IN_USER_HOME
- See Also:
- Constant Field Values
EXTRA_MANIFEST_PATH
public static final String EXTRA_MANIFEST_PATH
- See Also:
- Constant Field Values
MRU_PROJECTS
public static final String MRU_PROJECTS
- See Also:
- Constant Field Values
WELCOME_DIALOG
public static final String WELCOME_DIALOG
- See Also:
- Constant Field Values
MAIN_FRAME_RECTANGLE
public static final String MAIN_FRAME_RECTANGLE
- See Also:
- Constant Field Values
LOOK_AND_FEEL
public static final String LOOK_AND_FEEL
- See Also:
- Constant Field Values
BROWSER
public static final String BROWSER
- See Also:
- Constant Field Values
ApplicationProperties
public ApplicationProperties()
setLookAndFeel
public static void setLookAndFeel(String lookAndFeelName)
getLookAndFeelClassName
public static String getLookAndFeelClassName()
addProjectToMRUList
public static void addProjectToMRUList(URI uri)
flush
public static void flush()
getLogFileDirectory
public static File getLogFileDirectory()
getApplicationDirectory
public static File getApplicationDirectory()
getExtraManifestPath
public static String getExtraManifestPath()
getIntegerProperty
public static int getIntegerProperty(String name,
int defaultValue)
getBooleanProperty
public static boolean getBooleanProperty(String name,
boolean defaultValue)
getMRUProjectList
public static List getMRUProjectList()
- Returns:
- List of URI's for MRU projects
getOldNextFrameNumber
public static int getOldNextFrameNumber()
getBrowser
public static String getBrowser()
getApplicationOrSystemProperty
public static String getApplicationOrSystemProperty(String name)
getApplicationOrSystemProperty
public static String getApplicationOrSystemProperty(String name,
String defaultValue)
getString
public static String getString(String name)
getString
public static String getString(String name,
String defaultValue)
recordMainFrameProperties
public static void recordMainFrameProperties(Frame mainFrame)
restoreMainFrameProperties
public static void restoreMainFrameProperties(Frame mainFrame)
setInt
public static void setInt(String name,
int value)
setBoolean
public static void setBoolean(String name,
boolean value)
setString
public static void setString(String name,
String value)
getWelcomeDialogShow
public static boolean getWelcomeDialogShow()
setUserName
public static void setUserName(String name)
setWelcomeDialogShow
public static void setWelcomeDialogShow(boolean b)
isAutosynchronizingClsTrees
public static boolean isAutosynchronizingClsTrees()
setAutosynchronizingClsTrees
public static void setAutosynchronizingClsTrees(boolean b)
getGettingStartedURLString
public static String getGettingStartedURLString()
getFAQURLString
public static String getFAQURLString()
getUsersGuideURLString
public static String getUsersGuideURLString()
getAllHelpURLString
public static String getAllHelpURLString()
getOntology101URLString
public static String getOntology101URLString()
getUserName
public static String getUserName()
getLocale
public static Locale getLocale()
setLocale
public static void setLocale(Locale locale)
getPrettyPrintSlotWidgetLabels
public static boolean getPrettyPrintSlotWidgetLabels()
setPrettyPrintSlotWidgetLabels
public static void setPrettyPrintSlotWidgetLabels(boolean b)
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2005 Stanford University.