Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • selection

        protected java.lang.String selection
        The processed 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 interface SelectionPluginResult
        Returns:
        the content which will replace the current selection.