net.sourceforge.rssowl.util
Class GlobalSettings

java.lang.Object
  extended bynet.sourceforge.rssowl.util.GlobalSettings

public class GlobalSettings
extends Object

This class holds some settings the user has made in RSSOwl. A lot of Objects in RSSOwl need to access them, thats why they are declared public and static. Also contains some constants that are used in the application.

Version:
1.1.3
Author:
Benjamin Pasero

Field Summary
static boolean _IS_DEBUG
          Developer Flag indicating state of debug mode.
static boolean _IS_PRE_RELEASE
          Developer Flag indicating a pre release version.
static String amphetaRatePassword
          AmphetaRate Password
static String amphetaRateUserID
          AmphetaRate User ID (old)
static String amphetaRateUsername
          AmphetaRate Username
static boolean animateNewsPopup
          TRUE: Move the Popup in, from right to left
FALSE: Just show the Popup
static String ARCHIVE_DIR
          Dir to write the archive.
static boolean autoCloseNewsPopup
          TRUE: Close news popup automatically after some time
FALSE: Do not close news popup automatically
static boolean autoSortNews
          TRUE: Sort news based on the sortOrder settings
FALSE: Do not sort news, leave it as in the XML document
static boolean blockPopups
          TRUE: Block popups from the internal browser
FALSE: Do not block popups from the internal browser

Note: This setting is ignored on Linux, since Mozilla is taking care of popups for itself.
static String bloggerArguments
          Arguments of the blogger
static String bloggerPath
          Path to the executable of the blogger
static String CACHE_DIR
          Dir to write the cache.
static String charEncoding
          Set the character encoding - Default: UTF-8
static boolean checkUpdate
          TRUE: Check for an updated version of RSSOwl on startup
FALSE: Do not check for an updated version of RSSOwl on startup
static boolean confirmBlogrollDeletion
          TRUE: Show a confirm dialog when deleting a blogroll
FALSE: Do not show a confirm dialog when deleting a blogroll
static boolean confirmCategoryDeletion
          TRUE: Show a confirm dialog when deleting a category
FALSE: Do not show a confirm dialog when deleting a category
static boolean confirmFavoriteDeletion
          TRUE: Show a confirm dialog when deleting a favorite
FALSE: Do not show a confirm dialog when deleting a favorite
static int connectionTimeout
          Connection Timeout for all HttpClient connections in seconds
static String CRYPT_FILE
          The path to the file that is used to store sensitive user data
static String customBrowser
          Custom Browser executable path
static String customBrowserArguments
          Custom Browser arguments
static String[] defaultSortOrder
          The default Sort Order for News
static boolean directOpenEachNews
          TRUE: Open each selected news in browser
FALSE: Do not open each selected news in browser
static boolean directOpenNews
          TRUE: Open news directly in the browser if description is empty
FALSE: Do not open news directly in the browser if description is empty
static boolean displaySingleTab
          TRUE: Display only one tab
FALSE: Display multiple tabs
static int favDefaultAutoReloadInterval
          Default Auto reload intervall for new favorites
static boolean favDefaultOpenOnStartup
          Default boolean value for a new favorite
static boolean favDefaultReloadOnStartup
          Default boolean value for a new favorite
static boolean focusNewTabs
          TRUE: Focus on new opened tabs
FALSE: Do not focus on new opened tabs
static boolean htmlFormatMail
          TRUE: Format NewsTip mail with HTML tags
FALSE: Do not format NewsTip mail with HTML tags
static boolean isDoubleClickOpen
          TRUE: Open category / favorites in Tree with a Double click
FALSE: Open category / favorites in Tree with a Single click
static boolean isFavoritesTreeShown
          TRUE: Show Favorites Tree
FALSE: Do not show Favorites tree
private static boolean isLinux
          Flag specifying if OS is Linux
private static boolean isMac
          Flag specifying if OS is Mac
static boolean isQuickviewShown
          TRUE: Show Quickview window in top of RSSOwl
FALSE: Do not show Quickview window
private static boolean isSolaris
          Flag specifying if OS is Solaris
