public interface MacroManager
extends com.atlassian.renderer.v2.macro.MacroManager
Modifier and Type | Method and Description |
---|---|
Map<String,com.atlassian.renderer.v2.macro.Macro> |
getMacros()
Returns the currently enabled macros, excluding user macros.
|
void |
registerMacro(String name,
com.atlassian.renderer.v2.macro.Macro macro)
Registers a new macro with the given name.
|
void |
unregisterMacro(String name)
Unregisters the macro with the given name.
|
Map<String,com.atlassian.renderer.v2.macro.Macro> getMacros()
UserMacroLibrary
.void registerMacro(String name, com.atlassian.renderer.v2.macro.Macro macro)
name
- the name to register the macro under. For example, 'code'.macro
- the macro to registervoid unregisterMacro(String name)
name
- the name of the macro to unregister. For example, 'code'.Copyright © 2003–2016 Atlassian. All rights reserved.