1 56 package org.objectstyle.cayenne.modeler.action; 57 58 import java.awt.event.ActionEvent ; 59 import java.util.EventObject ; 60 61 import org.objectstyle.cayenne.modeler.Application; 62 import org.objectstyle.cayenne.modeler.ProjectController; 63 import org.objectstyle.cayenne.modeler.util.CayenneAction; 64 65 68 public class NavigateForwardAction extends CayenneAction { 69 70 public static final String getActionName() { 71 return "Move Forward"; 72 } 73 74 78 public NavigateForwardAction(Application application) { 79 super(getActionName(), application); 80 } 81 82 public String getIconName() { 83 return "icon-forward_nav.gif"; 84 } 85 86 89 public void performAction(ActionEvent e) { 90 ProjectController mediator = getProjectController(); 91 EventObject newEvent = new EventObject (this); 92 mediator.fireNavigationEvent(newEvent); 93 } 94 } | Popular Tags |