public class DocumentPluginContextImpl extends java.lang.Object implements DocumentPluginContext
Modifier and Type | Field and Description |
---|---|
protected javax.swing.text.Document |
document
The current document.
|
protected java.awt.Frame |
frame
The parent frame.
|
Constructor and Description |
---|
DocumentPluginContextImpl()
Constructor for an DocumentPluginContext with no document.
|
DocumentPluginContextImpl(WSTextEditorPage textPage,
javax.swing.text.Document document,
java.awt.Frame frame,
StandalonePluginWorkspace wsAccess)
Creates the plugin context.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.text.Document |
getDocument()
Get the current document.
|
java.awt.Frame |
getFrame()
Get the frame for the DocumentPluginContextImpl.
|
StandalonePluginWorkspace |
getPluginWorkspace()
Get access to the entire workspace of Oxygen.
|
WSTextEditorPage |
getTextPage()
Get access to the current text page on which this action will be invoked as a contextual menu action.
|
void |
setDocument(javax.swing.text.Document document)
Set the current document.
|
void |
setFrame(java.awt.Frame frame)
Sets the parent frame for the PluginContextImpl.
|
protected javax.swing.text.Document document
protected java.awt.Frame frame
public DocumentPluginContextImpl()
public DocumentPluginContextImpl(WSTextEditorPage textPage, javax.swing.text.Document document, java.awt.Frame frame, StandalonePluginWorkspace wsAccess)
textPage
- The text page.document
- The current document.frame
- The parent frame for the swing components.wsAccess
- Access to Oxygen's workspacepublic void setDocument(javax.swing.text.Document document)
document
- The document to be set.public void setFrame(java.awt.Frame frame)
frame
- The new frame value.public javax.swing.text.Document getDocument()
getDocument
in interface DocumentPluginContext
public java.awt.Frame getFrame()
getFrame
in interface DocumentPluginContext
public StandalonePluginWorkspace getPluginWorkspace()
DocumentPluginContext
getPluginWorkspace
in interface DocumentPluginContext
DocumentPluginContext.getPluginWorkspace()
public WSTextEditorPage getTextPage()
DocumentPluginContext
getTextPage
in interface DocumentPluginContext
DocumentPluginContext.getTextPage()
© Copyright Syncro Soft SRL 2002 - 2014. All rights reserved.