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 NavigateBackwardAction extends CayenneAction { 69 70 public static final String getActionName() { 71 return "Move Backward"; 72 } 73 74 78 public NavigateBackwardAction(Application application) { 79 super(getActionName(), application); 80 } 81 82 public String getIconName() { 83 return "icon-backward_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 } 95 | Popular Tags |