org.mockcentral.editor
Class MockCentralApplication

java.lang.Object
  extended by org.mockcentral.editor.MockCentralApplication

public class MockCentralApplication
extends java.lang.Object

A class used to manage the various components that constitute the application used to edit Mock Central configuration files. Provides methods to register and access the IMockCentralEditor, IMockCentralEditorOutline, IMockCentralDialogFactory and IMockCentralLogger implementations.

Author:
David Hutchinson

Constructor Summary
MockCentralApplication()
           
 
Method Summary
static IMockCentralDialogFactory getDialogFactory()
          Returns the IMockCentralDialogFactory implementation.
static IMockCentralEditor getEditor()
          Returns the IMockCentralEditor implementation.
static IMockCentralLogger getLogger()
          Returns the IMockCentralLogger used to log info and error-level information.
static IMockCentralEditorOutline getOutline()
          Returns the IMockCentralEditorOutline implementation.
static java.lang.Class<?> loadClass(java.lang.String className)
          Returns the Class specified by the supplied name.
static void nodeProblemsChanged()
          Notification that NodeProblem list has changed.
static void setDialogFactory(IMockCentralDialogFactory dialogFactory)
          Sets the IMockCentralDialogFactory implementation.
static void setEditor(IMockCentralEditor editor)
          Sets the IMockCentralEditor implementation.
static void setLogger(IMockCentralLogger logger)
          Sets the IMockCentralLogger used to log info and error-level information.
static void setOutline(IMockCentralEditorOutline outline)
          Sets the IMockCentralEditorOutline implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockCentralApplication

public MockCentralApplication()
Method Detail

setEditor

public static void setEditor(IMockCentralEditor editor)
Sets the IMockCentralEditor implementation.

Parameters:
editor - the IMockCentralEditor implementation.

getEditor

public static IMockCentralEditor getEditor()
Returns the IMockCentralEditor implementation.

Returns:
the IMockCentralEditor implementation.

setOutline

public static void setOutline(IMockCentralEditorOutline outline)
Sets the IMockCentralEditorOutline implementation.

Parameters:
outline - the IMockCentralEditorOutline implementation.

getOutline

public static IMockCentralEditorOutline getOutline()
Returns the IMockCentralEditorOutline implementation.

Returns:
the IMockCentralEditorOutline implementation.

setDialogFactory

public static void setDialogFactory(IMockCentralDialogFactory dialogFactory)
Sets the IMockCentralDialogFactory implementation.

Parameters:
dialogFactory - the IMockCentralDialogFactory implementation.

getDialogFactory

public static IMockCentralDialogFactory getDialogFactory()
Returns the IMockCentralDialogFactory implementation.

Returns:
the IMockCentralDialogFactory implementation.

setLogger

public static void setLogger(IMockCentralLogger logger)
Sets the IMockCentralLogger used to log info and error-level information.

Parameters:
logger - the IMockCentralLogger to set.

getLogger

public static IMockCentralLogger getLogger()
Returns the IMockCentralLogger used to log info and error-level information.

Returns:
the IMockCentralLogger used to log info and error-level information.

nodeProblemsChanged

public static void nodeProblemsChanged()
Notification that NodeProblem list has changed. Forwards the notification to the outline view and editor.


loadClass

public static java.lang.Class<?> loadClass(java.lang.String className)
                                    throws java.lang.ClassNotFoundException
Returns the Class specified by the supplied name.

Parameters:
className - the class name.
Returns:
the Class specified by the supplied name.
Throws:
java.lang.ClassNotFoundException - if the class could not be loaded.