org.formaria.editor.data
Class DataSourceLoader

java.lang.Object
  extended by org.formaria.editor.data.DataSourceLoader
All Implemented Interfaces:
ProjectListener

public class DataSourceLoader
extends java.lang.Object
implements ProjectListener


Field Summary
protected  java.util.Hashtable dataSources
           
 
Constructor Summary
DataSourceLoader()
          Creates a new instance of DataSourceLoader
 
Method Summary
 void checkProject(EditorProject project)
          Check the project
 void projectInitialized(EditorProject project)
          Notification of project initialized.
 void projectLoaded(EditorProject project)
          Builds data sources of the project for use by the editor.
 void projectUpdated(EditorProject project)
          Update to reflect the new project state
 void resetProject(java.lang.String moduleName, EditorProject project)
          Inform a project that it should reset any object references it has stored
 void saveProject(EditorProject project)
          Notification the project is being saved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSources

protected java.util.Hashtable dataSources
Constructor Detail

DataSourceLoader

public DataSourceLoader()
Creates a new instance of DataSourceLoader

Method Detail

projectInitialized

public void projectInitialized(EditorProject project)
Notification of project initialized.

Specified by:
projectInitialized in interface ProjectListener
Parameters:
project - the editor project just initialized

projectLoaded

public void projectLoaded(EditorProject project)
Builds data sources of the project for use by the editor.

Specified by:
projectLoaded in interface ProjectListener
Parameters:
project - the project whose data sources will be loaded

projectUpdated

public void projectUpdated(EditorProject project)
Description copied from interface: ProjectListener
Update to reflect the new project state

Specified by:
projectUpdated in interface ProjectListener

saveProject

public void saveProject(EditorProject project)
Description copied from interface: ProjectListener
Notification the project is being saved

Specified by:
saveProject in interface ProjectListener
Parameters:
project - the editor project to save

checkProject

public void checkProject(EditorProject project)
Description copied from interface: ProjectListener
Check the project

Specified by:
checkProject in interface ProjectListener
Parameters:
project - the editor project to check

resetProject

public void resetProject(java.lang.String moduleName,
                         EditorProject project)
Description copied from interface: ProjectListener
Inform a project that it should reset any object references it has stored

Specified by:
resetProject in interface ProjectListener
Parameters:
moduleName - the name of the module that caused/required the reload
project - the editor project to check