Subclipse doesn't add automatically new files to SVN when we make a commit:(

cusax-fix
Yana Stamcheva 19 years ago
parent 81a856de70
commit 0950fae11e

@ -0,0 +1,65 @@
/*
* 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.impl.gui.main.chat.history;
import java.util.*;
/**
* Manages all history windows within the gui.
*
* @author Yana Stamcheva
*/
public class HistoryWindowManager
{
private Hashtable contactHistory = new Hashtable();
/**
* Checks if there's an open history window for the given history contact.
*
* @param historyContact the contact to check for
* @return TRUE if there's an opened history window for the given contact,
* FALSE otherwise.
*/
public boolean containsHistoryWindowForContact(Object historyContact)
{
return contactHistory.containsKey(historyContact);
}
/**
* Returns the history window for the given contact.
*
* @param historyContact the contact to search for
* @return the history window for the given contact
*/
public HistoryWindow getHistoryWindowForContact(Object historyContact)
{
return (HistoryWindow) contactHistory.get(historyContact);
}
/**
* Adds a history window for a given contact in the table of opened history
* windows.
*
* @param historyContact the contact to add
* @param historyWindow the history window to add
*/
public void addHistoryWindowForContact(Object historyContact,
HistoryWindow historyWindow)
{
contactHistory.put(historyContact, historyWindow);
}
/**
* Removes the history window for the given contact.
*
* @param historyContact the contact to remove the history window
*/
public void removeHistoryWindowForContact(Object historyContact)
{
contactHistory.remove(historyContact);
}
}
Loading…
Cancel
Save