Package ro.sync.exml.plugin.selection
Class SelectionPluginResultImpl
java.lang.Object
ro.sync.exml.plugin.selection.SelectionPluginResultImpl
- All Implemented Interfaces:
SelectionPluginResult
@API(type=EXTENDABLE,
src=PUBLIC)
public class SelectionPluginResultImpl
extends Object
implements SelectionPluginResult
Support implementation of the PluginResult interface.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a no data plugin result.SelectionPluginResultImpl
(String selection) Creates the plugin result. -
Method Summary
Modifier and TypeMethodDescriptionGet the content which will replace the current selection.void
setProcessedSelection
(String selection) Set the current selection.
-
Field Details
-
selection
The processed selection.
-
-
Constructor Details
-
SelectionPluginResultImpl
public SelectionPluginResultImpl()Creates a no data plugin result. -
SelectionPluginResultImpl
Creates the plugin result.- Parameters:
selection
- The processed selection. The string can also contain editor variables available also to Oxygen code templates like ${caret} to position the caret at a certain location or ${selection} to surround the current selection with the processed string.
-
-
Method Details
-
setProcessedSelection
Set the current selection. The string can also contain editor variables available also to Oxygen code templates like ${caret} to position the caret at a certain location or ${selection} to surround the current selection with the processed string.- Parameters:
selection
- The current selection.
-
getProcessedSelection
Get the content which will replace the current selection. The string can also contain editor variables available also to Oxygen code templates like ${caret} to position the caret at a certain location or ${selection} to surround the current selection with the processed string.- Specified by:
getProcessedSelection
in interfaceSelectionPluginResult
- Returns:
- the content which will replace the current selection.
-