documenter.control
Class DocGeneratorGuiControler

java.lang.Object
  extended by documenter.control.DocGeneratorGuiControler
All Implemented Interfaces:
java.util.EventListener, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class DocGeneratorGuiControler
extends java.lang.Object
implements org.eclipse.swt.events.SelectionListener

Controler class of DocGenerator tool MVC implementation. Reacts to actions performed on the the View instance by invoking appropriate Model instance methods. Controls appearance of View instance components to ease operability and reduce mis-operability crash possibility.

Author:
Misio

Constructor Summary
DocGeneratorGuiControler(DocGeneratorGui gui, DocGeneratorModel model)
          Creates controler instance which operates on particular Model instance, responds and controls particular View instance.
 
Method Summary
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)
          Not implemented
 void widgetSelected(org.eclipse.swt.events.SelectionEvent arg0)
          Reacts to button click events.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocGeneratorGuiControler

public DocGeneratorGuiControler(DocGeneratorGui gui,
                                DocGeneratorModel model)
Creates controler instance which operates on particular Model instance, responds and controls particular View instance.

Parameters:
gui - The View instance to react and to control to
model - The Model instance which is to be controled
Method Detail

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent arg0)
Reacts to button click events. For three buttons of gui View class this Controler: - adds source files to Model instance. - generates documentation for the given set of source files - opens the default system browser and displays the generated documentation

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent arg0)
Not implemented

Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener