sk.uniba.euromath.editor
Interface IEditorFactory


public interface IEditorFactory

Produces editor instances.

Author:
Martin Vysny

Field Summary
static String EXTENSION_POINT_ID
          ID of extension point for editor factory instances.
 
Method Summary
 Map<String,EditorInfo> getSupportedEditors()
          Returns map that maps ID of an editor to the information about that editor.
 IEditor produce(String id)
          Produces an instance of editor denoted by given ID.
 

Field Detail

EXTENSION_POINT_ID

static final String EXTENSION_POINT_ID
ID of extension point for editor factory instances.

See Also:
Constant Field Values
Method Detail

produce

IEditor produce(String id)
                throws ExportException
Produces an instance of editor denoted by given ID.

Parameters:
id - id of the editor.
Returns:
editor instance.
Throws:
ExportException - if error occurs during editor creation.
IllegalArgumentException - if id is not known.

getSupportedEditors

Map<String,EditorInfo> getSupportedEditors()
                                           throws ExportException
Returns map that maps ID of an editor to the information about that editor.

Returns:
maps ID to info about the editor. Factory should compute this map only once - it won't get modified.
Throws:
ExportException - if problem occurs.


Copyright © 2003-2006 null. All Rights Reserved.