All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.vectorpublish.desktop.vp.api.io.Open Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2016, Peter Rader. All rights reserved.
 *  ___ ___               __                 ______         __     __  __         __
 * |   |   |.-----..----.|  |_ .-----..----.|   __ \.--.--.|  |--.|  ||__|.-----.|  |--.
 * |   |   ||  -__||  __||   _||  _  ||   _||    __/|  |  ||  _  ||  ||  ||__ --||     |
 *  \_____/ |_____||____||____||_____||__|  |___|   |_____||_____||__||__||_____||__|__|
 *
 * http://www.gnu.org/licenses/gpl-3.0.html
 */
package net.vectorpublish.desktop.vp.api.io;

import java.io.File;

import net.vectorpublish.desktop.vp.api.ui.VPAbstractAction;
import net.vectorpublish.desktop.vp.ui.i8n.I8nDescDefault;
import net.vectorpublish.desktop.vp.ui.i8n.I8nTextDefault;

/**
 * The Open-Action let you open files you stored before using the {@link SaveAs}
 * .
 */
public abstract class Open extends VPAbstractAction {
	/**
	 * The name of the Thread to read files from.
	 */
	public static final String THREAD_NAME_FILE_LOAD = "Loading file";

	/**
	 * The constructor for the action. It is enabled by default.
	 */
	public Open() {
		super(I8nTextDefault.FILE_OPEN, I8nDescDefault.FILE_OPEN, false);
	}

	public abstract void openFile(final File f) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy