1 56 package org.objectstyle.cayenne.modeler.action; 57 58 import java.awt.event.ActionEvent ; 59 60 import org.objectstyle.cayenne.modeler.Application; 61 import org.objectstyle.cayenne.modeler.dialog.AboutDialog; 62 import org.objectstyle.cayenne.modeler.util.CayenneAction; 63 64 67 public class AboutAction extends CayenneAction { 68 69 public static final String getActionName() { 70 return "About CayenneModeler"; 71 } 72 73 77 public AboutAction(Application application) { 78 super(getActionName(), application); 79 } 80 81 84 public void performAction(ActionEvent e) { 85 showAboutDialog(); 86 } 87 88 public void showAboutDialog() { 89 new AboutDialog(Application.getFrame()); 90 } 91 } 92 | Popular Tags |