public class AssociationFileOpener extends Object implements FileOpener
Modifier and Type | Field and Description |
---|---|
protected ApplicationSelector |
appSelector
The application selector dialog.
|
protected String |
description
The header information describing the properties file.
|
protected Properties |
fileAssoc
The properties which correspond to the file associations.
|
protected static org.slf4j.Logger |
logger |
protected String |
propFilename
The name of the properties file in which the assocciations are stored.
|
Constructor and Description |
---|
AssociationFileOpener() |
Modifier and Type | Method and Description |
---|---|
void |
load()
Loaads the file assocciations to use from a properties file.
|
void |
open(String filename)
Opens the file with the given name, using either a
pre-defined, or a user-defined application.
|
void |
save()
Saves the used file assocciations to a properties file.
|
protected static final org.slf4j.Logger logger
protected ApplicationSelector appSelector
protected Properties fileAssoc
protected final String description
protected final String propFilename
public void open(String filename)
open
in interface FileOpener
filename
- the name of the file to open.public void save()
save
in interface FileOpener
public void load()
load
in interface FileOpener
Terrier Information Retrieval Platform4.1. Copyright © 2004-2015, University of Glasgow