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 java.lang.Object implements SelectionPluginResult
Support implementation of the PluginResult interface.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
selection
The processed selection.
-
Constructor Summary
Constructors Constructor Description SelectionPluginResultImpl()
Creates a no data plugin result.SelectionPluginResultImpl(java.lang.String selection)
Creates the plugin result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getProcessedSelection()
Get the content which will replace the current selection.void
setProcessedSelection(java.lang.String selection)
Set the current selection.
-
-
-
Constructor Detail
-
SelectionPluginResultImpl
public SelectionPluginResultImpl()
Creates a no data plugin result.
-
SelectionPluginResultImpl
public SelectionPluginResultImpl(java.lang.String selection)
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 Detail
-
setProcessedSelection
public void setProcessedSelection(java.lang.String selection)
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
public java.lang.String 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.
-
-