package gov.nih.nci.cbiit.cdms.formula.gui.action;

import gov.nih.nci.cbiit.cdms.formula.gui.ExecuteFormulaDialog;
import gov.nih.nci.cbiit.cdms.formula.gui.FormulaGuiUtil;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JMenuItem;

public class ExecuteFormulaAction extends AbstractAction {

	public ExecuteFormulaAction (String name)
	{
		super(name);
	}
	
	@Override
	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
       JMenuItem menuItem=(JMenuItem)arg0.getSource();
       ExecuteFormulaDialog wizard = new ExecuteFormulaDialog(FormulaGuiUtil.getMainFrame(), "Execute Formula", true);
       wizard.setVisible(true);
      
	}

}

@@ -155,29 +155,24 @@
 la.gui.F
-ormulaGuiUtil
+rameMain
 ;%0D%0A%0D%0Aimp
@@ -204,18 +204,16 @@
 Event;%0D%0A
-%0D%0A
 import j
@@ -243,39 +243,8 @@
 on;%0D
-%0Aimport javax.swing.JMenuItem;%0D
 %0A%0D%0Ap
@@ -479,64 +479,8 @@
 ub%0D%0A
-       JMenuItem menuItem=(JMenuItem)arg0.getSource();%0D%0A
     
@@ -542,33 +542,36 @@
 og(F
-ormulaGuiUtil.getMainFram
+rameMain.getSingletonInstanc
 e(),

Use FrameMain singleton