the mockcentral-editor-core library
MockCentralEditor-Core defines interfaces and supplies logic and
utility classes for concrete editor applications used to edit
MockCentral configuration files. It utilizes the JDOM library to
build the data model from the xml Document containing the mock
object definitions. This editor architecture includes several
top-level manager interfaces and classes
(IMockCentralEditor and
MockCentralApplication) and an outline or tree-type
viewer (defined by the IMockCentralEditorOutline
interface) used to select elements of the configuration file for
editing. These editable elements are encapsulated in
MockCentralNode instances, which store the JDOM
Element data pertaining to the specific part of the
file.
The structure provided by this library relies heavily on MVC
design and thus there are MockCentralNodeModel and
Controller classes corresponding to the various node types, as well
as interfaces for the corresponding view classes. Concrete editors
should principally need only to implement the view components and
other environment-specific classes to supply and manage the tree
display, save editor input, handle navigation, store preferences,
manage logging and the like.
The MockCentralEditor Eclipse plug-in is built on this library and can be used as a reference for anyone building an editor. It uses many adapter classes that implement the core interfaces while wrapping various Eclipse, JFace and SWT components.
See the javadoc for more details.
