Package floobits.actions

Source Code of floobits.actions.RequiresAccountAction

package floobits.actions;

import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import floobits.common.PersistentJson;
import floobits.common.Settings;
import floobits.dialogs.CreateAccount;

public abstract class RequiresAccountAction extends AnAction {
    @Override
    public void actionPerformed(AnActionEvent e) {
        PersistentJson p = PersistentJson.getInstance();
        if (Settings.canFloobits()) {
            actionPerformedHasAccount(e);
        } else {
            CreateAccount createAccount1 = new CreateAccount(null);
            createAccount1.createCenterPanel();
            createAccount1.show();
        }
    }

    protected abstract void actionPerformedHasAccount(AnActionEvent e);
}
TOP

Related Classes of floobits.actions.RequiresAccountAction

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.