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);
}
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);
}
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);
}
Aggregations