/*
 * @(#)NewFileAction.java
 *
 * Copyright (c) 1996-2010 by the original authors of JHotDraw and all its
 * contributors. All rights reserved.
 *
 * You may not use, copy or modify this file, except in compliance with the 
 * license agreement you entered into with the copyright holders. For details
 * see accompanying license terms.
 */

package org.jhotdraw.app.action.file;

import org.jhotdraw.app.Application;

/**
 * Creates a new view.
 * 

* This action is called when the user selects the New item in the File * menu. *

* If you want this behavior in your application, you have to create it * and put it in your {@code ApplicationModel} in method * {@link org.jhotdraw.app.ApplicationModel#initApplication}. *

* This action is designed for applications which do not automatically * create a new view for each opened file. This action goes together with * {@link ClearFileAction}, {@link LoadFileAction} and {@link CloseFileAction}. * It should not be used together with {@link NewFileAction}. * * @author Werner Randelshofer * @version $Id: NewWindowAction.java 717 2010-11-21 12:30:57Z rawcoder $ */ public class NewWindowAction extends NewFileAction { public final static String ID = "file.newWindow"; /** Creates a new instance. */ public NewWindowAction(Application app) { super(app, ID); } }

Ads help maintain this website.