Search in sources :

Example 1 with OpenFile

use of org.fagu.fmv.cli.utils.OpenFile in project fmv by f-agu.

the class View method open.

// **********************************************
/**
 * @param source
 */
private void open(FileSource source) {
    OpenFile openFile = new OpenFile(fmvCliConfig, getPrinter());
    openFile.open(source);
}
Also used : OpenFile(org.fagu.fmv.cli.utils.OpenFile)

Example 2 with OpenFile

use of org.fagu.fmv.cli.utils.OpenFile in project fmv by f-agu.

the class Make method run.

/**
 * @see org.fagu.fmv.cli.Command#run(java.lang.String[])
 */
@Override
public void run(String[] args) {
    List<Executable> executables = project.getExecutables();
    if (executables.isEmpty()) {
        return;
    }
    File file = project.getFileCache().getFile(executables.get(0), Cache.MAKE);
    System.out.println(file);
    OpenFile openFile = new OpenFile(fmvCliConfig, getPrinter());
    openFile.open(file, FileType.VIDEO);
}
Also used : OpenFile(org.fagu.fmv.cli.utils.OpenFile) Executable(org.fagu.fmv.core.exec.Executable) OpenFile(org.fagu.fmv.cli.utils.OpenFile) File(java.io.File)

Example 3 with OpenFile

use of org.fagu.fmv.cli.utils.OpenFile in project fmv by f-agu.

the class Preview method run.

/**
 * @see org.fagu.fmv.cli.Command#run(java.lang.String[])
 */
@Override
public void run(String[] args) {
    List<Executable> executables = project.getExecutables();
    if (executables.isEmpty()) {
        return;
    }
    File file = project.getFileCache().getFile(executables.get(0), Cache.PREVIEW);
    System.out.println(file);
    OpenFile openFile = new OpenFile(fmvCliConfig, getPrinter());
    openFile.open(file, FileType.VIDEO);
}
Also used : OpenFile(org.fagu.fmv.cli.utils.OpenFile) Executable(org.fagu.fmv.core.exec.Executable) OpenFile(org.fagu.fmv.cli.utils.OpenFile) File(java.io.File)

Aggregations

OpenFile (org.fagu.fmv.cli.utils.OpenFile)3 File (java.io.File)2 Executable (org.fagu.fmv.core.exec.Executable)2