aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2010-02-24 12:19:29 +0000
committerDamian Minkov <damencho@jitsi.org>2010-02-24 12:19:29 +0000
commit150692c525e83adc8357d7a40c4ccff6494c5aac (patch)
tree228e8e47271b7548bdffe002bc23b3168669bd96 /src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java
parentfc6566ff0d650d79b324d02245deb8fdb4222bfb (diff)
downloadjitsi-150692c525e83adc8357d7a40c4ccff6494c5aac.zip
jitsi-150692c525e83adc8357d7a40c4ccff6494c5aac.tar.gz
jitsi-150692c525e83adc8357d7a40c4ccff6494c5aac.tar.bz2
Add configuration to stop/start update checks on startup for windows and linux.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java')
-rw-r--r--src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java b/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java
index 32e508f..493e371 100644
--- a/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java
+++ b/src/net/java/sip/communicator/plugin/generalconfig/GeneralConfigurationPanel.java
@@ -50,6 +50,7 @@ public class GeneralConfigurationPanel
private JComboBox notifConfigComboBox;
private JComboBox localesConfigComboBox;
+ private JCheckBox updateCheckBox;
public GeneralConfigurationPanel()
{
@@ -507,6 +508,26 @@ public class GeneralConfigurationPanel
valuePanel.add(warnLabel);
}
}
+ if(!OSUtils.IS_MAC)// if we are not running mac
+ {
+ updateCheckBox = new SIPCommCheckBox();
+ mainPanel.add(updateCheckBox);
+ mainPanel.add(new JSeparator());
+ mainPanel.add(Box.createVerticalStrut(10));
+ updateCheckBox.setText(
+ Resources.getString("plugin.generalconfig.CHECK_FOR_UPDATES"));
+ updateCheckBox.addActionListener(new ActionListener() {
+
+ public void actionPerformed(ActionEvent e)
+ {
+ GeneralConfigPluginActivator.getConfigurationService()
+ .setProperty(
+ "net.java.sip.communicator.plugin.updatechecker.ENABLED",
+ Boolean.toString(
+ ((JCheckBox)e.getSource()).isSelected()));
+ }
+ });
+ }
// {
// JPanel transparencyPanel = new JPanel();
// BorderLayout transparencyPanelLayout
@@ -564,6 +585,9 @@ public class GeneralConfigurationPanel
}
}
+ /**
+ * Init default values.
+ */
private void initDefaults()
{
groupMessagesCheckBox.setSelected(
@@ -597,8 +621,19 @@ public class GeneralConfigurationPanel
bringToFrontCheckBox.setSelected(
ConfigurationManager.isAutoPopupNewMessage());
+
+ if(!OSUtils.IS_MAC)// if we are not running mac
+ {
+ updateCheckBox.setSelected(
+ GeneralConfigPluginActivator.getConfigurationService().getBoolean((
+ "net.java.sip.communicator.plugin.updatechecker.ENABLED"), true));
+ }
}
+ /**
+ * Returns the application name.
+ * @return
+ */
private String getApplicationName()
{
return Resources.getSettingsString("service.gui.APPLICATION_NAME");
@@ -692,6 +727,9 @@ public class GeneralConfigurationPanel
}
}
+ /**
+ * Init auto start checkbox.
+ */
private void initAutoStartCheckBox()
{
try