Logo Search packages:      
Sourcecode: cdk version File versions

InsertStructureAction.java

package org.openscience.cdk.applications.jchempaint.action;

import org.openscience.cdk.applications.jchempaint.JChemPaintEditorPanel;

import java.awt.event.ActionEvent;

/**
 * Opens a new empty JChemPaintFrame.
 *
 * @author Rajarshi Guha
 * @cdk.module jchempaint
 * @cdk.created 2006-09-26
 */
00014 public class InsertStructureAction extends JCPAction {


    private static final long serialVersionUID = -7685519078261241187L;

    /**
     * Hide or show the structure entry text field.
     *
     * @param e Description of the Parameter
     */
00024     public void actionPerformed(ActionEvent e) {
        if (((JChemPaintEditorPanel) jcpPanel).getShowInsertTextField())
            ((JChemPaintEditorPanel) jcpPanel).setShowInsertTextField(false);
        else ((JChemPaintEditorPanel) jcpPanel).setShowInsertTextField(true);
    }
}

Generated by  Doxygen 1.6.0   Back to index