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, waitload, savepublic 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()
IFileInterpretergetAbstractFile in interface IFileInterpreterpublic IFileInterpreterProvider getProvider()
IFileInterpretergetProvider in interface IFileInterpreterpublic void addFileInterpreterListener(IFileInterpreterListener listener)
IFileInterpreteraddFileInterpreterListener in interface IFileInterpreterlistener - the listener to notifypublic void removeFileInterpreterListener(IFileInterpreterListener listener)
IFileInterpreterremoveFileInterpreterListener in interface IFileInterpreterlistener - the listener that should be removed