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 Details

    • selection

      protected String selection
      The processed selection.
  • Constructor Details

    • SelectionPluginResultImpl

      public SelectionPluginResultImpl()
      Creates a no data plugin result.
    • SelectionPluginResultImpl

      public SelectionPluginResultImpl(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 Details

    • setProcessedSelection

      public void setProcessedSelection(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 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 interface SelectionPluginResult
      Returns:
      the content which will replace the current selection.