Package com.lightcrafts.app.menu

Source Code of com.lightcrafts.app.menu.RedoMenuItem

/* Copyright (C) 2005-2011 Fabio Riccardi */

package com.lightcrafts.app.menu;

import com.lightcrafts.app.ComboFrame;
import com.lightcrafts.ui.editor.Document;

import javax.swing.*;

class RedoMenuItem extends ActionMenuItem {

    RedoMenuItem(ComboFrame frame) {
        super(frame, "Redo");
    }

    Action getDocumentAction() {
        Document doc = getDocument();
        if (doc != null) {
            return doc.getRedoAction();
        }
        else {
            return null;
        }
    }
}
TOP

Related Classes of com.lightcrafts.app.menu.RedoMenuItem

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.