Package org.analyse.core.modules

Examples of org.analyse.core.modules.AnalysePanel


public class MainActionListener implements ActionListener
{
    public void actionPerformed(ActionEvent e)
    {
        String action = e.getActionCommand();
        AnalysePanel p = Main.analyseFrame.getCurrentPanel();

        if (action.equals(Constantes.QUIT)) {
            Main.analyseFrame.exit();
        } else if (action.equals(Constantes.ABOUT)) {
            Main.aboutWindow.setVisible(true);
View Full Code Here


  /**
   * Met à jour l'interface : active ou désactive les boutons Undo, Redo, Cut,
   * Copy et Paste.
   */
  public void update(Observable o, Object arg) {
    AnalysePanel p = Main.analyseFrame.getCurrentPanel();

    getAction(Constantes.REDO).setEnabled(p.getRedoEnabled());
    getAction(Constantes.UNDO).setEnabled(p.getUndoEnabled());

    getAction(Constantes.CUT).setEnabled(p.getCopyEnabled() && p.getPasteEnabled());
    getAction(Constantes.COPY).setEnabled(p.getCopyEnabled());
    getAction(Constantes.PASTE).setEnabled(p.getPasteEnabled());
  }
View Full Code Here

TOP

Related Classes of org.analyse.core.modules.AnalysePanel

Copyright © 2018 www.massapicom. 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.