|
|
|
|
@ -31,11 +31,16 @@ public class ConfigurationManager
|
|
|
|
|
|
|
|
|
|
private static boolean isApplicationVisible = true;
|
|
|
|
|
|
|
|
|
|
private static boolean isApplicationVisibleSaved = false;
|
|
|
|
|
|
|
|
|
|
private static boolean isSendTypingNotifications = true;
|
|
|
|
|
|
|
|
|
|
private static ConfigurationService configService
|
|
|
|
|
= GuiActivator.getConfigurationService();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
public static void loadGuiConfigurations()
|
|
|
|
|
{
|
|
|
|
|
// Load the "auPopupNewMessage" property.
|
|
|
|
|
@ -79,6 +84,16 @@ public static void loadGuiConfigurations()
|
|
|
|
|
isApplicationVisible = new Boolean(isVisible).booleanValue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Load the "showApplicationSaved" property.
|
|
|
|
|
String isVisibleSaved = configService.getString(
|
|
|
|
|
"net.java.sip.communicator.impl.systray.showApplicationSaved");
|
|
|
|
|
|
|
|
|
|
if(isVisible != null && isVisible != "")
|
|
|
|
|
{
|
|
|
|
|
isApplicationVisibleSaved
|
|
|
|
|
= new Boolean(isVisibleSaved).booleanValue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Load the "sendTypingNotifications" property.
|
|
|
|
|
String isSendTypingNotif = configService.getString(
|
|
|
|
|
"net.java.sip.communicator.impl.gui.sendTypingNotifications");
|
|
|
|
|
@ -138,6 +153,18 @@ public static boolean isApplicationVisible()
|
|
|
|
|
return isApplicationVisible;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return TRUE if "showApplicationSaved" property is true, otherwise -
|
|
|
|
|
* return FALSE. Indicates to the user interface whether the main
|
|
|
|
|
* application window should shown or hidden on startup.
|
|
|
|
|
* @return TRUE if "showApplicationSaved" property is true, otherwise -
|
|
|
|
|
* return FALSE.
|
|
|
|
|
*/
|
|
|
|
|
public static boolean isApplicationVisibleSaved()
|
|
|
|
|
{
|
|
|
|
|
return isApplicationVisibleSaved;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Return TRUE if "sendTypingNotifications" property is true, otherwise -
|
|
|
|
|
* return FALSE. Indicates to the user interface whether typing
|
|
|
|
|
@ -229,6 +256,22 @@ public static void setApplicationVisible(boolean isVisible)
|
|
|
|
|
new Boolean(isVisible));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Updates the "showApplicationSaved" property through the
|
|
|
|
|
* <tt>ConfigurationService</tt>.
|
|
|
|
|
*
|
|
|
|
|
* @param isSaved <code>true</code> to indicate that the
|
|
|
|
|
* application visible property is saved, <code>false</code> otherwise.
|
|
|
|
|
*/
|
|
|
|
|
public static void setApplicationVisibleSaved(boolean isSaved)
|
|
|
|
|
{
|
|
|
|
|
isApplicationVisibleSaved = isSaved;
|
|
|
|
|
|
|
|
|
|
configService.setProperty(
|
|
|
|
|
"net.java.sip.communicator.impl.systray.showApplicationSaved",
|
|
|
|
|
new Boolean(isSaved));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Updates the "sendTypingNotifications" property through the
|
|
|
|
|
* <tt>ConfigurationService</tt>.
|
|
|
|
|
|