Package com.salas.bb.imageblocker

Source Code of com.salas.bb.imageblocker.ImageBlockerConfigAction

package com.salas.bb.imageblocker;

import com.salas.bb.core.GlobalController;
import com.salas.bb.core.GlobalModel;
import com.salas.bb.utils.ThreadedAction;
import com.salas.bb.views.mainframe.MainFrame;

import java.awt.event.ActionEvent;
import java.util.List;

/**
* Image blocker configuration screen.
*/
public class ImageBlockerConfigAction extends ThreadedAction
{
    /**
     * Actual action.
     *
     * @param event original event object.
     */
    protected void doAction(ActionEvent event)
    {
        List<String> oldExpr = ImageBlocker.getExpressions();

        MainFrame frame = GlobalController.SINGLETON.getMainFrame();
        ImageBlockerDialog dialog = new ImageBlockerDialog(frame, null);
        dialog.open();

        if (!oldExpr.equals(ImageBlocker.getExpressions()))
        {
            GlobalModel.touchPreferences();
        }
    }
}
TOP

Related Classes of com.salas.bb.imageblocker.ImageBlockerConfigAction

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.