mirror of https://github.com/sipwise/jitsi.git
cusax-fix
parent
1bc5bfe3fa
commit
ef52ece410
@ -1,83 +0,0 @@
|
||||
package net.java.sip.communicator.plugin.chatconfig;
|
||||
|
||||
import net.java.sip.communicator.service.configuration.*;
|
||||
import net.java.sip.communicator.service.gui.*;
|
||||
import net.java.sip.communicator.service.resources.*;
|
||||
import net.java.sip.communicator.util.*;
|
||||
|
||||
import org.osgi.framework.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Yana Stamcheva
|
||||
*/
|
||||
public class ChatConfigActivator
|
||||
implements BundleActivator
|
||||
{
|
||||
/**
|
||||
* The logger.
|
||||
*/
|
||||
private static final Logger logger
|
||||
= Logger.getLogger(ChatConfigActivator.class);
|
||||
|
||||
/**
|
||||
* The bundle context.
|
||||
*/
|
||||
protected static BundleContext bundleContext;
|
||||
|
||||
/**
|
||||
* The resource management service.
|
||||
*/
|
||||
private static ResourceManagementService resourceService;
|
||||
|
||||
/**
|
||||
* The configuration service.
|
||||
*/
|
||||
private static ConfigurationService configService;
|
||||
|
||||
/**
|
||||
* Starts this bundle.
|
||||
* @param bc the bundle context
|
||||
* @throws Exception if something goes wrong
|
||||
*/
|
||||
public void start(BundleContext bc)
|
||||
throws Exception
|
||||
{
|
||||
bundleContext = bc;
|
||||
|
||||
bundleContext
|
||||
.registerService(
|
||||
ConfigurationForm.class.getName(),
|
||||
new LazyConfigurationForm(
|
||||
"net.java.sip.communicator.plugin.generalconfig.GeneralConfigurationPanel",
|
||||
getClass().getClassLoader(),
|
||||
"plugin.generalconfig.PLUGIN_ICON",
|
||||
"service.gui.GENERAL",
|
||||
30),
|
||||
null);
|
||||
|
||||
if (logger.isInfoEnabled())
|
||||
logger.info("PREFERENCES PLUGIN... [REGISTERED]");
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops this bundle.
|
||||
* @param bc the bundle context
|
||||
* @throws Exception if something goes wrong
|
||||
*/
|
||||
public void stop(BundleContext bc) throws Exception
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the <tt>ResourceManagementService</tt> implementation.
|
||||
* @return the <tt>ResourceManagementService</tt> implementation
|
||||
*/
|
||||
public static ResourceManagementService getResources()
|
||||
{
|
||||
if (resourceService == null)
|
||||
resourceService
|
||||
= ResourceManagementServiceUtils.getService(bundleContext);
|
||||
return resourceService;
|
||||
}
|
||||
}
|
||||
@ -1,222 +0,0 @@
|
||||
/*
|
||||
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
|
||||
*
|
||||
* Distributable under LGPL license.
|
||||
* See terms of license at gnu.org.
|
||||
*/
|
||||
package net.java.sip.communicator.plugin.chatconfig;
|
||||
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.*;
|
||||
|
||||
import net.java.sip.communicator.util.swing.*;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Yana Stamcheva
|
||||
*/
|
||||
public class ChatConfigPanel
|
||||
extends TransparentPanel
|
||||
{
|
||||
public ChatConfigPanel()
|
||||
{
|
||||
super(new BorderLayout());
|
||||
|
||||
this.setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
|
||||
|
||||
TransparentPanel mainPanel = new TransparentPanel();
|
||||
|
||||
BoxLayout boxLayout = new BoxLayout(mainPanel, BoxLayout.Y_AXIS);
|
||||
mainPanel.setLayout(boxLayout);
|
||||
this.add(mainPanel, BorderLayout.NORTH);
|
||||
|
||||
// mainPanel.add(createGroupMessagesCheckbox());
|
||||
// mainPanel.add(Box.createVerticalStrut(10));
|
||||
//
|
||||
// mainPanel.add(createHistoryPanel());
|
||||
// mainPanel.add(Box.createVerticalStrut(10));
|
||||
//
|
||||
// mainPanel.add(createSendMessagePanel());
|
||||
// mainPanel.add(Box.createVerticalStrut(10));
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the group messages check box.
|
||||
* @return the created check box
|
||||
*/
|
||||
// private Component createGroupMessagesCheckbox()
|
||||
// {
|
||||
// final JCheckBox groupMessagesCheckBox = new SIPCommCheckBox();
|
||||
// groupMessagesCheckBox.setText(
|
||||
// ChatConfigActivator.getResources().getI18NString(
|
||||
// "plugin.generalconfig.GROUP_CHAT_MESSAGES"));
|
||||
//
|
||||
// groupMessagesCheckBox.setSelected(
|
||||
// ConfigurationManager.isMultiChatWindowEnabled());
|
||||
//
|
||||
// groupMessagesCheckBox.setAlignmentX(JCheckBox.CENTER_ALIGNMENT);
|
||||
// groupMessagesCheckBox.addActionListener(new ActionListener()
|
||||
// {
|
||||
// public void actionPerformed(ActionEvent e)
|
||||
// {
|
||||
// ConfigurationManager.setMultiChatWindowEnabled(
|
||||
// groupMessagesCheckBox.isSelected());
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// return groupMessagesCheckBox;
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * Initializes the history panel.
|
||||
// * @return the created history panel
|
||||
// */
|
||||
// private Component createHistoryPanel()
|
||||
// {
|
||||
// TransparentPanel logHistoryPanel = new TransparentPanel();
|
||||
//
|
||||
// logHistoryPanel.setLayout(null);
|
||||
// logHistoryPanel.setPreferredSize(new Dimension(250, 57));
|
||||
// logHistoryPanel.setAlignmentX(JPanel.CENTER_ALIGNMENT);
|
||||
//
|
||||
// // Log history check box.
|
||||
// final JCheckBox logHistoryCheckBox = new SIPCommCheckBox();
|
||||
// logHistoryPanel.add(logHistoryCheckBox);
|
||||
// logHistoryCheckBox.setText(
|
||||
// ChatConfigActivator.getResources()
|
||||
// .getI18NString("plugin.generalconfig.LOG_HISTORY"));
|
||||
// logHistoryCheckBox.setBounds(0, 0, 200, 19);
|
||||
// logHistoryCheckBox.setSelected(
|
||||
// ConfigurationManager.isHistoryLoggingEnabled());
|
||||
//
|
||||
// logHistoryCheckBox.addActionListener(new ActionListener()
|
||||
// {
|
||||
// public void actionPerformed(ActionEvent e)
|
||||
// {
|
||||
// ConfigurationManager.setHistoryLoggingEnabled(
|
||||
// logHistoryCheckBox.isSelected());
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // Show history check box.
|
||||
// final JCheckBox showHistoryCheckBox = new SIPCommCheckBox();
|
||||
// logHistoryPanel.add(showHistoryCheckBox);
|
||||
// showHistoryCheckBox.setText(
|
||||
// ChatConfigActivator.getResources()
|
||||
// .getI18NString("plugin.generalconfig.SHOW_HISTORY"));
|
||||
// showHistoryCheckBox.setBounds(17, 25, 200, 19);
|
||||
// showHistoryCheckBox.setSelected(
|
||||
// ConfigurationManager.isHistoryShown());
|
||||
//
|
||||
// showHistoryCheckBox.addActionListener(new ActionListener()
|
||||
// {
|
||||
// public void actionPerformed(ActionEvent e)
|
||||
// {
|
||||
// ConfigurationManager.setHistoryShown(
|
||||
// showHistoryCheckBox.isSelected());
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// // History size.
|
||||
// SpinnerNumberModel historySizeSpinnerModel =
|
||||
// new SpinnerNumberModel(0, 0, 140, 1);
|
||||
// final JSpinner historySizeSpinner = new JSpinner();
|
||||
// logHistoryPanel.add(historySizeSpinner);
|
||||
// historySizeSpinner.setModel(historySizeSpinnerModel);
|
||||
// historySizeSpinner.setBounds(150, 23, 47, 22);
|
||||
// historySizeSpinner.setValue(
|
||||
// ConfigurationManager.getChatHistorySize());
|
||||
//
|
||||
// logHistoryCheckBox.addChangeListener(new ChangeListener()
|
||||
// {
|
||||
// public void stateChanged(ChangeEvent e)
|
||||
// {
|
||||
// showHistoryCheckBox.setEnabled(
|
||||
// logHistoryCheckBox.isSelected());
|
||||
// historySizeSpinner.setEnabled(
|
||||
// logHistoryCheckBox.isSelected());
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// showHistoryCheckBox.addChangeListener(new ChangeListener()
|
||||
// {
|
||||
// public void stateChanged(ChangeEvent e)
|
||||
// {
|
||||
// historySizeSpinner.setEnabled(
|
||||
// showHistoryCheckBox.isSelected());
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// historySizeSpinnerModel.addChangeListener(
|
||||
// new ChangeListener()
|
||||
// {
|
||||
// public void stateChanged(ChangeEvent e)
|
||||
// {
|
||||
// ConfigurationManager.setChatHistorySize(
|
||||
// ((Integer) historySizeSpinner
|
||||
// .getValue()).intValue());
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// JLabel historySizeLabel = new JLabel();
|
||||
// logHistoryPanel.add(historySizeLabel);
|
||||
// historySizeLabel.setText(
|
||||
// ChatConfigActivator.getResources()
|
||||
// .getI18NString("plugin.generalconfig.HISTORY_SIZE"));
|
||||
// historySizeLabel.setBounds(205, 27, 220, 15);
|
||||
//
|
||||
// if (!ConfigurationManager.isHistoryLoggingEnabled())
|
||||
// {
|
||||
// showHistoryCheckBox.setEnabled(false);
|
||||
// historySizeSpinner.setEnabled(false);
|
||||
// }
|
||||
//
|
||||
// if (!ConfigurationManager.isHistoryShown())
|
||||
// {
|
||||
// historySizeSpinner.setEnabled(false);
|
||||
// }
|
||||
//
|
||||
// return logHistoryPanel;
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * Initializes the send message configuration panel.
|
||||
// * @return the created message config panel
|
||||
// */
|
||||
// private Component createSendMessagePanel()
|
||||
// {
|
||||
// TransparentPanel sendMessagePanel
|
||||
// = new TransparentPanel(new FlowLayout(FlowLayout.CENTER));
|
||||
//
|
||||
// JLabel sendMessageLabel = new JLabel();
|
||||
// sendMessagePanel.add(sendMessageLabel);
|
||||
// sendMessageLabel.setText(
|
||||
// ChatConfigActivator.getResources()
|
||||
// .getI18NString("plugin.generalconfig.SEND_MESSAGES_WITH"));
|
||||
//
|
||||
// ComboBoxModel sendMessageComboBoxModel =
|
||||
// new DefaultComboBoxModel(
|
||||
// new String[] {
|
||||
// ConfigurationManager.ENTER_COMMAND,
|
||||
// ConfigurationManager.CTRL_ENTER_COMMAND });
|
||||
// final JComboBox sendMessageComboBox = new JComboBox();
|
||||
// sendMessagePanel.add(sendMessageComboBox);
|
||||
// sendMessageComboBox.setModel(sendMessageComboBoxModel);
|
||||
// sendMessageComboBox.setSelectedItem(
|
||||
// ConfigurationManager.getSendMessageCommand());
|
||||
//
|
||||
// sendMessageComboBox.addItemListener(new ItemListener()
|
||||
// {
|
||||
// public void itemStateChanged(ItemEvent arg0)
|
||||
// {
|
||||
// ConfigurationManager.setSendMessageCommand(
|
||||
// (String)sendMessageComboBox.getSelectedItem());
|
||||
// }
|
||||
// });
|
||||
//
|
||||
// return sendMessagePanel;
|
||||
// }
|
||||
}
|
||||
@ -1,31 +0,0 @@
|
||||
Bundle-Activator: net.java.sip.communicator.plugin.chatconfig.ChatConfigActivator
|
||||
Bundle-Name: Chat config plugin
|
||||
Bundle-Description: The plugin offering chat configuration page.
|
||||
Bundle-Vendor: sip-communicator.org
|
||||
Bundle-Version: 0.0.1
|
||||
System-Bundle: yes
|
||||
Import-Package: org.osgi.framework,
|
||||
net.java.sip.communicator.service.configuration,
|
||||
net.java.sip.communicator.service.contactlist,
|
||||
net.java.sip.communicator.service.contactlist.event,
|
||||
net.java.sip.communicator.service.protocol,
|
||||
net.java.sip.communicator.service.gui,
|
||||
net.java.sip.communicator.service.gui.event,
|
||||
net.java.sip.communicator.service.resources,
|
||||
net.java.sip.communicator.service.systray,
|
||||
net.java.sip.communicator.util,
|
||||
net.java.sip.communicator.util.swing,
|
||||
javax.swing,
|
||||
javax.swing.event,
|
||||
javax.swing.table,
|
||||
javax.swing.text,
|
||||
javax.swing.text.html,
|
||||
javax.accessibility,
|
||||
javax.swing.plaf,
|
||||
javax.swing.plaf.metal,
|
||||
javax.swing.plaf.basic,
|
||||
javax.imageio,
|
||||
javax.swing.filechooser,
|
||||
javax.swing.tree,
|
||||
javax.swing.undo,
|
||||
javax.swing.border
|
||||
Loading…
Reference in new issue