public class PovrayEditor
extends TextEditor
Modifier and Type | Field and Description |
---|---|
protected PovrayEditorConfiguration |
configuration |
static java.lang.String |
ID |
static java.lang.String |
MARKER_ROOT |
protected PovClipseHoverPresenter |
presenter |
Constructor and Description |
---|
PovrayEditor()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createActions() |
void |
createPartControl(Composite parent) |
protected ISourceViewer |
createSourceViewer(Composite parent,
IVerticalRuler ruler,
int styles) |
void |
dispose() |
java.lang.Object |
getAdapter(java.lang.Class required) |
IAnnotationHover |
getCurrentAnnotationHover()
Returns the currently displayed annotaion hover if any,
null otherwise. |
ITextHover |
getCurrentTextHover()
Returns the currently displayed text hover if any,
null otherwise. |
java.lang.String |
getEditedFileName() |
PovrayContentOutlinePage |
getOutlinePage() |
PovrayEditorConfiguration |
getPovrayEditorConfiguration() |
protected void |
init() |
protected void |
initializeEditor() |
protected void |
initializeKeyBindingScopes()
Initializes the key binding scopes of this editor.
|
void |
notifyKeyListenersForPreferenceUpdate() |
void |
updateErrorAnnotations()
Updates all PovClipse related markers.
|
void |
updateFoldingStructure()
recalculates the folding structure.
|
void |
updatePreferenceSettings() |
public static final java.lang.String ID
public static final java.lang.String MARKER_ROOT
protected PovrayEditorConfiguration configuration
protected PovClipseHoverPresenter presenter
protected void init()
protected void initializeEditor()
public PovrayEditorConfiguration getPovrayEditorConfiguration()
public void updatePreferenceSettings()
public void notifyKeyListenersForPreferenceUpdate()
public void dispose()
protected void initializeKeyBindingScopes()
protected void createActions()
public void createPartControl(Composite parent)
public IAnnotationHover getCurrentAnnotationHover()
null
otherwise.null
public ITextHover getCurrentTextHover()
null
otherwise.null
protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles)
public java.lang.Object getAdapter(java.lang.Class required)
public PovrayContentOutlinePage getOutlinePage()
public void updateFoldingStructure()
public void updateErrorAnnotations()
This is the main hook for generating error- warning- or information markers.
Note: Make sure that ***ALL***
generated markers are children of MARKER_ROOT
,
as all markers of type MARKER_ROOT
are deleted - including the sub-types -
prior to generating the new markers.
public java.lang.String getEditedFileName()