static boolean isThreeColumnGUI
          TRUE: GUI has three columns to display URL Tree, Newsheader and Newstext
FALSE: GUI has two columns, second column is divided into two rows.
static boolean isToolBarShown
          TRUE: Show ToolBar window in top of RSSOwl
FALSE: Do not show ToolBar window
static boolean isTreeToolBarShown
          TRUE: The Tree ToolBar is visible
FALSE: The Tree ToolBar is not visible
static boolean isWelcomeShown
          TRUE: Display the welcome tab
FALSE: Do not display the welcome tab
private static boolean isWindows
          Flag specifying if OS is Windows
static org.eclipse.swt.graphics.RGB linkColor
          Selected link color
static boolean localCacheFeeds
          TRUE: Save loaded feeds to the local cache folder
FALSE: Do not save loaded feeds to the local cache folder
static String LOGS_DIR
          Dir to write the logs.
static String mailBody
          Body of the NewsTip mail
static String mailSubject
          String of the NewsTip mail
static boolean markAllReadOnMinimize
          TRUE: Mark all news read on window minimization
FALSE: Do not mark all news read on window minimization
static boolean markFeedReadOnTabClose
          TRUE: Mark news of displayed tab read on tab close
FALSE: Do not mark news of displayed tab read on tab close
static int maxConnectionCount
          The maximum number of connections at one time
static boolean openBrowserExtern
          TRUE: Open the browser external
FALSE: Use the internal browser in RSSOwl
static boolean openNewBrowserWindow
          TRUE: Open each internal browser in a new tab
FALSE: Open each internal browser in the same tab
static String PATH_SEPARATOR
          OS dependant File separator
static boolean reopenFeeds
          TRUE: Re-Open feeds that were opened on startup
FALSE: Do not re-Open feeds that were opened on startup
static String RSSOWL_SETTINGS_FILE
          The path to the file that is used to cache settings for RSSOwl.
static String selectedTreeItem
          Save the last selected tree item
static boolean setProxyForAllFavorites
          TRUE: On Proxy activation, activate it for all favorites
FALSE: On Proxy activation, do not activate it for all favorites
static boolean showChannelInfo
          TRUE: Display channel info of RSS / RDF feeds
FALSE: Do not display channel info of RSS / RDF feeds
static boolean showErrors
          TRUE: Show errors in tabs
FALSE: Do not show errors in tabs
static boolean showSystrayIcon
          TRUE: Place application in tray after minimize
FALSE: Do not place application in tray after minimize
static boolean showTabCloseButton
          TRUE: Show the close button on each CTabItem
FALSE: Do not show a close button on the CTabItems
static boolean showTrayPopup
          TRUE: Show the tray popup when unread news are downloaded
FALSE: Do not show the tray popup when unread news are downloaded
static boolean simpleTabs
          TRUE: Use simple styled tabs
FALSE: Use curved styled tabs
static Vector sortOrder
          Sort order for the News
static org.eclipse.swt.graphics.RGB syntaxHighlightColor
          Selected syntaxhighlight color
static boolean tabPositionIsTop
          TRUE: Tabs in TabFolder are displayed on TOP of the Control
FALSE: Tabs in TabFolder are displayed on BOTTOM of the Control
static String TEMP_DIR
          Dir to write temp files.
static String TEMP_EXPORT_FILE
          The path to the file that is used to cache exports as XML file.
static String TEMP_FEED_FILE
          The path to the file that is used to cache feeds as XML file.
static boolean trayOnExit
          TRUE: Minimize RSSOwl to tray on exit
FALSE: Do not minimize RSSOwl to tray on exit
static boolean trayOnStartup
          TRUE: Minimize RSSOwl to tray on startup
FALSE: Do not minimize RSSOwl to tray on startup
static boolean useBrowserForNewsText
          TRUE: Display newstext in internal browser
FALSE: Display newstext in Text-Box
static String WORKING_DIR
          Dir to write temporary files.
static boolean workOffline
          TRUE: RSSOwl is in offline mode
FALSE: RSSOwl is not in offline mode
 
Constructor Summary
private GlobalSettings()
          This utility class constructor is hidden
 
