|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.part.WorkbenchPart | +--org.eclipse.ui.part.EditorPart | +--com.ibm.lpex.alef.LpexAbstractTextEditor
A line oriented, LPEX-based abstract base implementation of a text editor.
Subclasses are responsible for configuring the editor appropriately.
LpexTextEditor
is one such example.
Several AbstractTextEditor classes, methods, and fields are not available in LpexAbstractTextEditor. Most programming of the underlying LPEX widget should be done directly via its LpexView and LpexWindow.
LpexTextEditor
,
getLpexView()
,
getLpexWindow()
Field Summary | |
static java.lang.String |
DEFAULT_EDITOR_CONTEXT_MENU_ID
Menu id for the editor context menu. |
static java.lang.String |
DEFAULT_RULER_CONTEXT_MENU_ID
Menu id for the ruler context menu. |
protected static int |
VERTICAL_RULER_WIDTH
The width of the vertical ruler. |
Fields inherited from interface org.eclipse.ui.IEditorPart |
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Constructor Summary | |
protected |
LpexAbstractTextEditor()
Create a new text editor. |
Method Summary | |
protected void |
addAction(org.eclipse.jface.action.IMenuManager menu,
java.lang.String actionName)
Convenience method to add the action installed under the given action name to the given menu. |
protected void |
addAction(org.eclipse.jface.action.IMenuManager menu,
java.lang.String group,
java.lang.String actionId)
Convenience method to add the action installed under the given action id to the specified group of the menu. |
protected void |
addGroup(org.eclipse.jface.action.IMenuManager menu,
java.lang.String existingGroup,
java.lang.String newGroup)
Convenience method to add a new group after the specified group. |
protected boolean |
addLines(LpexView lpexView,
int neededLine)
Hook for managing an LPEX text-widget document section. |
void |
addMark(org.eclipse.core.resources.IMarker marker)
Create an LPEX mark corresponding to the given Eclipse marker. |
protected void |
adjustHighlightRange(int offset,
int len)
Adjust the highlight range so that at least the specified range is highlighted. |
void |
close(boolean save)
Close this text editor, after optionally saving changes. |
protected void |
createActions()
Create this editor's standard actions. |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
The LpexAbstractTextEditor implementation of this IWorkbenchPart method creates the vertical ruler and
source viewer. |
protected org.eclipse.ui.actions.WorkspaceModifyOperation |
createSaveOperation(boolean overwrite)
Create a workspace-modify operation which saves the content of the editor to the editor's input element. |
protected org.eclipse.jface.text.source.ISourceViewer |
createSourceViewer(org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.text.source.IVerticalRuler ruler,
int styles)
Create the source viewer (an LpexSourceViewer) to be used by this editor. |
protected org.eclipse.jface.text.source.IVerticalRuler |
createVerticalRuler()
Create the vertical ruler (an LpexVerticalRuler) to be used by this editor. |
void |
dispose()
Dispose this part and discard all part state. |
void |
doRevertToSaved()
Abandon all modifications applied to the editor's input element's textual presentation since the last save operation. |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Save the contents of the target. |
void |
doSaveAs()
Save the contents of the target to another object. |
protected void |
doSetInput(org.eclipse.ui.IEditorInput input)
Internal processing of setting/changing the input to this editor. |
protected void |
editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Set up this editor's context (popup) menu before it is made visible. |
protected void |
firePropertyChange(int property)
Fire a property-changed event. |
org.eclipse.jface.action.IAction |
getAction(java.lang.String actionName)
Return the action which has been installed (i.e., cached in here) under the specified action name (id). |
java.lang.Object |
getAdapter(java.lang.Class required)
Return the object which is an instance of the given class associated with this object, or null if no such object can be found. |
protected org.eclipse.jface.action.IMenuListener |
getContextMenuListener()
Create and return the listener on this editor's context menus. |
org.eclipse.ui.texteditor.IDocumentProvider |
getDocumentProvider()
Return this text editor's document provider. |
protected java.lang.String |
getEditorContextMenuId()
Return the editor's context menu id. |
java.lang.String |
getEOL()
Return the line delimiter used by the document currently handled by this text editor. |
protected java.lang.String |
getHelpContextId()
Return the editor's help context id. |
org.eclipse.jface.text.IRegion |
getHighlightRange()
Return the highlighted range of this text editor. |
LpexView |
getLpexView()
Convenience method to retrieve the underlying LPEX text-widget view on the document. |
LpexWindow |
getLpexWindow()
Convenience method to retrieve the underlying LPEX text-widget window (an SWT Composite). |
protected org.eclipse.jface.preference.IPreferenceStore |
getPreferenceStore()
Return this editor's preference store. |
protected org.eclipse.jface.text.source.Annotation |
getRangeIndicator()
Return this editor's range indicator. |
protected java.lang.String |
getRulerContextMenuId()
Return the ruler's context menu id. |
protected org.eclipse.swt.events.MouseListener |
getRulerMouseListener()
Create and return the listener on this editor's vertical ruler. |
org.eclipse.jface.viewers.ISelectionProvider |
getSelectionProvider()
Return the editor's selection provider. |
protected org.eclipse.jface.text.source.ISourceViewer |
getSourceViewer()
Return the editor's source viewer. |
protected org.eclipse.jface.text.source.SourceViewerConfiguration |
getSourceViewerConfiguration()
Return the editor's source viewer configuration. |
org.eclipse.jface.text.source.IVerticalRuler |
getVerticalRuler()
Return the editor's vertical ruler. |
void |
gotoMarker(org.eclipse.core.resources.IMarker marker)
Set the cursor in the editor to the specified marker, and emphasize accordingly. |
protected void |
handleEditorInputChanged()
Handle an external change of the editor's input element. |
protected void |
handleExceptionOnSave(org.eclipse.core.runtime.CoreException exception,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Handle the given save exception. |
protected void |
handlePreferenceStoreChanged(org.eclipse.jface.util.PropertyChangeEvent event)
Handle a property-change event describing a change of the editor's preference store. |
void |
init(org.eclipse.ui.IEditorSite site,
org.eclipse.ui.IEditorInput input)
Initialize this editor with the given editor site and input. |
void |
initializeLpexView(LpexView lpexView)
Hook to initialize a newly instantiated LpexView during the construction of this text editor's SourceViewer. |
boolean |
isDirty()
|
boolean |
isEditable()
Return whether the text in this text editor can be changed by the user. |
boolean |
isSaveAsAllowed()
Return true if the "Save as" operation is supported by
the target. |
boolean |
isSaveOnCloseNeeded()
Return whether the contents of this editor should be saved when the editor is closed. |
protected void |
performSaveAs(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Perform a "Save as", and report the result state back to the given progress monitor. |
protected void |
performSaveOperation(org.eclipse.ui.actions.WorkspaceModifyOperation operation,
org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Perform the given save operation and handle errors appropriately. |
void |
removeActionActivationCode(java.lang.String actionName)
This method is not currently implemented in LpexAbstractTextEditor. |
void |
resetHighlightRange()
Reset the highlight range. |
protected void |
rulerContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Set up the vertical ruler's context (popup) menu before it is made visible. |
void |
selectAndReveal(int start,
int len)
Select and reveal the specified range in this text editor. |
void |
setAction(java.lang.String actionName,
org.eclipse.jface.action.IAction action)
Install (i.e., cache in here) the given action under the specified action name (id). |
void |
setActionActivationCode(java.lang.String actionName,
char activationCharacter,
int activationKeyCode,
int activationStateMask)
This method is not currently implemented in LpexAbstractTextEditor. |
protected void |
setDocumentProvider(org.eclipse.ui.texteditor.IDocumentProvider provider)
Set the editor's document provider. |
protected void |
setDocumentSection(int linesBeforeStart,
int linesAfterEnd)
Establish the boundaries of the LPEX document section that was loaded or is going to be loaded in the text widget, and initiate the management of this document section. |
protected void |
setEditorContextMenuId(java.lang.String contextMenuId)
Set this editor's context menu id. |
void |
setFocus()
Ask the part to take focus within the workbench. |
protected void |
setHelpContextId(java.lang.String helpContextId)
Set the editor's help context id. |
void |
setHighlightRange(int start,
int len,
boolean moveCursor)
Set the highlight range to the specified region. |
void |
setInput(org.eclipse.ui.IEditorInput input)
Set the input to this editor. |
protected void |
setPreferenceStore(org.eclipse.jface.preference.IPreferenceStore store)
Set this editor's preference store. |
protected void |
setRangeIndicator(org.eclipse.jface.text.source.Annotation rangeIndicator)
Set the annotation which this editor uses to represent the highlight range if the editor is configured to show the entire document. |
protected void |
setRulerContextMenuId(java.lang.String contextMenuId)
Set the ruler's context menu id. |
protected void |
setSourceViewerConfiguration(org.eclipse.jface.text.source.SourceViewerConfiguration configuration)
Set this editor's source viewer configuration used to configure its internal source viewer. |
void |
showHighlightRangeOnly(boolean showHighlightRangeOnly)
Configure the editor to show / not show the highlight range only. |
boolean |
showsHighlightRangeOnly()
Query whether the editor is configured to show the highlight range only, or all of the input element's textual representation. |
void |
updateMarkers()
Bring the location of this editor's input resource markers back in sync with the location of LpexView's corresponding marks. |
void |
updateProfile()
Extend this method for post-updateProfile command processing. |
Methods inherited from class org.eclipse.ui.part.EditorPart |
getEditorInput, getEditorSite, getTitleToolTip |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, getConfigurationElement, getDefaultImage, getSite, getTitle, getTitleImage, removePropertyListener, setInitializationData, setSite, setTitle, setTitleImage, setTitleToolTip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IEditorPart |
getEditorInput, getEditorSite |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Field Detail |
public static final java.lang.String DEFAULT_EDITOR_CONTEXT_MENU_ID
public static final java.lang.String DEFAULT_RULER_CONTEXT_MENU_ID
protected static final int VERTICAL_RULER_WIDTH
Constructor Detail |
protected LpexAbstractTextEditor()
LpexSourceViewerConfiguration
to configure its
source viewer. This viewer does not have a range indicator installed.Method Detail |
public org.eclipse.ui.texteditor.IDocumentProvider getDocumentProvider()
getDocumentProvider
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.getDocumentProvider()
protected final org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
protected final org.eclipse.jface.text.source.Annotation getRangeIndicator()
protected final org.eclipse.jface.text.source.SourceViewerConfiguration getSourceViewerConfiguration()
protected final org.eclipse.jface.text.source.ISourceViewer getSourceViewer()
public final org.eclipse.jface.text.source.IVerticalRuler getVerticalRuler()
protected final java.lang.String getEditorContextMenuId()
protected final java.lang.String getHelpContextId()
protected final java.lang.String getRulerContextMenuId()
protected void setDocumentProvider(org.eclipse.ui.texteditor.IDocumentProvider provider)
IDocumentProvider is an interface used by the ITextEditor to interact with its input element based on the input element's textual representation as IDocument. A document provider may be shared between multiple editors.
provider
- the document providerprotected void setSourceViewerConfiguration(org.eclipse.jface.text.source.SourceViewerConfiguration configuration)
LpexSourceViewerConfiguration
.configuration
- the source viewer configuration objectLpexSourceViewerConfiguration
protected void setRangeIndicator(org.eclipse.jface.text.source.Annotation rangeIndicator)
DefaultRangeIndicator
.rangeIndicator
- the annotationprotected void setEditorContextMenuId(java.lang.String contextMenuId)
contextMenuId
- the context menu idprotected void setRulerContextMenuId(java.lang.String contextMenuId)
contextMenuId
- the context menu idpublic boolean isEditable()
isEditable
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.isEditable()
public org.eclipse.jface.viewers.ISelectionProvider getSelectionProvider()
getSelectionProvider
in interface org.eclipse.ui.texteditor.ITextEditor
protected final org.eclipse.jface.action.IMenuListener getContextMenuListener()
protected final org.eclipse.swt.events.MouseListener getRulerMouseListener()
protected void handlePreferenceStoreChanged(org.eclipse.jface.util.PropertyChangeEvent event)
The implementation of this method in LpexAbstractTextEditor does nothing. TextViewer updates any preference-related editor properties (namely, its font). LPEX's default settings are stored in its defaultProfile, not in a preference store.
event
- the property change eventpublic void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException
init
in interface org.eclipse.ui.IEditorPart
init
in class org.eclipse.ui.part.EditorPart
IEditorPart.init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput)
protected org.eclipse.jface.text.source.IVerticalRuler createVerticalRuler()
protected org.eclipse.jface.text.source.ISourceViewer createSourceViewer(org.eclipse.swt.widgets.Composite parent, org.eclipse.jface.text.source.IVerticalRuler ruler, int styles)
Called from createPartControl().
parent
- the parent controlruler
- the vertical rulerstyles
- style bitspublic void createPartControl(org.eclipse.swt.widgets.Composite parent)
IWorkbenchPart
method creates the vertical ruler and
source viewer. Subclasses may extend.
This is a multistep process:
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
protected void doSetInput(org.eclipse.ui.IEditorInput input) throws org.eclipse.core.runtime.CoreException
input
- the (new) input to be set;
if null
, this text editor is being closedorg.eclipse.core.runtime.CoreException
- if input cannot be connected to the document
provider (is not understood by this part)public final void setInput(org.eclipse.ui.IEditorInput input)
setInput
in class org.eclipse.ui.part.EditorPart
EditorPart.setInput(org.eclipse.ui.IEditorInput)
protected void setPreferenceStore(org.eclipse.jface.preference.IPreferenceStore store)
store
- the new preference storepublic void close(boolean save)
close
in interface org.eclipse.ui.texteditor.ITextEditor
save
- true
if unsaved changed should be saved, or
false
if unsaved changed should be discardedITextEditor.close(boolean)
public void dispose()
The AbstractTextEditor implementation of this
IWorkbenchPart
method may be extended by subclasses.
Subclasses must call super.dispose()
.
This method is called at the end of the part lifecycle: release any resources, fonts, images, etc. held by the part. The part control has already been disposed, so there is no need to dispose it here.
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.dispose()
public void doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
The implementation of this IEditorPart
method may be
extended by subclasses.
doSave
in interface org.eclipse.ui.IEditorPart
doSave
in class org.eclipse.ui.part.EditorPart
IEditorPart.doSave(org.eclipse.core.runtime.IProgressMonitor)
protected org.eclipse.ui.actions.WorkspaceModifyOperation createSaveOperation(boolean overwrite)
overwrite
- indicates whether the editor input element may be
overwritten if necessaryprotected void performSaveOperation(org.eclipse.ui.actions.WorkspaceModifyOperation operation, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
operation
- the operation to be performedprogressMonitor
- the monitor in which to run the operationprotected void handleExceptionOnSave(org.eclipse.core.runtime.CoreException exception, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
exception
- the exception to handleprogressMonitor
- the progress monitorpublic void doSaveAs()
The LpexAbstractTextEditor implementation of this
IEditorPart
calls performSaveAs(null).
doSaveAs
in interface org.eclipse.ui.IEditorPart
doSaveAs
in class org.eclipse.ui.part.EditorPart
IEditorPart.doSaveAs()
protected void performSaveAs(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
progressMonitor
- the progress monitor for communicating result state, or
null
public boolean isSaveAsAllowed()
true
if the "Save as" operation is supported by
the target.
Overrides EditorPart's.
The implementation of this IEditorPart
method returns
false
. Subclasses may override.isSaveAsAllowed
in interface org.eclipse.ui.IEditorPart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
IEditorPart.isSaveAsAllowed()
public boolean isSaveOnCloseNeeded()
isSaveOnCloseNeeded
in interface org.eclipse.ui.IEditorPart
isSaveOnCloseNeeded
in class org.eclipse.ui.part.EditorPart
true
if the contents of the editor should be saved
on close, or
false
if the contents are expendableIEditorPart.isSaveOnCloseNeeded()
public boolean isDirty()
isDirty
in interface org.eclipse.ui.IEditorPart
isDirty
in class org.eclipse.ui.part.EditorPart
public void doRevertToSaved()
The implementation of this ITextEditor
method may be
extended by subclasses.
doRevertToSaved
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.doRevertToSaved()
public void setAction(java.lang.String actionName, org.eclipse.jface.action.IAction action)
setAction
in interface org.eclipse.ui.texteditor.ITextEditor
actionName
- name of the action (e.g., "SelectAll")action
- the JFace IActionITextEditor.setAction(java.lang.String, org.eclipse.jface.action.IAction)
public org.eclipse.jface.action.IAction getAction(java.lang.String actionName)
null
.getAction
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.getAction(java.lang.String)
protected void createActions()
Actions handled in here are the standard Eclipse editor actions defined in ITextEditorActionConstants (and IWorkbenchActionConstants), and some of the context menu actions. The standard editor actions will be connected to the workbench global actions in LpexContextContributor -> BasicTextEditorActionContributor.
For LPEX's contributions to the Eclipse context, see LpexContextContributor.
Subclasses may extend this method.
protected final void addAction(org.eclipse.jface.action.IMenuManager menu, java.lang.String actionName)
menu
- menu to add the actionactionName
- name of the action (e.g., "SelectAll")protected final void addAction(org.eclipse.jface.action.IMenuManager menu, java.lang.String group, java.lang.String actionId)
protected final void addGroup(org.eclipse.jface.action.IMenuManager menu, java.lang.String existingGroup, java.lang.String newGroup)
protected void rulerContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Subclasses may extend to add other actions.
menu
- the menuprotected void editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager menu)
Subclasses may extend to add other actions.
menu
- the menupublic java.lang.Object getAdapter(java.lang.Class required)
null
if no such object can be found.
IAdaptable is an interface for an adaptable object. Adaptable objects can be dynamically extended to provide different interfaces (or "adapters"). Adapters are created by adapter factories, which are in turn managed by type by adapter managers.
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.ui.part.WorkbenchPart
IAdaptable.getAdapter(Class)
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
IWorkbenchPart.setFocus()
protected void setHelpContextId(java.lang.String helpContextId)
helpContextId
- the help context idpublic void gotoMarker(org.eclipse.core.resources.IMarker marker)
Eclipse markers registered against the resource file being edited are maintained by LPEX during editing (as corresponding LPEX marks are created for them). Markers not registered with the resource may be out-of-sync with the current status of the document being edited.
gotoMarker
in interface org.eclipse.ui.IEditorPart
gotoMarker
in class org.eclipse.ui.part.EditorPart
EditorPart.gotoMarker(org.eclipse.core.resources.IMarker)
,
addMark(org.eclipse.core.resources.IMarker)
protected void handleEditorInputChanged()
public boolean showsHighlightRangeOnly()
showsHighlightRangeOnly
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.showsHighlightRangeOnly()
public void showHighlightRangeOnly(boolean showHighlightRangeOnly)
showHighlightRangeOnly
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.showHighlightRangeOnly(boolean)
public void setHighlightRange(int start, int len, boolean moveCursor)
setHighlightRange
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.setHighlightRange(int, int, boolean)
public org.eclipse.jface.text.IRegion getHighlightRange()
getHighlightRange
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.getHighlightRange()
public void setActionActivationCode(java.lang.String actionName, char activationCharacter, int activationKeyCode, int activationStateMask)
setActionActivationCode
in interface org.eclipse.ui.texteditor.ITextEditor
actionName
- LPEX action nameITextEditor.setActionActivationCode(String, char, int, int)
public void removeActionActivationCode(java.lang.String actionName)
removeActionActivationCode
in interface org.eclipse.ui.texteditor.ITextEditor
actionName
- LPEX action nameITextEditor.removeActionActivationCode(String)
public void resetHighlightRange()
resetHighlightRange
in interface org.eclipse.ui.texteditor.ITextEditor
ITextEditor.resetHighlightRange()
protected void adjustHighlightRange(int offset, int len)
offset
- the offset of the range which at least should be highlightedlength
- the length of the range which at least should be highlightedpublic void selectAndReveal(int start, int len)
selectAndReveal
in interface org.eclipse.ui.texteditor.ITextEditor
offset
- the offset of the selectionlen
- the length of the selectionITextEditor.selectAndReveal(int, int)
protected void firePropertyChange(int property)
firePropertyChange
in class org.eclipse.ui.part.WorkbenchPart
property
- the id of the property that changedWorkbenchPart.firePropertyChange(int)
public LpexView getLpexView()
public LpexWindow getLpexWindow()
public void initializeLpexView(LpexView lpexView)
Extend this method to set any file/view-specific parameters for this LpexView.
Here you may set any "File Open" preference-page settings for your solution's plugin, such as sequenceNumbers, sourceEncoding, save.textLimit, and save.trim. The updateProfile command will be called later.
updateProfile()
public void updateProfile()
super.updateProfile()
.
Called when a new LpexSourceViewer is created (an LPEX document is opened), and whenever the updateProfile command is issued afterwards.
initializeLpexView(com.ibm.lpex.core.LpexView)
protected void setDocumentSection(int linesBeforeStart, int linesAfterEnd)
Note that this feature is only available for certain specific text editor applications. Normally, the LPEX text widget loads and operates on a complete document (underlying resource).
This method requires the LPEX text widget to have been already created. Initially, it must be called after calling super.createSourceViewer(), if the method createSourceViewer() is extended, or otherwise at any time after createPartControl(). Afterwards, this method may be called following document-section updates triggered by addLines() notifications.
addLines(com.ibm.lpex.core.LpexView, int)
protected boolean addLines(LpexView lpexView, int neededLine)
This method is invoked when it was determined that the currently-loaded LPEX text-widget document section should be expanded. A minimum of about two screen rows of lines is expected to be loaded around the current (cursor) line at any time.
The current implementation of this method does nothing beyond returning
false
.
lpexView
- the LPEX text-widget viewlineNeeded
- the first line before the currently-loaded LPEX document
section, or the last line after the currently-loaded LPEX document
section, in the range of lines with which the current document
section must be expanded;
lineNeeded already includes the minimum threshold indicatedsetDocumentSection(int, int)
public void addMark(org.eclipse.core.resources.IMarker marker)
The mark is defined inside the currently-loaded LPEX document section, and assumes that the marker is defined in an IDocument corresponding to this section.
public void updateMarkers()
As LPEX doesn't keep the IDocument and, consequently, its listeneres up-to-date, during an edit session the up-to-date location of a marker can only be established from the corresponding LPEX mark set in LpexView.
Markers are defined, and have corresponding LPEX marks set, inside the currently-loaded LPEX document section.
public java.lang.String getEOL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |