Oxygen XML Editor, Version 14.2

ro.sync.exml.plugin.selection
Class SelectionPluginContextImpl

java.lang.Object
  extended by ro.sync.exml.plugin.selection.SelectionPluginContextImpl
All Implemented Interfaces:
SelectionPluginContext

public class SelectionPluginContextImpl
extends java.lang.Object
implements SelectionPluginContext

Support implementation of the PluginContext interface.

Version:
$Revision: 1.6 $

Field Summary
protected  java.lang.String selection
          The current selection.
 
Constructor Summary
SelectionPluginContextImpl()
          Creates a no selection plugin context.
SelectionPluginContextImpl(java.lang.String selection, java.awt.Frame frame, java.net.URL documentURL, StandalonePluginWorkspace wsAccess)
          Creates the plugin context.
 
Method Summary
 java.net.URL getDocumentURL()
          Get the URL of the edited document.
 java.awt.Frame getFrame()
          Gets the frame for the PluginContextImpl.
 StandalonePluginWorkspace getPluginWorkspace()
          Get access to the entire workspace of Oxygen.
 java.lang.String getSelection()
          Get the current selection.
 void setDocumentURL(java.net.URL documentURL)
          Set the URL of the edited document.
 void setFrame(java.awt.Frame frame)
          Sets the parent frame for the PluginContextImpl.
 void setSelection(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 current selection.

Constructor Detail

SelectionPluginContextImpl

public SelectionPluginContextImpl()
Creates a no selection plugin context.


SelectionPluginContextImpl

public SelectionPluginContextImpl(java.lang.String selection,
                                  java.awt.Frame frame,
                                  java.net.URL documentURL,
                                  StandalonePluginWorkspace wsAccess)
Creates the plugin context.

Parameters:
selection - The current selection string.
frame - The parent frame for the swing components.
documentURL - The URL of the edited document.
wsAccess - Access to Oxygen's workspace
Method Detail

setSelection

public void setSelection(java.lang.String selection)
Set the current selection.

Parameters:
selection - The current selection.

setFrame

public void setFrame(java.awt.Frame frame)
Sets the parent frame for the PluginContextImpl.

Parameters:
frame - The new frame value.

setDocumentURL

public void setDocumentURL(java.net.URL documentURL)
Set the URL of the edited document.

Parameters:
documentURL - The URL of the edited document.

getSelection

public java.lang.String getSelection()
Get the current selection.

Specified by:
getSelection in interface SelectionPluginContext
Returns:
The current selection.

getFrame

public java.awt.Frame getFrame()
Gets the frame for the PluginContextImpl.

Specified by:
getFrame in interface SelectionPluginContext
Returns:
The frame value.

getDocumentURL

public java.net.URL getDocumentURL()
Description copied from interface: SelectionPluginContext
Get the URL of the edited document.

Specified by:
getDocumentURL in interface SelectionPluginContext
Returns:
The URL of the edited document.
See Also:
SelectionPluginContext.getDocumentURL()

getPluginWorkspace

public StandalonePluginWorkspace getPluginWorkspace()
Description copied from interface: SelectionPluginContext
Get access to the entire workspace of Oxygen.

Specified by:
getPluginWorkspace in interface SelectionPluginContext
Returns:
The access to the entire workspace of Oxygen
See Also:
SelectionPluginContext.getPluginWorkspace()

Oxygen XML Editor, Version 14.2

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