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.query.QueryTypeController; 62 import org.objectstyle.cayenne.modeler.util.CayenneAction; 63 64 68 public class CreateQueryAction extends CayenneAction { 69 70 public static String getActionName() { 71 return "Create Query"; 72 } 73 74 77 public CreateQueryAction(Application application) { 78 super(getActionName(), application); 79 } 80 81 public String getIconName() { 82 return "icon-query.gif"; 83 } 84 85 public void performAction(ActionEvent e) { 86 createQuery(); 87 } 88 89 protected void createQuery() { 90 new QueryTypeController(getProjectController()).startup(); 91 } 92 } | Popular Tags |