Class LanguageBodyEditorManager
- java.lang.Object
-
- com.nomagic.magicdraw.ui.languagebody.LanguageBodyEditorManager
-
@OpenApi public final class LanguageBodyEditorManager extends java.lang.Object
Registers custom language body editor factories.- See Also:
LanguageBodyEditorFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,LanguageBodyEditorFactory>
factories
private static LanguageBodyEditorManager
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
LanguageBodyEditorManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFactory(java.lang.String language, LanguageBodyEditorFactory factory)
Adds body editor factory for given language.static LanguageBodyEditorManager
getInstance()
Get manager instance.void
removeFactory(java.lang.String language)
Removes body editor factory for given language.
-
-
-
Field Detail
-
instance
private static LanguageBodyEditorManager instance
-
factories
private final java.util.Map<java.lang.String,LanguageBodyEditorFactory> factories
-
-
Method Detail
-
getInstance
@OpenApi public static LanguageBodyEditorManager getInstance()
Get manager instance.- Returns:
- instance.
-
addFactory
@OpenApi public void addFactory(java.lang.String language, LanguageBodyEditorFactory factory)
Adds body editor factory for given language.- Parameters:
language
- language body to edit.factory
- body editor factory to register.
-
removeFactory
@OpenApi public void removeFactory(java.lang.String language)
Removes body editor factory for given language.- Parameters:
language
- language editor factory to remove.
-
-