Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 881 → Rev 882

/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.62 $
* @version $Revision: 1.63 $
*
* Last modification: $Date: 2003/07/26 10:50:06 $
* $Id: Controller.java,v 1.62 2003/07/26 10:50:06 smcsporr Exp $
* Last modification: $Date: 2003/07/26 11:42:56 $
* $Id: Controller.java,v 1.63 2003/07/26 11:42:56 swalkenh Exp $
*/
 
package src.control;
31,7 → 31,7
*
* @author Group 5
*
* @version $Revision: 1.62 $ Last modification: $Date: 2003/07/26 10:50:06 $
* @version $Revision: 1.63 $ Last modification: $Date: 2003/07/26 11:42:56 $
*/
public class Controller {
53,6 → 53,9
/** The updateView refreshes the view of of the tree if the document is changed. */
private UpdateView updateView;
/** A validator is used for document validation. */
private Validator vali;
/**
* The plugin manager is responsible for launching plugins and
* to handle program-to-plugin and plugin-to-program actions.
69,7 → 72,7
* -----------------------------------------------------------------------------
* DocumentFactory ->
* DocumentManager -> GUI, LogPanel, PluginManager, StatusPanel, UpdateView
* GUI -> DocumentManager, OtherGUIActions, PluginManager, UpdateView
* GUI -> DocumentManager, OtherGUIActions, PluginManager, UpdateView, Validator
* OtherGUIActions -> DocumentManager
* Parser -> LogPanel
* PluginManager -> DocumentManager, GUI, LogPanel, UpdateView
91,6 → 94,8
parser = new Parser();
aDocumentFactory = new DocumentFactory(myGui.getLogPanelImpl());
updateView = new UpdateView();
vali = new Validator(myGui.getLogPanelImpl(), myGui.getStatusInterface());
pluginManager = new PluginManager("src/control/config.xml", myGui, updateView, myGui.getLogPanelImpl());
 
/* Give DocumentManager interface to the guiListener. */
115,7 → 120,7
updateView.setPluginManagerInterface(pluginManager);
/* Give Interfaces to gui. */
myGui.setInterfaces(gUIListener,docMaster, updateView, pluginManager, docMaster,docMaster);
myGui.setInterfaces(gUIListener,docMaster, updateView, pluginManager, docMaster,docMaster, vali);
/* Register the log panel to the different objects. */
parser.setLogInterface(myGui.getLogPanelImpl());
/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.135 $
* @version $Revision: 1.136 $
*
* Last modification: $Date: 2003/07/28 13:25:30 $
* $Id: DocumentManager.java,v 1.135 2003/07/28 13:25:30 smcsporr Exp $
* Last modification: $Date: 2003/07/28 13:27:18 $
* $Id: DocumentManager.java,v 1.136 2003/07/28 13:27:18 hjokusch Exp $
*/
 
package src.control;
50,7 → 50,7
*
* @author Group 5
*
* @version $Revision: 1.135 $ Last modification: $Date: 2003/07/28 13:25:30 $
* @version $Revision: 1.136 $ Last modification: $Date: 2003/07/28 13:27:18 $
*/
public class DocumentManager implements ActionListener, DocumentManagerInterface,
ChangeListener {
99,9 → 99,6
/** A parser, in this case used to parse a grammar (DTD or XML schema). */
private Parser grammarParser = new Parser();
/** Indicates, if the auto validation feature is activated. */
private boolean autoValidationOn = true;
private int unNamedCounter = 0;
/** Instance variables for used file filters. */
322,13 → 319,6
}
}
/**/
if (event.getID() == ActionEvent.ITEM_EVENT_MASK) {
log(LogInterface.TYPE_INFO, event.getActionCommand());
log(LogInterface.TYPE_INFO, event.toString());
}
/* Actions to perform if the user choosed to change the curent document's DTD. */
if (event.getActionCommand() == "Set DTD") {
setNewDTD();
1458,17 → 1448,4
return false;
}
}
 
/**
* Returns the status of the auto validation feature.
*
* The auto validation feature controls, whether the program will validate
* automatically after loading a file and when updating the treeview.
*
* @return A <code>boolean</code> value indicating if the auto validation
* feature is activated.
*/
public boolean getAutoValidation() {
return autoValidationOn;
}
}