Oxygen XML Editor, Version 14.2

ro.sync.exml.plugin.selection
Interface SelectionPluginExtension

All Superinterfaces:
PluginExtension
All Known Implementing Classes:
CapLinesPluginExtension, CommentPluginExtension, ConversionPluginExtension, FormatPreserveTextPluginExtension, FormSentencesPluginExtension, FormWordsPluginExtension, LowercasePluginExtension, UppercasePluginExtension, ZeroIndentPluginExtension

@API(type=EXTENDABLE,
     src=PUBLIC)
public interface SelectionPluginExtension
extends PluginExtension

Plugin extension. This is intended to work as follows: the user makes a selection in the editor and then goes to the contextual menu and selects from the Plugins entry one of the available plugin modules. The context containing the selection is passed to the process plugin method and the result is processed by the editor eventually replacing the selection. Of course other ways of calling the plugins can be found, like a Plugins main menu for instance.


Method Summary
 SelectionPluginResult process(SelectionPluginContext context)
          Main plugin method.
 

Method Detail

process

SelectionPluginResult process(SelectionPluginContext context)
Main plugin method. It receives the current context and it should return the processed content.

Parameters:
context - The context the plugin was invoked in.
Returns:
The processed data or null if it cannot/does not want to process the data.

Oxygen XML Editor, Version 14.2

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