All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.squirrel_sql.fw.util.NullMessageHandler Maven / Gradle / Ivy

package net.sourceforge.squirrel_sql.fw.util;


/**
 * This message handler just swallows messages sent to it.
 *
 * @author Colin Bell
 */
public class NullMessageHandler implements IMessageHandler
{
	private static NullMessageHandler s_handler = new NullMessageHandler();

	/**
	 * Ctor private becuase this is a singleton.
	 */
	private NullMessageHandler()
	{
		super();
	}

	/**
	 * Return the only instance of this class.
	 *
	 * @return	the only instance of this class.
	 */
	public static NullMessageHandler getInstance()
	{
		return s_handler;
	}

	/**
	 * Swallow this msg.
	 */
	public void showMessage(Throwable th, ExceptionFormatter formatter)
	{
		// Empty.
	}

	/**
	 * Swallow this msg.
	 */
	public void showMessage(String msg)
	{
		// Empty.
	}

	/**
	 * Swallow this msg.
	 */
	public void showErrorMessage(Throwable th, ExceptionFormatter formatter)
	{
		// Empty.
	}

	/**
	 * Swallow this msg.
	 */
	public void showErrorMessage(String msg)
	{
		// Empty.
	}

   public void showWarningMessage(String msg)
   {
      // Empty.
   }
      
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy