Package ro.sync.exml.workspace.api.util
Class EditorVariablesResolver
- java.lang.Object
-
- ro.sync.exml.workspace.api.util.EditorVariablesResolver
-
@API(type=EXTENDABLE, src=PUBLIC) public abstract class EditorVariablesResolver extends java.lang.Object
Such a resolver can be registered via the "ro.sync.exml.workspace.api.util.UtilAccess" API and is called to resolve custom editor variables in a string.- Since:
- 16.1
-
-
Constructor Summary
Constructors Constructor Description EditorVariablesResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<EditorVariableDescription>
getCustomResolverEditorVariableDescriptions()
Get a list with all editor variables which are custom resolved by this resolver.java.lang.String
resolveEditorVariables(java.lang.String contentWithEditorVariables, java.lang.String currentEditedFileURL)
Resolve editor variables in the received content.
-
-
-
Method Detail
-
resolveEditorVariables
public java.lang.String resolveEditorVariables(java.lang.String contentWithEditorVariables, java.lang.String currentEditedFileURL)
Resolve editor variables in the received content.- Parameters:
contentWithEditorVariables
- The initial content which possibly contains unresolved editor variables.currentEditedFileURL
- The current edited file URL, can be used if the editor variable depends on the current edited file.- Returns:
- The processed content with certain editor variables replaced with developer-specific values or the original content.
Can also return
null
to let the default processing occur.
-
getCustomResolverEditorVariableDescriptions
public java.util.List<EditorVariableDescription> getCustomResolverEditorVariableDescriptions()
Get a list with all editor variables which are custom resolved by this resolver.- Returns:
- a list with all editor variables which are custom resolved by this resolver.
- Since:
- 18.1
-
-