// File: ActionNew.java // Classes: ActionNew // Author: Kedar Patankar package edu.neu.ccs.demeter.tools.apstudio.graphedit; public class ActionNew extends Action { public ActionNew(Editor e){super(e);} public String name(){ return "opens new document with default name";} public void doIt() { int i=_editor.nextDocumentNumber(); String name="Text"+i; Document d=new Document(_editor); d.setDocName(name); d.firstTime(true); d.firstTimeCreated(true); _editor.attach(name,d); } public void undoIt(){} } /* end class ActionNew */