Method Summary
static boolean isLinux()
          Return TRUE if the platform is Linux
static boolean isMac()
          Return TRUE if the platform is Mac
static boolean isSolaris()
          Return TRUE if the platform is Solaris
static boolean isWindows()
          Return TRUE if the platform is Windows
static boolean shouldShowMnemonics()
          Check wether mnemonics should be displayed in the current selected language.
static boolean useInternalBrowser()
          Get wether the Internal Browser should be used Currently: win32, gtk and mac supported
static boolean useIText()
          Get wether iText should be used.
static boolean usePrinting()
          Get wether Printing should be used Currently: win32 / carbon / motif supported
static boolean useSystemTray()
          Get wether system tray is supported Currently: win32 / gtk supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_IS_DEBUG

public static boolean _IS_DEBUG
Developer Flag indicating state of debug mode.
In Debug mode, RSSOwl will print a lot of information helpful for problem-debugging to the console.

Set the value of this flag by passing following DWord: "net.sourceforge.rssowl.debug"


_IS_PRE_RELEASE

public static final boolean _IS_PRE_RELEASE
Developer Flag indicating a pre release version.
!!! PLEASE DO NOT CHANGE THIS VALUE !!!

See Also:
Constant Field Values

amphetaRatePassword

public static String amphetaRatePassword
AmphetaRate Password


amphetaRateUserID

public static String amphetaRateUserID
AmphetaRate User ID (old)


amphetaRateUsername

public static String amphetaRateUsername
AmphetaRate Username


animateNewsPopup

public static boolean animateNewsPopup
TRUE: Move the Popup in, from right to left
FALSE: Just show the Popup


ARCHIVE_DIR

public static String ARCHIVE_DIR
Dir to write the archive. Has to be writeable


autoCloseNewsPopup

public static boolean autoCloseNewsPopup
TRUE: Close news popup automatically after some time
FALSE: Do not close news popup automatically


autoSortNews

public static boolean autoSortNews
TRUE: Sort news based on the sortOrder settings
FALSE: Do not sort news, leave it as in the XML document


blockPopups

public static boolean blockPopups
TRUE: Block popups from the internal browser
FALSE: Do not block popups from the internal browser

Note: This setting is ignored on Linux, since Mozilla is taking care of popups for itself.


bloggerArguments

public static String bloggerArguments
Arguments of the blogger


bloggerPath

public static String bloggerPath
Path to the executable of the blogger


CACHE_DIR

public static String CACHE_DIR
Dir to write the cache. Has to be writeable


charEncoding

public static String charEncoding
Set the character encoding - Default: UTF-8


checkUpdate

public static boolean checkUpdate
TRUE: Check for an updated version of RSSOwl on startup
FALSE: Do not check for an updated version of RSSOwl on startup


confirmBlogrollDeletion

public static boolean confirmBlogrollDeletion
TRUE: Show a confirm dialog when deleting a blogroll
FALSE: Do not show a confirm dialog when deleting a blogroll


confirmCategoryDeletion

public static boolean confirmCategoryDeletion
TRUE: Show a confirm dialog when deleting a category
FALSE: Do not show a confirm dialog when deleting a category


confirmFavoriteDeletion

public static boolean confirmFavoriteDeletion
TRUE: Show a confirm dialog when deleting a favorite
FALSE: Do not show a confirm dialog when deleting a favorite


connectionTimeout

public static int connectionTimeout
Connection Timeout for all HttpClient connections in seconds


CRYPT_FILE

public static String CRYPT_FILE
The path to the file that is used to store sensitive user data


customBrowser

public static String customBrowser
Custom Browser executable path


customBrowserArguments

public static String customBrowserArguments
Custom Browser arguments


defaultSortOrder

public static String[] defaultSortOrder
The default Sort Order for News


directOpenEachNews

public static boolean directOpenEachNews
TRUE: Open each selected news in browser
FALSE: Do not open each selected news in browser


directOpenNews

public static boolean directOpenNews
TRUE: Open news directly in the browser if description is empty
FALSE: Do not open news directly in the browser if description is empty


displaySingleTab

