4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.55 $ |
* @version $Revision: 1.56 $ |
* |
* Last modification: $Date: 2003/07/21 11:40:43 $ |
* $Id: Controller.java,v 1.55 2003/07/21 11:40:43 smcsporr Exp $ |
* Last modification: $Date: 2003/07/21 14:01:02 $ |
* $Id: Controller.java,v 1.56 2003/07/21 14:01:02 hjokusch Exp $ |
*/ |
|
package src.control; |
18,11 → 18,12 |
import src.plugins.PluginManager; |
|
/** |
* The <code> Controller </code> makes objects of all main-classes and |
* gives the necessary references to each object |
* @author Holger |
* The <code>Controller</code> class creates objects of all main program classes and |
* gives the necessary references to each object. |
* |
* @author H. Jakusch |
* |
** @version $Revision: 1.10 $ Last modification: $Date: 2003/07/15 18:51:51 $ |
* @version $Revision: 1.56 $ Last modification: $Date: 2003/07/21 14:01:02 $ |
*/ |
public class Controller { |
|
41,8 → 42,7 |
/* The document factory creates new OurDocument instances. */ |
private DocumentFactory aDocumentFactory; |
|
/*The updateView refreshes the view of of the tree if the document |
* is changed */ |
/* The updateView refreshes the view of of the tree if the document is changed. */ |
private UpdateView updateView; |
|
/* The plugin manager is responsible for launching plugins and |
55,11 → 55,12 |
* <code>DocumentManager</code>,<code>UpdateView</code> |
* and links them with the needed interfaces. |
* |
* @see src.gui.GUI |
* @see src.control.OtherGUIActions |
* @see src.document.DocumentFactory |
* @see src.gui.GUI |
* @see src.parser.Parser |
* @see src.control.DocumentManager |
* @see src.gui.UpdateView |
*/ |
public Controller () { |
|
72,7 → 73,7 |
updateView = new UpdateView(); |
pluginManager = new PluginManager("src/control/config.xml", myGui, updateView, myGui.getLogInterface()); |
|
// give DocumentManager Interface to the duiListener |
/* Give DocumentManager interface to the guiListener. */ |
gUIListener.setDocManagerInterface(docMaster); |
|
/* The plugin manager gives the plugin loader a reference to the document |
79,7 → 80,7 |
* manager. */ |
pluginManager.setDocumentManagerInterface(docMaster); |
|
/* Give udateView a reference of the GUI */ |
/* Give updateView a reference of the GUI */ |
updateView.setGuiReference(myGui); |
|
/* Give updateView an instance of a document manager. */ |
88,9 → 89,8 |
/* Give updateView an instance of a plugin manager. */ |
updateView.setPluginManagerInterface(pluginManager); |
|
//give Interfaces to gui |
myGui.setInterfaces(gUIListener,docMaster, updateView,docMaster,docMaster/*,validator*/); |
//aDocumentFactory.makeDocument(false); |
/* Give Interfaces to gui. */ |
myGui.setInterfaces(gUIListener,docMaster, updateView,docMaster,docMaster); |
|
/* Register the log panel to the different objects. */ |
parser.setLogInterface(myGui.getLogInterface()); |
97,8 → 97,8 |
updateView.setLogInterface(myGui.getLogInterface()); |
docMaster.setLogInterface(myGui.getLogInterface()); |
|
/*Register the Tabbed pane and the UpdateViewIterface to the |
* DocumentManager*/ |
/* Register the tabbed pane and the UpdateViewInterface to the |
* document manager. */ |
docMaster.setTabbedPane(myGui.getTabbedPane()); |
docMaster.setUpdateViewInterface(updateView); |
|
106,7 → 106,7 |
docMaster.setStatInterface(myGui.getStatusInterface()); |
docMaster.setRootFrame(myGui); |
|
/* DocumentManager must inform the PluginLoader if a document has been closed */ |
/* DocumentManager must inform the PluginLoader if a document has been closed. */ |
docMaster.setPluginManagerInterface(pluginManager); |
} |
} |