[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/

yanas at dev.java.net yanas at dev.java.net
Tue Apr 17 16:16:19 CEST 2007


User: yanas   
Date: 2007-04-17 14:16:19+0000
Modified:
   sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWritePanel.java
   sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java

Log:
 some properties moved to the ConfigurationManager

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/
==============================================================================

File [changed]: ChatWritePanel.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWritePanel.java?r1=1.1&r2=1.2
Delta lines:  +1 -1
-------------------
--- ChatWritePanel.java	2007-03-12 17:38:28+0000	1.1
+++ ChatWritePanel.java	2007-04-17 14:16:17+0000	1.2
@@ -234,7 +234,7 @@
             if (undo.canRedo())
                 redo();
         }
-        else if (chatPanel.getChatWindow().isTypingNotificationEnabled()
+        else if (ConfigurationManager.isSendTypingNotifications()
                 && e.getKeyCode() != KeyEvent.VK_ESCAPE)
         {   
             if (typingState != OperationSetTypingNotifications.STATE_TYPING)

File [changed]: ChatWindow.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatWindow.java?r1=1.6&r2=1.7
Delta lines:  +1 -47
--------------------
--- ChatWindow.java	2007-04-17 11:30:45+0000	1.6
+++ ChatWindow.java	2007-04-17 14:16:17+0000	1.7
@@ -51,8 +51,6 @@
 
     private SIPCommTabbedPane chatTabbedPane = null;
     
-    private boolean enableTypingNotification = true;
-    
     /**
      * Creates an instance of <tt>ChatWindow</tt> by passing to it an instance
      * of the main application window.
@@ -119,27 +117,6 @@
     }
 
     /**
-     * Changes the Ctrl+Enter message command with Enter or vice versa.
-     */
-    public void changeSendCommand(boolean isEnter) 
-    {
-        this.getCurrentChatPanel().getChatWritePanel()
-            .changeSendCommand(isEnter);
-        
-        ConfigurationService configService
-            = GuiActivator.getConfigurationService();
-        
-        if(isEnter)
-            configService.setProperty(
-                    "net.java.sip.communicator.impl.gui.sendMessageCommand",
-                    "Enter");
-        else
-            configService.setProperty(
-                    "net.java.sip.communicator.impl.gui.sendMessageCommand",
-                    "CtrlEnter");
-    }
-    
-    /**
      * Returns the main application widnow.
      * 
      * @return The main application widnow.
@@ -574,29 +551,6 @@
             .getLastIncomingMsgTimestamp();
     }
     
-
-    /**
-     * Enables typing notifications.
-     * 
-     * @param enable <code>true</code> to enable typing notifications,
-     *            <code>false</code> to disable them.
-     */
-    public void enableTypingNotification(boolean enable)
-    {
-        this.enableTypingNotification = enable;
-    }
-
-    /**
-     * Checks whether typing notifications are enabled or not.
-     * 
-     * @return <code>true</code> if typing notifications are enabled,
-     *         <code>false</code> otherwise.
-     */
-    public boolean isTypingNotificationEnabled()
-    {
-        return enableTypingNotification;
-    }
-
     /**
      * Before closing the chat window saves the current size and position
      * through the <tt>ConfigurationService</tt>.




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list