/**
 * $Revision: 22540 $
 * $Date: 2005-10-10 08:44:25 -0700 (Mon, 10 Oct 2005) $
 *
 * Copyright (C) 1999-2005 Jive Software. All rights reserved.
 *
 * This software is the proprietary information of Jive Software.
 * Use is subject to license terms.
 */

package com.jivesoftware.spark.plugin.apple;


import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.spark.SparkManager;
import org.jivesoftware.spark.Alerter;
import org.jivesoftware.spark.ui.ChatRoom;
import org.jivesoftware.spark.ui.MessageListener;
import org.jivesoftware.Spark;

import java.awt.*;

/**
 * When a message is received and the user does not have presence
 * the dock will bounce.
 *
 * @author Andrew Wright
 */
public class MacWindowAlerter implements Alerter {


    public void flashWindow(Window window) {
        AppleUtils.bounceDockIcon(false);
    }

    public void flashWindowStopWhenFocused(Window window) {
        AppleUtils.bounceDockIcon(false);
    }

    public void stopFlashing(Window window) {
        AppleUtils.resetDock();

    }

    public boolean handleNotification() {
        return Spark.isMac();
    }
}

@@ -327,255 +327,77 @@
 are.
-smack.packet.Message;%0Aimport org.jivesoftware.spark.SparkManager;%0Aimport org.jivesoftware.spark.Alerter;%0Aimport org.jivesoftware.spark.ui.ChatRoom;%0Aimport org.jivesoftware.spark.ui.MessageListener;%0Aimport org.jivesoftware.Spark;%0A%0Aimport java.awt.*
+Spark;%0Aimport org.jivesoftware.spark.Alerter;%0A%0Aimport java.awt.Window
 ;%0A%0A/

Update apple plugin.