public static boolean displaySingleTab
TRUE: Display only one tab
FALSE: Display multiple tabs


favDefaultAutoReloadInterval

public static int favDefaultAutoReloadInterval
Default Auto reload intervall for new favorites


favDefaultOpenOnStartup

public static boolean favDefaultOpenOnStartup
Default boolean value for a new favorite


favDefaultReloadOnStartup

public static boolean favDefaultReloadOnStartup
Default boolean value for a new favorite


focusNewTabs

public static boolean focusNewTabs
TRUE: Focus on new opened tabs
FALSE: Do not focus on new opened tabs


htmlFormatMail

public static boolean htmlFormatMail
TRUE: Format NewsTip mail with HTML tags
FALSE: Do not format NewsTip mail with HTML tags


isDoubleClickOpen

public static boolean isDoubleClickOpen
TRUE: Open category / favorites in Tree with a Double click
FALSE: Open category / favorites in Tree with a Single click


isFavoritesTreeShown

public static boolean isFavoritesTreeShown
TRUE: Show Favorites Tree
FALSE: Do not show Favorites tree


isQuickviewShown

public static boolean isQuickviewShown
TRUE: Show Quickview window in top of RSSOwl
FALSE: Do not show Quickview window


isThreeColumnGUI

public static boolean isThreeColumnGUI
TRUE: GUI has three columns to display URL Tree, Newsheader and Newstext
FALSE: GUI has two columns, second column is divided into two rows.


isToolBarShown

public static boolean isToolBarShown
TRUE: Show ToolBar window in top of RSSOwl
FALSE: Do not show ToolBar window


isTreeToolBarShown

public static boolean isTreeToolBarShown
TRUE: The Tree ToolBar is visible
FALSE: The Tree ToolBar is not visible


isWelcomeShown

public static boolean isWelcomeShown
TRUE: Display the welcome tab
FALSE: Do not display the welcome tab


linkColor

public static org.eclipse.swt.graphics.RGB linkColor
Selected link color


localCacheFeeds

public static boolean localCacheFeeds
TRUE: Save loaded feeds to the local cache folder
FALSE: Do not save loaded feeds to the local cache folder


LOGS_DIR

public static String LOGS_DIR
Dir to write the logs. Has to be writeable


mailBody

public static String mailBody
Body of the NewsTip mail


mailSubject

public static String mailSubject
String of the NewsTip mail


markAllReadOnMinimize

public static boolean markAllReadOnMinimize
TRUE: Mark all news read on window minimization
FALSE: Do not mark all news read on window minimization


markFeedReadOnTabClose

public static boolean markFeedReadOnTabClose
TRUE: Mark news of displayed tab read on tab close
FALSE: Do not mark news of displayed tab read on tab close


maxConnectionCount

public static int maxConnectionCount
The maximum number of connections at one time


openBrowserExtern

public static boolean openBrowserExtern
TRUE: Open the browser external
FALSE: Use the internal browser in RSSOwl


openNewBrowserWindow

public static boolean openNewBrowserWindow
TRUE: Open each internal browser in a new tab
FALSE: Open each internal browser in the same tab


PATH_SEPARATOR

public static String PATH_SEPARATOR
OS dependant File separator


reopenFeeds

public static boolean reopenFeeds
TRUE: Re-Open feeds that were opened on startup
FALSE: Do not re-Open feeds that were opened on startup


RSSOWL_SETTINGS_FILE

public static String RSSOWL_SETTINGS_FILE
The path to the file that is used to cache settings for RSSOwl.


selectedTreeItem

public static String selectedTreeItem
Save the last selected tree item


setProxyForAllFavorites

public static boolean setProxyForAllFavorites
TRUE: On Proxy activation, activate it for all favorites
FALSE: On Proxy activation, do not activate it for all favorites


showChannelInfo

public static boolean showChannelInfo
TRUE: Display channel info of RSS / RDF feeds
FALSE: Do not display channel info of RSS / RDF feeds


showErrors

public static boolean showErrors
TRUE: Show errors in tabs
FALSE: Do not show errors in tabs


showSystrayIcon

