Oxygen XML Editor, Version 14.2

ro.sync.exml.plugin.selection
Class SelectionPluginResultImpl

java.lang.Object
  extended by 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
protected  java.lang.String selection
          The processed selection.
 
Constructor Summary
SelectionPluginResultImpl()
          Creates a no data plugin result.
SelectionPluginResultImpl(java.lang.String selection)
          Creates the plugin result.
 
Method Summary
 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.

Oxygen XML Editor, Version 14.2

© Copyright Syncro Soft SRL 2002 - 2013. All rights reserved.