public class SelectionPluginContextImpl extends java.lang.Object implements SelectionPluginContext
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
selection
The current selection.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SelectionPluginContextImpl()
public SelectionPluginContextImpl(java.lang.String selection, java.awt.Frame frame, java.net.URL documentURL, StandalonePluginWorkspace wsAccess)
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 workspacepublic void setSelection(java.lang.String selection)
selection
- The current selection.public void setFrame(java.awt.Frame frame)
frame
- The new frame value.public void setDocumentURL(java.net.URL documentURL)
documentURL
- The URL of the edited document.public java.lang.String getSelection()
getSelection
in interface SelectionPluginContext
public java.awt.Frame getFrame()
getFrame
in interface SelectionPluginContext
public java.net.URL getDocumentURL()
SelectionPluginContext
getDocumentURL
in interface SelectionPluginContext
SelectionPluginContext.getDocumentURL()
public StandalonePluginWorkspace getPluginWorkspace()
SelectionPluginContext
getPluginWorkspace
in interface SelectionPluginContext
SelectionPluginContext.getPluginWorkspace()
© Copyright Syncro Soft SRL 2002 - 2014. All rights reserved.