public static boolean showSystrayIcon
TRUE: Place application in tray after minimize
FALSE: Do not place application in tray after minimize


showTabCloseButton

public static boolean showTabCloseButton
TRUE: Show the close button on each CTabItem
FALSE: Do not show a close button on the CTabItems


showTrayPopup

public static boolean showTrayPopup
TRUE: Show the tray popup when unread news are downloaded
FALSE: Do not show the tray popup when unread news are downloaded


simpleTabs

public static boolean simpleTabs
TRUE: Use simple styled tabs
FALSE: Use curved styled tabs


sortOrder

public static Vector sortOrder
Sort order for the News


syntaxHighlightColor

public static org.eclipse.swt.graphics.RGB syntaxHighlightColor
Selected syntaxhighlight color


tabPositionIsTop

public static boolean tabPositionIsTop
TRUE: Tabs in TabFolder are displayed on TOP of the Control
FALSE: Tabs in TabFolder are displayed on BOTTOM of the Control


TEMP_DIR

public static String TEMP_DIR
Dir to write temp files. Has to be writeable


TEMP_EXPORT_FILE

public static String TEMP_EXPORT_FILE
The path to the file that is used to cache exports as XML file.


TEMP_FEED_FILE

public static String TEMP_FEED_FILE
The path to the file that is used to cache feeds as XML file.


trayOnExit

public static boolean trayOnExit
TRUE: Minimize RSSOwl to tray on exit
FALSE: Do not minimize RSSOwl to tray on exit


trayOnStartup

public static boolean trayOnStartup
TRUE: Minimize RSSOwl to tray on startup
FALSE: Do not minimize RSSOwl to tray on startup


useBrowserForNewsText

public static boolean useBrowserForNewsText
TRUE: Display newstext in internal browser
FALSE: Display newstext in Text-Box


WORKING_DIR

public static String WORKING_DIR
Dir to write temporary files. Has to be writeable


workOffline

public static boolean workOffline
TRUE: RSSOwl is in offline mode
FALSE: RSSOwl is not in offline mode


isLinux

private static boolean isLinux
Flag specifying if OS is Linux


isMac

private static boolean isMac
Flag specifying if OS is Mac


isSolaris

private static boolean isSolaris
Flag specifying if OS is Solaris


isWindows

private static boolean isWindows
Flag specifying if OS is Windows

Constructor Detail

GlobalSettings

private GlobalSettings()
This utility class constructor is hidden

Method Detail

isLinux

public static boolean isLinux()
Return TRUE if the platform is Linux

Returns:
boolean TRUE if platform is Linux

isMac

public static boolean isMac()
Return TRUE if the platform is Mac

Returns:
boolean TRUE if platform is Mac

isSolaris

public static boolean isSolaris()
Return TRUE if the platform is Solaris

Returns:
boolean TRUE if platform is Solaris

isWindows

public static boolean isWindows()
Return TRUE if the platform is Windows

Returns:
boolean TRUE if platform is Windows

shouldShowMnemonics

public static boolean shouldShowMnemonics()
Check wether mnemonics should be displayed in the current selected language. Currently Korean, Japanese, Chinese Simplified and Chinese Traditional do not require display of Mnmeonics. Also on Mac, they should not be displayed, since not supported by the OS.

Returns:
boolean TRUE if Mnemonics should be displayed

useInternalBrowser

public static boolean useInternalBrowser()
Get wether the Internal Browser should be used Currently: win32, gtk and mac supported

Returns:
TRUE if it should be used

useIText

public static boolean useIText()
Get wether iText should be used. That library is responsible to generate PDF, RTF or HTML from a newsfeed. Mac is not supported, since on Mac its not possible to use SWT and AWT in one application yet.

Returns:
TRUE if it should be used

usePrinting

public static boolean usePrinting()
Get wether Printing should be used Currently: win32 / carbon / motif supported

Returns:
TRUE if it should be used

useSystemTray

public static boolean useSystemTray()
Get wether system tray is supported Currently: win32 / gtk supported

Returns:
TRUE if it should be used


RSSOwl - RSS / RDF / Atom Newsreader

SourceForge.net Logo