public abstract class AbstractCodeFoldingPlugin<B> extends AbstractEditorPlugin
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractCodeFoldingPlugin.DocumentHandler |
_editor
Constructor and Description |
---|
AbstractCodeFoldingPlugin() |
Modifier and Type | Method and Description |
---|---|
protected void |
attach(BasicEditorPane editorPane) |
void |
beginCompoundEdit(CodeFoldingModel<B> model) |
protected CodeFoldingMargin<B> |
createMargin() |
protected BasicDocument.PrePostDocumentListener |
createPrePostDocumentListener() |
protected abstract CodeFoldingProvider<B> |
createProvider() |
protected void |
deinstallImpl(BasicEditorPane editorPane)
Deinstall routine for subclasses that have added deinstallation
code to execute.
|
protected void |
detach(BasicEditorPane editorPane) |
void |
endCompoundEdit(CodeFoldingModel<B> model) |
protected CodeFoldingMargin<B> |
getMargin() |
protected CodeFoldingModel<B> |
getModel() |
protected CodeFoldingProvider<B> |
getProvider() |
protected void |
installImpl(BasicEditorPane editorPane)
Install routine for subclasses that have added installation code to
execute.
|
protected boolean |
isMarginEnabled() |
protected void |
propertyChangeImpl(java.beans.PropertyChangeEvent e)
Property change notification routine for subclasses that have want
to respond to property changes.
|
protected void |
setModel(CodeFoldingModel<B> model) |
deinstall, getDocument, getEditorPane, install, propertyChange
protected void installImpl(BasicEditorPane editorPane)
AbstractEditorPlugin
installImpl
in class AbstractEditorPlugin
editorPane
- the editor paneprotected void deinstallImpl(BasicEditorPane editorPane)
AbstractEditorPlugin
deinstallImpl
in class AbstractEditorPlugin
editorPane
- the editor paneprotected void propertyChangeImpl(java.beans.PropertyChangeEvent e)
AbstractEditorPlugin
propertyChangeImpl
in class AbstractEditorPlugin
e
- A PropertyChangeEvent object describing the event source
and the property that has changed.public void beginCompoundEdit(CodeFoldingModel<B> model)
public void endCompoundEdit(CodeFoldingModel<B> model)
protected abstract CodeFoldingProvider<B> createProvider()
protected void attach(BasicEditorPane editorPane)
protected void detach(BasicEditorPane editorPane)
protected boolean isMarginEnabled()
protected CodeFoldingModel<B> getModel()
protected void setModel(CodeFoldingModel<B> model)
protected CodeFoldingProvider<B> getProvider()
protected CodeFoldingMargin<B> getMargin()
protected CodeFoldingMargin<B> createMargin()
protected BasicDocument.PrePostDocumentListener createPrePostDocumentListener()