public abstract class FileInterpreter extends Object implements IFileInterpreter
IFileInterpreter
Constructor and Description |
---|
FileInterpreter(IFileInterpreterProvider provider,
IAbstractFile file)
Constructs the file interpreter based on the given abstract file.
|
Modifier and Type | Method and Description |
---|---|
void |
addFileInterpreterListener(IFileInterpreterListener listener)
Adds the given file interpreter listener to the file interpreter.
|
protected void |
fireLoadEvent(IEditor editor)
This method notifies all file interpreter listeners that the interpreter
has loaded a file.
|
protected void |
fireSavedEvent(IEditor editor)
This method notifies all file interpreter listeners that the interpreter
has saved changes to the file.
|
IAbstractFile |
getAbstractFile()
Returns the file that is associated with this file interpreter.
|
IFileInterpreterProvider |
getProvider()
Returns the provider that is responsible for this file interpreter.
|
void |
removeFileInterpreterListener(IFileInterpreterListener listener)
Removes the given file interpreter listener from the file interpreter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load, save
public FileInterpreter(IFileInterpreterProvider provider, IAbstractFile file)
provider
- the provider which created the interpreterfile
- the file to which this interpreter should be connectedprotected void fireLoadEvent(IEditor editor)
editor
- the editor that has loaded the fileprotected void fireSavedEvent(IEditor editor)
editor
- the editor that has saved the filepublic IAbstractFile getAbstractFile()
IFileInterpreter
getAbstractFile
in interface IFileInterpreter
public IFileInterpreterProvider getProvider()
IFileInterpreter
getProvider
in interface IFileInterpreter
public void addFileInterpreterListener(IFileInterpreterListener listener)
IFileInterpreter
addFileInterpreterListener
in interface IFileInterpreter
listener
- the listener to notifypublic void removeFileInterpreterListener(IFileInterpreterListener listener)
IFileInterpreter
removeFileInterpreterListener
in interface IFileInterpreter
listener
- the listener that should be removed