com.awesheet.ui.actions.ViewDocumentationAction.java Source code

Java tutorial

Introduction

Here is the source code for com.awesheet.ui.actions.ViewDocumentationAction.java

Source

/*
 * AweSheet - Simple Open-Source Spreadsheet Editor
 * Copyright (c) 2015 - 2016, Orfeas - Ioannis Zafeiris, Nikolaos Fylakis
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.awesheet.ui.actions;

import com.awesheet.actions.ShowPopupAction;
import com.awesheet.actions.popups.ChartPopup;
import com.awesheet.enums.UIPopupType;
import com.awesheet.managers.UIMessageManager;
import org.apache.commons.codec.binary.Base64;

import javax.swing.*;
import java.awt.event.ActionEvent;

public class ViewDocumentationAction extends AbstractAction {
    public ViewDocumentationAction() {
        super("Documentation");
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        UIMessageManager.getInstance().dispatchAction(new ShowPopupAction<String>(UIPopupType.HELP_POPUP, ""));
    }
}