/sun/xmleditor/trunk/src/gui/GUI.java |
---|
4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.89 $ |
* @version $Revision: 1.90 $ |
* |
* Last modification: $Date: 2003/07/28 13:21:40 $ |
* $Id: GUI.java,v 1.89 2003/07/28 13:21:40 smcsporr Exp $ |
* Last modification: $Date: 2003/07/28 14:26:29 $ |
* $Id: GUI.java,v 1.90 2003/07/28 14:26:29 smcsporr Exp $ |
*/ |
package src.gui; |
52,7 → 52,7 |
* |
* @author group 5 |
* |
* @version $Revision: 1.89 $ Last modification: $Date: 2003/07/28 13:21:40 $ |
* @version $Revision: 1.90 $ Last modification: $Date: 2003/07/28 14:26:29 $ |
*/ |
public class GUI |
extends JFrame implements GuiInterface, WindowListener { |
94,7 → 94,7 |
private LogPanel logPanel = new LogPanel(); |
private StatusPanel statusPanel = new StatusPanel(); |
/* Menu buttons for view-menu*/ |
/** Menu buttons for view menu. */ |
private JMenuItem setXpath; |
private JMenuItem clearLogPanel; |
/sun/xmleditor/trunk/src/gui/UpdateView.java |
---|
4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.59 $ |
* @version $Revision: 1.60 $ |
* |
* Last modification: $Date: 2003/07/28 13:33:08 $ |
* $Id: UpdateView.java,v 1.59 2003/07/28 13:33:08 smcsporr Exp $ |
* Last modification: $Date: 2003/07/28 14:26:22 $ |
* $Id: UpdateView.java,v 1.60 2003/07/28 14:26:22 smcsporr Exp $ |
*/ |
package src.gui; |
47,7 → 47,7 |
* |
* @author Christian Stollenwerk |
* |
* @version $Revision: 1.59 $ Last modification: $Date: 2003/07/28 13:33:08 $ |
* @version $Revision: 1.60 $ Last modification: $Date: 2003/07/28 14:26:22 $ |
*/ |
public class UpdateView implements ActionListener, UpdateViewInterface, |
OurEventListener, TreeModelListener, TreeExpansionListener, TreeSelectionListener { |
243,7 → 243,7 |
/** |
* This method sets an internal reference to the GUI. |
* |
* @param g: An object compliant to src.gui.GuiInterface. |
* @param g An object compliant to src.gui.GuiInterface. |
* |
* author Group 5 |
* |
256,7 → 256,7 |
/** |
* This method sets an internal reference to the document manager. |
* |
* @param docManInt: An object compliant to src.control.DocumentManagerInterface. |
* @param docManInt An object compliant to src.control.DocumentManagerInterface. |
* |
* author Group 5 |
* |
267,10 → 267,23 |
} |
/** |
* This method sets an internal reference to a <code>Validator</code> instance. |
* |
* @param vali A reference to a src.parser.Validator object. |
* |
* author Group 5 |
* |
* Last revision: 28-Jul-2003 |
*/ |
public void setValidationReference(Validator vali) { |
validator = vali; |
} |
/** |
* This method sets an internal reference to the log panel that is used to |
* output logging messages to inform the user about program events. |
* |
* @param log: A log panel implementation compliant to src.gui.LogInterface. |
* @param log A log panel implementation compliant to src.gui.LogInterface. |
* |
* author S. McSporran |
* |
278,14 → 291,12 |
*/ |
public void setLogInterface(LogInterface logInt) { |
logInterface = logInt; |
validator = new Validator(logInt, gui.getStatusInterface()); |
} |
/** |
* This method sets an internal reference to the plugin manager. |
* |
* @param plugManInt: An object compliant to src.plugins.PluginManagerInterface. |
* @param plugManInt An object compliant to src.plugins.PluginManagerInterface. |
* |
* author Group 5 |
* |
/sun/xmleditor/trunk/src/control/DocumentManager.java |
---|
4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.137 $ |
* @version $Revision: 1.138 $ |
* |
* Last modification: $Date: 2003/07/28 14:26:35 $ |
* $Id: DocumentManager.java,v 1.137 2003/07/28 14:26:35 smcsporr Exp $ |
* Last modification: $Date: 2003/07/28 15:26:39 $ |
* $Id: DocumentManager.java,v 1.138 2003/07/28 15:26:39 hjokusch Exp $ |
*/ |
package src.control; |
39,9 → 39,11 |
import org.w3c.dom.DocumentType; |
import org.w3c.dom.DOMImplementation; |
import src.document.*; |
import src.document.DocumentFactory; |
import src.document.OurDocument; |
import src.gui.*; |
import src.parser.*; |
import src.parser.Parser; |
import src.parser.Validator; |
import src.plugins.PluginManagerInterface; |
/** |
50,7 → 52,7 |
* |
* @author Group 5 |
* |
* @version $Revision: 1.137 $ Last modification: $Date: 2003/07/28 14:26:35 $ |
* @version $Revision: 1.138 $ Last modification: $Date: 2003/07/28 15:26:39 $ |
*/ |
public class DocumentManager implements ActionListener, DocumentManagerInterface, |
ChangeListener { |
412,9 → 414,6 |
/* Transfer a log panel reference to the grammar parser. */ |
grammarParser.setLogInterface(logInterfaceReference); |
/* Creates a new Validator instance. */ |
validator = new Validator(logInterfaceReference, statInterfaceReference); |
} |
/** |
433,6 → 432,19 |
} |
/** |
* This method sets an internal reference to a <code>Validator</code> instance. |
* |
* @param vali A reference to a src.parser.Validator object. |
* |
* author Group 5 |
* |
* Last revision: 28-Jul-2003 |
*/ |
public void setValidationReference(Validator vali) { |
validator = vali; |
} |
/** |
* This method returns the document object of the current <code>OurDocument</code> instance. |
* The current instance is the document currently chosen in the tabbed pane and displayed |
* in the tree and plugin area. |
/sun/xmleditor/trunk/src/control/Controller.java |
---|
4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.63 $ |
* @version $Revision: 1.64 $ |
* |
* Last modification: $Date: 2003/07/26 11:42:56 $ |
* $Id: Controller.java,v 1.63 2003/07/26 11:42:56 swalkenh Exp $ |
* Last modification: $Date: 2003/07/28 14:26:16 $ |
* $Id: Controller.java,v 1.64 2003/07/28 14:26:16 smcsporr Exp $ |
*/ |
package src.control; |
20,6 → 20,7 |
/** |
* An instance of the <code>Controller</code> class creates objects of all main program |
* classes and transfers the necessary references to each object. |
* |
* The class instances created are: |
* src.control.DocumentManger |
* src.control.OtherGUIActions |
31,7 → 32,7 |
* |
* @author Group 5 |
* |
* @version $Revision: 1.63 $ Last modification: $Date: 2003/07/26 11:42:56 $ |
* @version $Revision: 1.64 $ Last modification: $Date: 2003/07/28 14:26:16 $ |
*/ |
public class Controller { |
64,26 → 65,27 |
/** |
* Makes a new instance of <code>DocumentFactory</code>,<code>DocumentManager</code>, <code>GUI</code>, |
* <code>OtherGUIActions<code/>, <code>Parser</code>,<code>PluginManager</code> and <code>UpdateView</code> |
* and transfers the required object references to them. This following list shows the references |
* that each created object gets. |
* <code>OtherGUIActions<code/>, <code>Parser</code>,<code>PluginManager</code>, <code>UpdateView</code> |
* and <code>Validator</code> and transfers the required object references to them. |
* The following list shows the references that each created object gets. |
* |
* Class -> References |
* ----------------------------------------------------------------------------- |
* DocumentFactory -> |
* DocumentManager -> GUI, LogPanel, PluginManager, StatusPanel, UpdateView |
* DocumentManager -> GUI, LogPanel, PluginManager, StatusPanel, UpdateView, Validator |
* GUI -> DocumentManager, OtherGUIActions, PluginManager, UpdateView, Validator |
* OtherGUIActions -> DocumentManager |
* Parser -> LogPanel |
* PluginManager -> DocumentManager, GUI, LogPanel, UpdateView |
* UpdateView -> DocumentManager, GUI, LogPanel, PluginManager |
* UpdateView -> DocumentManager, GUI, LogPanel, PluginManager, Validator |
* |
* @see src.control.DocumentManager |
* @see src.control.OtherGUIActions |
* @see src.document.DocumentFactory |
* @see src.gui.GUI |
* @see src.control.OtherGUIActions |
* @see src.document.DocumentFactory |
* @see src.parser.Parser |
* @see src.control.DocumentManager |
* @see src.gui.UpdateView |
* @see src.parser.Parser |
* @see src.parser.Validator |
*/ |
public Controller () { |
112,31 → 114,25 |
/* Give updateView a reference to the GUI */ |
updateView.setGuiReference(myGui); |
/* Give updateView an instance of a document manager. */ |
updateView.setDocumentManagerInterface(docMaster); |
/* Give updateView an instance of a plugin manager. */ |
updateView.setLogInterface(myGui.getLogPanelImpl()); |
updateView.setPluginManagerInterface(pluginManager); |
updateView.setValidationReference(vali); |
/* Give Interfaces to gui. */ |
myGui.setInterfaces(gUIListener,docMaster, updateView, pluginManager, docMaster,docMaster, vali); |
myGui.setInterfaces(gUIListener,docMaster, updateView, pluginManager, docMaster, docMaster, vali); |
/* Register the log panel to the different objects. */ |
parser.setLogInterface(myGui.getLogPanelImpl()); |
updateView.setLogInterface(myGui.getLogPanelImpl()); |
docMaster.setLogInterface(myGui.getLogPanelImpl()); |
/* Register the tabbed pane and the UpdateViewInterface to the |
* document manager. */ |
docMaster.setPluginManagerInterface(pluginManager); |
docMaster.setRootFrame(myGui); |
docMaster.setStatInterface(myGui.getStatusInterface()); |
docMaster.setTabbedPane(myGui.getTabbedPane()); |
docMaster.setUpdateViewInterface(updateView); |
/* Give a status panel reference to the document manager. */ |
docMaster.setStatInterface(myGui.getStatusInterface()); |
docMaster.setRootFrame(myGui); |
/* DocumentManager must inform the PluginLoader if a document has been closed. */ |
docMaster.setPluginManagerInterface(pluginManager); |
docMaster.setValidationReference(vali); |
} |
} |